gtk-sharp2.10.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Methods for controlling drag and drop handling.
Gtk# has a rich set of methods for doing inter-process communication via the drag-and-drop metaphor. Gtk# can do drag-and-drop (DND) via multiple protocols. The currently supported protocols are the Xdnd and Motif protocols. As well as the methods listed here, applications may need to use some facilities provided for . Also, the Drag and Drop API makes use of events in the class.
System.ObjectMethodSystem.VoidClears information about a drop destinantion set with .
A .
The will no longer receive notification of drags.
MethodGtk.WidgetDetermines the source for a drag.
A (destination side) drag context.
If the drag is occurring within a single application, a pointer to the source . Otherwise, .MethodSystem.VoidSets this as a proxy for drops to another window.
A .
The window to which to foward drag events.
The drag protocol which the accepts (You can use to determine this).
If , send the same coordinates to the destination, because it is an embedded subwindow.
MethodSystem.VoidInforms the drag sourcre that the drop is finished, and that the data of the drag will no longer be repaired.
The drag context.
A flag indicating whether the drop was successful.
A flag indicating whether the source should delete the original data (this should be for a move).
The timestamp from the event.
MethodSystem.VoidSets the target types that this can accept from drag and drop.
A that's a drag destination.
List of droppable targets, or for none.
The must first be made into a drag destination with .
MethodGdk.AtomLooks for a match between ->targets and the , returning the first matching target, otherwise returning GDK_NONE.
Drag destination .
Drag context.
List of droppable targets, or to use .
First target that the source offers and the dest can accept. or GDK_NONE. should usually be the return value from but some widgets may have different valid targets for different parts of the ; in that case, they will have to implement a drag_motion handler that passes the correct target list to this method.
MethodSystem.BooleanChecks to see if a mouse drag starting at (, ) and ending at (, ) has passed the GTK# drag threshold, and this should trigger the beginning of a drag-and-drog operation.
A .
X coordinate of a start of drag.
Y coordinate of a start of drag.
Current X coordinate.
Current Y coordinate.
if the drag threshold has been passed.MethodSystem.VoidSets the icon that will be used for drags from a particular source to a stock icon.
A .
The ID of the stock icon to use.
MethodSystem.VoidRemoves a highlight set by from a .
A .
MethodSystem.VoidDraws a highlight around a .
A to highlight.
This will attach handlers to and , so the highlight will continue to be displayed until is called.
MethodSystem.VoidSets the icon that will be used for drags from a particular from a .
A .
The for the drag icon.
GTK# retains a reference for and will release it when it is no longer needed.
MethodGdk.DragContextInitates a drag on the source side.
The source .
The targets (data formats) in which the source can provide the data.
A bitmask of the allowed drag actions for this drag.
The button the user clicked to start the drag.
The event that triggered the start of the drag.
The context fot this drag.
The method only needs to be used when the application is starting drags itself, and is not needed when is used.
MethodSystem.VoidSets the icon for a given drag from a stock ID.
The context of the drag (this must be called with a context for the source side of a drag).
The ID of the stock icon to use for the drag.
The X offset within the icon of the hotspot.
The Y offset within the icon of the hotspot.
MethodSystem.VoidObtains the data associated with a drag.
The that will receive the event.
The drag context.
The target (form of the data) to retrieve.
A timestamp for retrieving the data. This will generally be the time received in a or event.
When the data is received or the retrieval fails, GTK# will emit a event. Failure of the retrieval is indicated by the length field of the signal parameter being negative. However, when is called implicitely because the was set, then the will not receive notification of failed drops.
MethodSystem.VoidSets as the icon for a given drag.
The context for a drag (this must be called with a context for the source side of a drag).
The colormap of the icon.
The image data for the icon.
The transparency mask for the icon.
The X offset with of the hotspot.
The Y offset with of the hotspot.
GTK# retains references for the arguments, and will release them when they are no longer needed. In general, will be more convenient to use.
MethodSystem.VoidSets as the icon for a given drag.
The context for a drag (this must be called with a context for the source side of a drag).
The to use as the drag icon.
The X offset within of the hotspot.
The Y offset within of the hotspot.
MethodGtk.TargetListReturns the list of targets this can accept from drag-and-drop.
A .
The , or if none.MethodSystem.VoidUndoes the effects of .
A .
MethodSystem.VoidSets the icon that will be used for drags from a particular from a pixmap/mask.
A .
The colormap of the icon.
The image data for the icon.
The transparency mask for an image.
GTK# retains references for the arguments, and will release them when they are no longer needed. Use instead.
MethodSystem.VoidChanges the icon for a to a given .
The context for a drag (this must be called with a context for the source side of a drag.
A toplevel window to use as an icon.
The X offset within of the hotspot.
The Y offset within of the hotspot.
GTK# will not destroy the icon, so if you don't want it to persist, you should connect to the event and destroy it yourself.
ConstructorA constructor.MethodSystem.VoidSets the icon for a particular drag to the default icon.
The context of the drag (this must be called with a context for the source side of a drag).
PropertyGdk.DragContextObsolete. Replaced by System.Obsolete(Message="Replaced by SetIconDefault(ctx)", IsError=False)MethodSystem.VoidRegister a drop site and possibly add default behaviors.
a
a , which types of default drag behavior to use
a , table of targets that can be accepted
a , default behaviors
MethodSystem.VoidSets up a so that Gtk# will start a drag operation when the user clicks and drags on the .
a
The bitmask of buttons that can start the drag.
The table of targets that the drag will support.
the bitmask of possible actions for a drag from this .
The must have a window.MethodGtk.TargetList
Gets the list of targets this widget can provide for drag-and-drop.
a a , or if none.MethodSystem.Void
Changes the target types that this widget offers for drag-and-drop.
The widget must first be made into a drag source with
gtk_drag_source_set().
a
a MethodSystem.VoidObsolete.
a
a
a
a
a
Old functionality: changes the default drag icon. GTK+ retains references for the
arguments, and will release them when they are no longer needed.
This function is obsolete. The default icon should now be changed
via the stock system by changing the stock pixbuf for #GTK_STOCK_DND.
MethodSystem.VoidTo be added
a To be addedMethodSystem.VoidTo be added
a To be addedMethodSystem.VoidTo be added
a To be addedMethodSystem.VoidTo be added
a To be addedMethodSystem.VoidTo be added
a To be addedMethodSystem.VoidTo be added
a To be addedMethodSystem.Void
the source widget.
the name of an Icon in the Icon theme.
Sets a source icon by name from an Icon theme.MethodSystem.Void
The drag context.
name of an Icon in the Icon theme.
the x offset within the icon of the hotspot.
the y offset within the icon of the hotspot.
Sets the icon for a drag using a name from an Icon theme.MethodSystem.Boolean
a to test.
Tests if a widget is set to raise drag motion events.if , the widget raises .MethodSystem.Void
the to configure.
turns on motion events if .
Sets the generic drag motion behavior for a widget.This method can be used to make a widget raise events despite its target settings and flags, allowing a widget to perform generic actions regardless of the source widget's target settings.