Initiates a drag on the source side.
The function only needs to be used when the application is starting drags itself, and is not needed when drag_source_set is used.
The event is used to retrieve the timestamp that will be used internally to grab the pointer. If event is
null, then gdk_current_time will be used. However, you should try to
pass a real event in all cases, since that can be used to get information about the drag.
Generally there are three cases when you want to start a drag by hand by calling this function:
event that you have in your
button_press_event handler.event that you have in your
motion_notify_event handler.| this |
the source widget |
| targets |
The targets (data formats) in which the source can provide the data |
| actions |
A bitmask of the allowed drag actions for this drag |
| button |
The button the user clicked to start the drag |
| event |
The event that triggered the start of the drag, or null if none can be obtained. |
| x |
The initial x coordinate to start dragging from, in the coordinate space of this. If -1 is
passed, the coordinates are retrieved from |
| y |
The initial y coordinate to start dragging from, in the coordinate space of this. If -1 is
passed, the coordinates are retrieved from |
|
the context for this drag |