Class GestureLongPress
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class GestureLongPress : GestureSingle, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
GestureLongPress
- Implements
- Inherited Members
Constructors
GestureLongPress(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 GestureLongPress(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
GestureLongPress(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GestureLongPress(CreationData data)
Parameters
dataCreationData
GestureLongPress(GestureLongPressHandle)
protected GestureLongPress(GestureLongPressHandle handle)
Parameters
handleGestureLongPressHandle
Fields
CancelledSignal
Signal Descriptor for OnCancelled.
public static readonly Signal<GestureLongPress> CancelledSignal
Field Value
DelayFactorPropertyDefinition
public static readonly Property<double, GestureLongPress> DelayFactorPropertyDefinition
Field Value
PressedSignal
Signal Descriptor for OnPressed.
public static readonly Signal<GestureLongPress, GestureLongPress.PressedSignalArgs> PressedSignal
Field Value
Properties
DelayFactor
public double DelayFactor { get; set; }
Property Value
Methods
GetDelayFactor()
public double GetDelayFactor()
Returns
GetGType()
public static Type GetGType()
Returns
New()
public static GestureLongPress New()
Returns
NewFromPointer(nint, bool)
Creates a new managed GestureLongPress instance for a given pointer.
public static GestureLongPress NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new GestureLongPress and sets the properties specified by the construct arguments.
public static GestureLongPress NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetDelayFactor(double)
public void SetDelayFactor(double delayFactor)
Parameters
delayFactordouble
Events
OnCancelled
public event SignalHandler<GestureLongPress> OnCancelled
Event Type
OnPressed
public event SignalHandler<GestureLongPress, GestureLongPress.PressedSignalArgs> OnPressed