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
constructArgumentsConstructArgument[]
GestureSingle(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected GestureSingle(CreationData data)
Parameters
dataCreationData
GestureSingle(GestureSingleHandle)
protected GestureSingle(GestureSingleHandle handle)
Parameters
handleGestureSingleHandle
Fields
ButtonPropertyDefinition
public static readonly Property<uint, GestureSingle> ButtonPropertyDefinition
Field Value
ExclusivePropertyDefinition
public static readonly Property<bool, GestureSingle> ExclusivePropertyDefinition
Field Value
TouchOnlyPropertyDefinition
public static readonly Property<bool, GestureSingle> TouchOnlyPropertyDefinition
Field Value
Properties
Button
public uint Button { get; set; }
Property Value
Exclusive
public bool Exclusive { get; set; }
Property Value
TouchOnly
public bool TouchOnly { get; set; }
Property Value
Methods
GetButton()
public uint GetButton()
Returns
GetCurrentButton()
public uint GetCurrentButton()
Returns
GetCurrentSequence()
public EventSequence? GetCurrentSequence()
Returns
GetExclusive()
public bool GetExclusive()
Returns
GetGType()
public static Type GetGType()
Returns
GetTouchOnly()
public bool GetTouchOnly()
Returns
NewFromPointer(nint, bool)
Creates a new managed GestureSingle instance for a given pointer.
public static GestureSingle NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new GestureSingle and sets the properties specified by the construct arguments.
public static GestureSingle NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetButton(uint)
public void SetButton(uint button)
Parameters
buttonuint
SetExclusive(bool)
public void SetExclusive(bool exclusive)
Parameters
exclusivebool
SetTouchOnly(bool)
public void SetTouchOnly(bool touchOnly)
Parameters
touchOnlybool