Class GestureDrag
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class GestureDrag : GestureSingle, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
GestureDrag
- Implements
- Derived
- Inherited Members
Constructors
GestureDrag(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 GestureDrag(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
GestureDrag(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GestureDrag(CreationData data)
Parameters
dataCreationData
GestureDrag(GestureDragHandle)
protected GestureDrag(GestureDragHandle handle)
Parameters
handleGestureDragHandle
Fields
DragBeginSignal
Signal Descriptor for OnDragBegin.
public static readonly Signal<GestureDrag, GestureDrag.DragBeginSignalArgs> DragBeginSignal
Field Value
DragEndSignal
Signal Descriptor for OnDragEnd.
public static readonly Signal<GestureDrag, GestureDrag.DragEndSignalArgs> DragEndSignal
Field Value
DragUpdateSignal
Signal Descriptor for OnDragUpdate.
public static readonly Signal<GestureDrag, GestureDrag.DragUpdateSignalArgs> DragUpdateSignal
Field Value
Methods
GetGType()
public static Type GetGType()
Returns
GetOffset(out double, out double)
public bool GetOffset(out double x, out double y)
Parameters
Returns
GetStartPoint(out double, out double)
public bool GetStartPoint(out double x, out double y)
Parameters
Returns
New()
public static GestureDrag New()
Returns
NewFromPointer(nint, bool)
Creates a new managed GestureDrag instance for a given pointer.
public static GestureDrag NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new GestureDrag and sets the properties specified by the construct arguments.
public static GestureDrag NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
Events
OnDragBegin
public event SignalHandler<GestureDrag, GestureDrag.DragBeginSignalArgs> OnDragBegin
Event Type
OnDragEnd
public event SignalHandler<GestureDrag, GestureDrag.DragEndSignalArgs> OnDragEnd
Event Type
OnDragUpdate
public event SignalHandler<GestureDrag, GestureDrag.DragUpdateSignalArgs> OnDragUpdate