Files
sbox-public/engine/Definitions/tools/QtMisc/QEvent.def
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

98 lines
1.5 KiB
Modula-2

native class QEvent
{
void accept();
void ignore();
bool isAccepted();
bool spontaneous();
void setAccepted(bool accepted);
}
native class QInputEvent : QEvent
{
Qt::KeyboardModifiers modifiers();
ulong timestamp();
}
native class QMouseEvent : QInputEvent
{
QPointF localPos();
QPointF windowPos();
QPointF screenPos();
Qt::MouseButtons buttons();
Qt::MouseButtons button();
}
native class QWheelEvent : QInputEvent
{
QPoint pixelDelta();
QPoint angleDelta();
QPointF position();
QPointF globalPosition();
Qt::MouseButtons buttons();
}
native class QContextMenuEvent : QInputEvent
{
QPointF pos();
QPointF globalPos();
}
native class QKeyEvent : QInputEvent
{
QString text();
bool isAutoRepeat();
int count();
int key();
uint nativeModifiers();
uint nativeScanCode();
uint nativeVirtualKey();
}
native class QResizeEvent : QEvent
{
QSize size();
QSize oldSize();
}
native class QMoveEvent : QEvent
{
QPoint pos();
QPoint oldPos();
}
native enum Qt::DropAction as Editor.DropAction;
native class QDropEvent : QEvent
{
void acceptProposedAction();
QMimeData mimeData();
QObject source();
QPoint pos();
Qt::MouseButtons mouseButtons();
Qt::KeyboardModifiers keyboardModifiers();
Qt::DropAction dropAction();
void setDropAction(Qt::DropAction action);
}
native class QDragMoveEvent : QDropEvent
{
}
native class QDragEnterEvent : QDragMoveEvent
{
}
native class QDragLeaveEvent : QEvent
{
}
native enum QEvent::Type as Native.EventType;