Class DeviceTool
- Namespace
- Gdk
- Assembly
- Gdk-4.0.dll
public class DeviceTool : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
DeviceTool
- Implements
- Inherited Members
Constructors
DeviceTool(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 DeviceTool(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
DeviceTool(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected DeviceTool(CreationData data)
Parameters
dataCreationData
DeviceTool(DeviceToolHandle)
protected DeviceTool(DeviceToolHandle handle)
Parameters
handleDeviceToolHandle
Fields
AxesPropertyDefinition
public static readonly Property<AxisFlags, DeviceTool> AxesPropertyDefinition
Field Value
HardwareIdPropertyDefinition
public static readonly Property<ulong, DeviceTool> HardwareIdPropertyDefinition
Field Value
SerialPropertyDefinition
public static readonly Property<ulong, DeviceTool> SerialPropertyDefinition
Field Value
ToolTypePropertyDefinition
public static readonly Property<DeviceToolType, DeviceTool> ToolTypePropertyDefinition
Field Value
Properties
Axes
public AxisFlags Axes { get; }
Property Value
HardwareId
public ulong HardwareId { get; }
Property Value
Serial
public ulong Serial { get; }
Property Value
ToolType
public DeviceToolType ToolType { get; }
Property Value
Methods
GetAxes()
public AxisFlags GetAxes()
Returns
GetGType()
public static Type GetGType()
Returns
GetHardwareId()
public ulong GetHardwareId()
Returns
GetSerial()
public ulong GetSerial()
Returns
GetToolType()
public DeviceToolType GetToolType()
Returns
NewFromPointer(nint, bool)
Creates a new managed DeviceTool instance for a given pointer.
public static DeviceTool NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new DeviceTool and sets the properties specified by the construct arguments.
public static DeviceTool NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.