Class Drag
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class Drag : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
- Inheritance
-
Drag
- Implements
- Inherited Members
Constructors
Drag(bool, params ConstructArgument[])
protected Drag(bool owned, params ConstructArgument[] constructArguments)
Parameters
owned
boolconstructArguments
ConstructArgument[]
Drag(IntPtr, bool)
protected Drag(IntPtr ptr, bool ownedRef)
Parameters
Fields
ActionsPropertyDefinition
public static readonly Property<DragAction, Drag> ActionsPropertyDefinition
Field Value
CancelSignal
Signal Descriptor for OnCancel.
public static readonly Signal<Drag, Drag.CancelSignalArgs> CancelSignal
Field Value
ContentPropertyDefinition
public static readonly Property<ContentProvider?, Drag> ContentPropertyDefinition
Field Value
DevicePropertyDefinition
public static readonly Property<Device?, Drag> DevicePropertyDefinition
Field Value
DisplayPropertyDefinition
public static readonly Property<Display?, Drag> DisplayPropertyDefinition
Field Value
DndFinishedSignal
Signal Descriptor for OnDndFinished.
public static readonly Signal<Drag> DndFinishedSignal
Field Value
DropPerformedSignal
Signal Descriptor for OnDropPerformed.
public static readonly Signal<Drag> DropPerformedSignal
Field Value
FormatsPropertyDefinition
public static readonly Property<ContentFormats, Drag> FormatsPropertyDefinition
Field Value
SelectedActionPropertyDefinition
public static readonly Property<DragAction, Drag> SelectedActionPropertyDefinition
Field Value
SurfacePropertyDefinition
public static readonly Property<Surface?, Drag> SurfacePropertyDefinition
Field Value
Properties
Actions
public DragAction Actions { get; set; }
Property Value
Content
public ContentProvider? Content { get; }
Property Value
Device
public Device? Device { get; }
Property Value
Display
public Display? Display { get; }
Property Value
Formats
public ContentFormats Formats { get; }
Property Value
SelectedAction
public DragAction SelectedAction { get; set; }
Property Value
Surface
public Surface? Surface { get; }
Property Value
Methods
Begin(Surface, Device, ContentProvider, DragAction, double, double)
public static Drag? Begin(Surface surface, Device device, ContentProvider content, DragAction actions, double dx, double dy)
Parameters
surface
Surfacedevice
Devicecontent
ContentProvideractions
DragActiondx
doubledy
double
Returns
DropDone(bool)
public void DropDone(bool success)
Parameters
success
bool
GetActions()
public DragAction GetActions()
Returns
GetContent()
public ContentProvider GetContent()
Returns
GetDevice()
public Device GetDevice()
Returns
GetDisplay()
public Display GetDisplay()
Returns
GetDragSurface()
public Surface? GetDragSurface()
Returns
GetFormats()
public ContentFormats GetFormats()
Returns
GetGType()
public static Type GetGType()
Returns
GetSelectedAction()
public DragAction GetSelectedAction()
Returns
GetSurface()
public Surface GetSurface()
Returns
SetHotspot(int, int)
public void SetHotspot(int hotX, int hotY)
Parameters
Events
OnCancel
public event SignalHandler<Drag, Drag.CancelSignalArgs> OnCancel
Event Type
OnDndFinished
public event SignalHandler<Drag> OnDndFinished
Event Type
OnDropPerformed
public event SignalHandler<Drag> OnDropPerformed