Table of Contents

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

constructArguments ConstructArgument[]

GestureLongPress(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GestureLongPress(CreationData data)

Parameters

data CreationData

GestureLongPress(GestureLongPressHandle)

protected GestureLongPress(GestureLongPressHandle handle)

Parameters

handle GestureLongPressHandle

Fields

CancelledSignal

Signal Descriptor for OnCancelled.

public static readonly Signal<GestureLongPress> CancelledSignal

Field Value

Signal<GestureLongPress>

DelayFactorPropertyDefinition

public static readonly Property<double, GestureLongPress> DelayFactorPropertyDefinition

Field Value

Property<double, GestureLongPress>

PressedSignal

Signal Descriptor for OnPressed.

public static readonly Signal<GestureLongPress, GestureLongPress.PressedSignalArgs> PressedSignal

Field Value

Signal<GestureLongPress, GestureLongPress.PressedSignalArgs>

Properties

DelayFactor

public double DelayFactor { get; set; }

Property Value

double

Methods

GetDelayFactor()

public double GetDelayFactor()

Returns

double

GetGType()

public static Type GetGType()

Returns

Type

New()

public static GestureLongPress New()

Returns

GestureLongPress

NewFromPointer(nint, bool)

Creates a new managed GestureLongPress instance for a given pointer.

public static GestureLongPress NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

GestureLongPress

NewWithProperties(ConstructArgument[])

Creates a new GestureLongPress and sets the properties specified by the construct arguments.

public static GestureLongPress NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

GestureLongPress

SetDelayFactor(double)

public void SetDelayFactor(double delayFactor)

Parameters

delayFactor double

Events

OnCancelled

public event SignalHandler<GestureLongPress> OnCancelled

Event Type

SignalHandler<GestureLongPress>

OnPressed

public event SignalHandler<GestureLongPress, GestureLongPress.PressedSignalArgs> OnPressed

Event Type

SignalHandler<GestureLongPress, GestureLongPress.PressedSignalArgs>