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
constructArgumentsConstructArgument[]
PadController(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected PadController(CreationData data)
Parameters
dataCreationData
PadController(PadControllerHandle)
protected PadController(PadControllerHandle handle)
Parameters
handlePadControllerHandle
Fields
ActionGroupPropertyDefinition
public static readonly Property<ActionGroup, PadController> ActionGroupPropertyDefinition
Field Value
PadPropertyDefinition
public static readonly Property<Device?, PadController> PadPropertyDefinition
Field Value
Properties
ActionGroup
public ActionGroup ActionGroup { get; }
Property Value
Pad
public Device? Pad { get; }
Property Value
Methods
GetGType()
public static Type GetGType()
Returns
New(ActionGroup, Device?)
public static PadController New(ActionGroup group, Device? pad)
Parameters
groupActionGrouppadDevice
Returns
NewFromPointer(nint, bool)
Creates a new managed PadController instance for a given pointer.
public static PadController NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new PadController and sets the properties specified by the construct arguments.
public static PadController NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
SetAction(PadActionType, int, int, string, string)
public void SetAction(PadActionType type, int index, int mode, string label, string actionName)
Parameters
typePadActionTypeindexintmodeintlabelstringactionNamestring
SetActionEntries(PadActionEntry[])
public void SetActionEntries(PadActionEntry[] entries)
Parameters
entriesPadActionEntry[]