Table of Contents

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 bool
constructArguments ConstructArgument[]

Drag(IntPtr, bool)

protected Drag(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ActionsPropertyDefinition

public static readonly Property<DragAction, Drag> ActionsPropertyDefinition

Field Value

Property<DragAction, Drag>

CancelSignal

Signal Descriptor for OnCancel.

public static readonly Signal<Drag, Drag.CancelSignalArgs> CancelSignal

Field Value

Signal<Drag, Drag.CancelSignalArgs>

ContentPropertyDefinition

public static readonly Property<ContentProvider?, Drag> ContentPropertyDefinition

Field Value

Property<ContentProvider, Drag>

DevicePropertyDefinition

public static readonly Property<Device?, Drag> DevicePropertyDefinition

Field Value

Property<Device, Drag>

DisplayPropertyDefinition

public static readonly Property<Display?, Drag> DisplayPropertyDefinition

Field Value

Property<Display, Drag>

DndFinishedSignal

Signal Descriptor for OnDndFinished.

public static readonly Signal<Drag> DndFinishedSignal

Field Value

Signal<Drag>

DropPerformedSignal

Signal Descriptor for OnDropPerformed.

public static readonly Signal<Drag> DropPerformedSignal

Field Value

Signal<Drag>

FormatsPropertyDefinition

public static readonly Property<ContentFormats, Drag> FormatsPropertyDefinition

Field Value

Property<ContentFormats, Drag>

SelectedActionPropertyDefinition

public static readonly Property<DragAction, Drag> SelectedActionPropertyDefinition

Field Value

Property<DragAction, Drag>

SurfacePropertyDefinition

public static readonly Property<Surface?, Drag> SurfacePropertyDefinition

Field Value

Property<Surface, Drag>

Properties

Actions

public DragAction Actions { get; set; }

Property Value

DragAction

Content

public ContentProvider? Content { get; }

Property Value

ContentProvider

Device

public Device? Device { get; }

Property Value

Device

Display

public Display? Display { get; }

Property Value

Display

Formats

public ContentFormats Formats { get; }

Property Value

ContentFormats

SelectedAction

public DragAction SelectedAction { get; set; }

Property Value

DragAction

Surface

public Surface? Surface { get; }

Property Value

Surface

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 Surface
device Device
content ContentProvider
actions DragAction
dx double
dy double

Returns

Drag

DropDone(bool)

public void DropDone(bool success)

Parameters

success bool

GetActions()

public DragAction GetActions()

Returns

DragAction

GetContent()

public ContentProvider GetContent()

Returns

ContentProvider

GetDevice()

public Device GetDevice()

Returns

Device

GetDisplay()

public Display GetDisplay()

Returns

Display

GetDragSurface()

public Surface? GetDragSurface()

Returns

Surface

GetFormats()

public ContentFormats GetFormats()

Returns

ContentFormats

GetGType()

public static Type GetGType()

Returns

Type

GetSelectedAction()

public DragAction GetSelectedAction()

Returns

DragAction

GetSurface()

public Surface GetSurface()

Returns

Surface

SetHotspot(int, int)

public void SetHotspot(int hotX, int hotY)

Parameters

hotX int
hotY int

Events

OnCancel

public event SignalHandler<Drag, Drag.CancelSignalArgs> OnCancel

Event Type

SignalHandler<Drag, Drag.CancelSignalArgs>

OnDndFinished

public event SignalHandler<Drag> OnDndFinished

Event Type

SignalHandler<Drag>

OnDropPerformed

public event SignalHandler<Drag> OnDropPerformed

Event Type

SignalHandler<Drag>