Class DragSource
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class DragSource : GestureSingle, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
DragSource
- Implements
- Inherited Members
Constructors
DragSource(bool, params ConstructArgument[])
protected DragSource(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
DragSource(IntPtr, bool)
protected DragSource(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActionsPropertyDefinition
public static readonly Property<DragAction, DragSource> ActionsPropertyDefinition
Field Value
ContentPropertyDefinition
public static readonly Property<ContentProvider?, DragSource> ContentPropertyDefinition
Field Value
DragBeginSignal
Signal Descriptor for OnDragBegin.
public static readonly Signal<DragSource, DragSource.DragBeginSignalArgs> DragBeginSignal
Field Value
DragCancelSignal
Signal Descriptor for OnDragCancel.
public static readonly ReturningSignal<DragSource, DragSource.DragCancelSignalArgs, bool> DragCancelSignal
Field Value
DragEndSignal
Signal Descriptor for OnDragEnd.
public static readonly Signal<DragSource, DragSource.DragEndSignalArgs> DragEndSignal
Field Value
PrepareSignal
Signal Descriptor for OnPrepare.
public static readonly ReturningSignal<DragSource, DragSource.PrepareSignalArgs, ContentProvider?> PrepareSignal
Field Value
Properties
Actions
public DragAction Actions { get; set; }
Property Value
Content
public ContentProvider? Content { get; set; }
Property Value
Methods
DragCancel()
public void DragCancel()
GetActions()
public DragAction GetActions()
Returns
GetContent()
public ContentProvider? GetContent()
Returns
GetDrag()
public Drag? GetDrag()
Returns
GetGType()
public static Type GetGType()
Returns
New()
public static DragSource New()
Returns
SetActions(DragAction)
public void SetActions(DragAction actions)
Parameters
actions
DragAction
SetContent(ContentProvider?)
public void SetContent(ContentProvider? content)
Parameters
content
ContentProvider
SetIcon(Paintable?, int, int)
public void SetIcon(Paintable? paintable, int hotX, int hotY)
Parameters
Events
OnDragBegin
public event SignalHandler<DragSource, DragSource.DragBeginSignalArgs> OnDragBegin
Event Type
OnDragCancel
public event ReturningSignalHandler<DragSource, DragSource.DragCancelSignalArgs, bool> OnDragCancel
Event Type
OnDragEnd
public event SignalHandler<DragSource, DragSource.DragEndSignalArgs> OnDragEnd
Event Type
OnPrepare
public event ReturningSignalHandler<DragSource, DragSource.PrepareSignalArgs, ContentProvider?> OnPrepare