Table of Contents

Class GestureSingle

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class GestureSingle : Gesture, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
GestureSingle
Implements
Derived
Inherited Members

Constructors

GestureSingle(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 GestureSingle(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

GestureSingle(CreationData)

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

Parameters

data CreationData

GestureSingle(GestureSingleHandle)

protected GestureSingle(GestureSingleHandle handle)

Parameters

handle GestureSingleHandle

Fields

ButtonPropertyDefinition

public static readonly Property<uint, GestureSingle> ButtonPropertyDefinition

Field Value

Property<uint, GestureSingle>

ExclusivePropertyDefinition

public static readonly Property<bool, GestureSingle> ExclusivePropertyDefinition

Field Value

Property<bool, GestureSingle>

TouchOnlyPropertyDefinition

public static readonly Property<bool, GestureSingle> TouchOnlyPropertyDefinition

Field Value

Property<bool, GestureSingle>

Properties

Button

public uint Button { get; set; }

Property Value

uint

Exclusive

public bool Exclusive { get; set; }

Property Value

bool

TouchOnly

public bool TouchOnly { get; set; }

Property Value

bool

Methods

GetButton()

public uint GetButton()

Returns

uint

GetCurrentButton()

public uint GetCurrentButton()

Returns

uint

GetCurrentSequence()

public EventSequence? GetCurrentSequence()

Returns

EventSequence

GetExclusive()

public bool GetExclusive()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

GetTouchOnly()

public bool GetTouchOnly()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed GestureSingle instance for a given pointer.

public static GestureSingle NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

GestureSingle

NewWithProperties(ConstructArgument[])

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

public static GestureSingle NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

GestureSingle

SetButton(uint)

public void SetButton(uint button)

Parameters

button uint

SetExclusive(bool)

public void SetExclusive(bool exclusive)

Parameters

exclusive bool

SetTouchOnly(bool)

public void SetTouchOnly(bool touchOnly)

Parameters

touchOnly bool