Class Drop
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class Drop : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
Drop
- Implements
- Inherited Members
Constructors
Drop(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public Drop(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Drop(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected Drop(CreationData data)
Parameters
dataCreationData
Drop(DropHandle)
protected Drop(DropHandle handle)
Parameters
handleDropHandle
Fields
ActionsPropertyDefinition
public static readonly Property<DragAction, Drop> ActionsPropertyDefinition
Field Value
DevicePropertyDefinition
public static readonly Property<Device?, Drop> DevicePropertyDefinition
Field Value
DisplayPropertyDefinition
public static readonly Property<Display?, Drop> DisplayPropertyDefinition
Field Value
DragPropertyDefinition
public static readonly Property<Drag?, Drop> DragPropertyDefinition
Field Value
FormatsPropertyDefinition
public static readonly Property<ContentFormats, Drop> FormatsPropertyDefinition
Field Value
SurfacePropertyDefinition
public static readonly Property<Surface?, Drop> SurfacePropertyDefinition
Field Value
Properties
Actions
public DragAction Actions { get; }
Property Value
Device
public Device? Device { get; }
Property Value
Display
public Display? Display { get; }
Property Value
Drag
public Drag? Drag { get; }
Property Value
Formats
public ContentFormats Formats { get; }
Property Value
Surface
public Surface? Surface { get; }
Property Value
Methods
Finish(DragAction)
public void Finish(DragAction action)
Parameters
actionDragAction
GetActions()
public DragAction GetActions()
Returns
GetDevice()
public Device GetDevice()
Returns
GetDisplay()
public Display GetDisplay()
Returns
GetDrag()
public Drag? GetDrag()
Returns
GetFormats()
public ContentFormats GetFormats()
Returns
GetGType()
public static Type GetGType()
Returns
GetSurface()
public Surface GetSurface()
Returns
NewFromPointer(nint, bool)
Creates a new managed Drop instance for a given pointer.
public static Drop NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new Drop and sets the properties specified by the construct arguments.
public static Drop NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ReadFinish(AsyncResult, out string)
public InputStream? ReadFinish(AsyncResult result, out string outMimeType)
Parameters
resultAsyncResultoutMimeTypestring
Returns
ReadValueFinish(AsyncResult)
public Value ReadValueFinish(AsyncResult result)
Parameters
resultAsyncResult
Returns
Status(DragAction, DragAction)
public void Status(DragAction actions, DragAction preferred)
Parameters
actionsDragActionpreferredDragAction