Table of Contents

Class DropTarget

Namespace
Gtk.Internal
Assembly
Gtk-4.0.dll
public class DropTarget
Inheritance
DropTarget
Inherited Members

Methods

GetActions(IntPtr)

Calls native method gtk_drop_target_get_actions.

public static extern DragAction GetActions(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

DragAction

Transfer ownership: None Nullable: False

GetCurrentDrop(IntPtr)

Calls native method gtk_drop_target_get_current_drop. Version: 4.4

[Version("4.4")]
public static extern IntPtr GetCurrentDrop(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetDrop(IntPtr)

Calls native method gtk_drop_target_get_drop.

public static extern IntPtr GetDrop(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: None Nullable: True

GetFormats(IntPtr)

Calls native method gtk_drop_target_get_formats.

public static extern ContentFormatsUnownedHandle GetFormats(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ContentFormatsUnownedHandle

Transfer ownership: None Nullable: True

GetGType()

Calls native function gtk_drop_target_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetPreload(IntPtr)

Calls native method gtk_drop_target_get_preload.

public static extern bool GetPreload(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetValue(IntPtr)

Calls native method gtk_drop_target_get_value.

public static extern ValueUnownedHandle GetValue(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

Returns

ValueUnownedHandle

Transfer ownership: None Nullable: True

New(Type, DragAction)

Calls native constructor gtk_drop_target_new.

public static extern IntPtr New(Type type, DragAction actions)

Parameters

type Type

Transfer ownership: None Nullable: False

actions DragAction

Transfer ownership: None Nullable: False

Returns

IntPtr

Transfer ownership: Full Nullable: False

Reject(IntPtr)

Calls native method gtk_drop_target_reject.

public static extern void Reject(IntPtr self)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

SetActions(IntPtr, DragAction)

Calls native method gtk_drop_target_set_actions.

public static extern void SetActions(IntPtr self, DragAction actions)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

actions DragAction

Transfer ownership: None Nullable: False

SetGtypes(IntPtr, nuint[], nuint)

Calls native method gtk_drop_target_set_gtypes.

public static extern void SetGtypes(IntPtr self, nuint[] types, nuint nTypes)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

types UIntPtr[]

Transfer ownership: None Nullable: True

nTypes nuint

Transfer ownership: None Nullable: False

SetPreload(IntPtr, bool)

Calls native method gtk_drop_target_set_preload.

public static extern void SetPreload(IntPtr self, bool preload)

Parameters

self IntPtr

Transfer ownership: None Nullable: False

preload bool

Transfer ownership: None Nullable: False