Table of Contents

Class PadController

Namespace
Gtk
Assembly
Gtk-4.0.dll
public class PadController : EventController, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
PadController
Implements
Inherited Members

Constructors

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

Parameters

constructArguments ConstructArgument[]

PadController(CreationData)

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

Parameters

data CreationData

PadController(PadControllerHandle)

protected PadController(PadControllerHandle handle)

Parameters

handle PadControllerHandle

Fields

ActionGroupPropertyDefinition

public static readonly Property<ActionGroup, PadController> ActionGroupPropertyDefinition

Field Value

Property<ActionGroup, PadController>

PadPropertyDefinition

public static readonly Property<Device?, PadController> PadPropertyDefinition

Field Value

Property<Device, PadController>

Properties

ActionGroup

public ActionGroup ActionGroup { get; }

Property Value

ActionGroup

Pad

public Device? Pad { get; }

Property Value

Device

Methods

GetGType()

public static Type GetGType()

Returns

Type

New(ActionGroup, Device?)

public static PadController New(ActionGroup group, Device? pad)

Parameters

group ActionGroup
pad Device

Returns

PadController

NewFromPointer(nint, bool)

Creates a new managed PadController instance for a given pointer.

public static PadController NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

PadController

NewWithProperties(ConstructArgument[])

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

public static PadController NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

PadController

SetAction(PadActionType, int, int, string, string)

public void SetAction(PadActionType type, int index, int mode, string label, string actionName)

Parameters

type PadActionType
index int
mode int
label string
actionName string

SetActionEntries(PadActionEntry[])

public void SetActionEntries(PadActionEntry[] entries)

Parameters

entries PadActionEntry[]