Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress. More...
Public Member Functions | |
QDragMoveEvent (QDragMoveEvent copy) | |
| |
QDragMoveEvent (QPoint pos, Qt.DropAction actions, QMimeData data, Qt.MouseButton buttons, Qt.KeyboardModifier modifiers, QEvent.Type type=QEvent.Type.DragMove) | |
| |
override void | CreateProxy () |
new void | Accept () |
| |
new void | Accept (QRect r) |
| |
new QRect | AnswerRect () |
| |
new void | Ignore () |
| |
new void | Ignore (QRect r) |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.QDropEvent | |
QDropEvent (QDropEvent copy) | |
| |
QDropEvent (QPoint pos, Qt.DropAction actions, QMimeData data, Qt.MouseButton buttons, Qt.KeyboardModifier modifiers, QEvent.Type type=QEvent.Type.Drop) | |
| |
override void | CreateProxy () |
new void | AcceptProposedAction () |
| |
virtual QByteArray | EncodedData (string arg1) |
virtual string | Format (int n=0) |
new Qt.KeyboardModifier | KeyboardModifiers () |
| |
new QMimeData | MimeData () |
| |
new Qt.MouseButton | MouseButtons () |
| |
new QPoint | Pos () |
| |
new Qt.DropAction | PossibleActions () |
| |
new Qt.DropAction | ProposedAction () |
| |
virtual bool | Provides (string arg1) |
new QWidget | Source () |
| |
new void | Dispose () |
Public Member Functions inherited from QtCore.QEvent | |
QEvent (QEvent copy) | |
| |
QEvent (QEvent.Type type) | |
| |
new void | Accept () |
| |
new void | Ignore () |
| |
new bool | IsAccepted () |
new void | SetAccepted (bool accepted) |
new bool | Spontaneous () |
| |
new QEvent.Type | type () |
| |
new void | Dispose () |
Public Member Functions inherited from QtGui.IQMimeSource | |
QByteArray | EncodedData (string arg1) |
string | Format (int n=0) |
bool | Provides (string arg1) |
Protected Member Functions | |
QDragMoveEvent (System.Type dummy) | |
Protected Member Functions inherited from QtGui.QDropEvent | |
QDropEvent (System.Type dummy) | |
Protected Member Functions inherited from QtCore.QEvent | |
QEvent (System.Type dummy) | |
Properties | |
new QRect | Rect [get, set] |
Properties inherited from QtGui.QDropEvent | |
new Qt.DropAction | DropAction [get, set] |
| |
new Qt.DropAction | Act [get, set] |
new Qt.DropAction | Default_action [get, set] |
new Qt.DropAction | Drop_action [get, set] |
new System.Collections.Generic.List < QByteArray > | Fmts [get, set] |
new QMimeData | Mdata [get, set] |
new Qt.KeyboardModifier | ModState [get, set] |
new Qt.MouseButton | MouseState [get, set] |
new QPoint | P [get, set] |
Properties inherited from QtCore.QEvent | |
virtual System.IntPtr | SmokeObject [get, set] |
new ushort | T [get, set] |
static new QMetaObject | StaticMetaObject [get] |
The QDragMoveEvent class provides an event which is sent while a drag and drop action is in progress.
A widget will receive drag move events repeatedly while the drag is within its boundaries, if it accepts drop events and enter events. The widget should examine the event to see what kind of data it provides, and call the accept() function to accept the drop if appropriate.
The rectangle supplied by the answerRect() function can be used to restrict drops to certain parts of the widget. For example, we can check whether the rectangle intersects with the geometry of a certain child widget and only call acceptProposedAction() if that is the case.
Note that this class inherits most of its functionality from QDropEvent.
See also QDragEnterEvent, QDragLeaveEvent, and QDropEvent.
|
protected |
QtGui.QDragMoveEvent.QDragMoveEvent | ( | QDragMoveEvent | copy | ) |
Creates a QDragMoveEvent of the required type indicating that the mouse is at position pos given within a widget.
The mouse and keyboard states are specified by buttons and modifiers, and the actions describe the types of drag and drop operation that are possible. The drag data is passed as MIME-encoded information in data.
Warning: Do not attempt to create a QDragMoveEvent yourself. These objects rely on Qt's internal state.
QtGui.QDragMoveEvent.QDragMoveEvent | ( | QPoint | pos, |
Qt.DropAction | actions, | ||
QMimeData | data, | ||
Qt.MouseButton | buttons, | ||
Qt.KeyboardModifier | modifiers, | ||
QEvent.Type | type = QEvent.Type.DragMove |
||
) |
Creates a QDragMoveEvent of the required type indicating that the mouse is at position pos given within a widget.
The mouse and keyboard states are specified by buttons and modifiers, and the actions describe the types of drag and drop operation that are possible. The drag data is passed as MIME-encoded information in data.
Warning: Do not attempt to create a QDragMoveEvent yourself. These objects rely on Qt's internal state.
new void QtGui.QDragMoveEvent.Accept | ( | ) |
This is an overloaded function.
Calls QDropEvent::accept().
new void QtGui.QDragMoveEvent.Accept | ( | QRect | r | ) |
The same as accept(), but also notifies that future moves will also be acceptable if they remain within the rectangle given on the widget. This can improve performance, but may also be ignored by the underlying system.
If the rectangle is empty, drag move events will be sent continuously. This is useful if the source is scrolling in a timer event.
new QRect QtGui.QDragMoveEvent.AnswerRect | ( | ) |
Returns the rectangle in the widget where the drop will occur if accepted. You can use this information to restrict drops to certain places on the widget.
|
virtual |
Reimplemented from QtCore.QEvent.
new void QtGui.QDragMoveEvent.Dispose | ( | ) |
new void QtGui.QDragMoveEvent.Ignore | ( | ) |
This is an overloaded function.
Calls QDropEvent::ignore().
new void QtGui.QDragMoveEvent.Ignore | ( | QRect | r | ) |
The opposite of the accept(const QRect&) function. Moves within the rectangle are not acceptable, and will be ignored.
|
getsetprotected |