Table of Contents

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

DragSource(IntPtr, bool)

protected DragSource(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

ActionsPropertyDefinition

public static readonly Property<DragAction, DragSource> ActionsPropertyDefinition

Field Value

Property<DragAction, DragSource>

ContentPropertyDefinition

public static readonly Property<ContentProvider?, DragSource> ContentPropertyDefinition

Field Value

Property<ContentProvider, DragSource>

DragBeginSignal

Signal Descriptor for OnDragBegin.

public static readonly Signal<DragSource, DragSource.DragBeginSignalArgs> DragBeginSignal

Field Value

Signal<DragSource, DragSource.DragBeginSignalArgs>

DragCancelSignal

Signal Descriptor for OnDragCancel.

public static readonly ReturningSignal<DragSource, DragSource.DragCancelSignalArgs, bool> DragCancelSignal

Field Value

ReturningSignal<DragSource, DragSource.DragCancelSignalArgs, bool>

DragEndSignal

Signal Descriptor for OnDragEnd.

public static readonly Signal<DragSource, DragSource.DragEndSignalArgs> DragEndSignal

Field Value

Signal<DragSource, DragSource.DragEndSignalArgs>

PrepareSignal

Signal Descriptor for OnPrepare.

public static readonly ReturningSignal<DragSource, DragSource.PrepareSignalArgs, ContentProvider?> PrepareSignal

Field Value

ReturningSignal<DragSource, DragSource.PrepareSignalArgs, ContentProvider>

Properties

Actions

public DragAction Actions { get; set; }

Property Value

DragAction

Content

public ContentProvider? Content { get; set; }

Property Value

ContentProvider

Methods

DragCancel()

public void DragCancel()

GetActions()

public DragAction GetActions()

Returns

DragAction

GetContent()

public ContentProvider? GetContent()

Returns

ContentProvider

GetDrag()

public Drag? GetDrag()

Returns

Drag

GetGType()

public static Type GetGType()

Returns

Type

New()

public static DragSource New()

Returns

DragSource

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

paintable Paintable
hotX int
hotY int

Events

OnDragBegin

public event SignalHandler<DragSource, DragSource.DragBeginSignalArgs> OnDragBegin

Event Type

SignalHandler<DragSource, DragSource.DragBeginSignalArgs>

OnDragCancel

public event ReturningSignalHandler<DragSource, DragSource.DragCancelSignalArgs, bool> OnDragCancel

Event Type

ReturningSignalHandler<DragSource, DragSource.DragCancelSignalArgs, bool>

OnDragEnd

public event SignalHandler<DragSource, DragSource.DragEndSignalArgs> OnDragEnd

Event Type

SignalHandler<DragSource, DragSource.DragEndSignalArgs>

OnPrepare

public event ReturningSignalHandler<DragSource, DragSource.PrepareSignalArgs, ContentProvider?> OnPrepare

Event Type

ReturningSignalHandler<DragSource, DragSource.PrepareSignalArgs, ContentProvider>