Table of Contents

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

constructArguments ConstructArgument[]

DeviceTool(CreationData)

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

Parameters

data CreationData

DeviceTool(DeviceToolHandle)

protected DeviceTool(DeviceToolHandle handle)

Parameters

handle DeviceToolHandle

Fields

AxesPropertyDefinition

public static readonly Property<AxisFlags, DeviceTool> AxesPropertyDefinition

Field Value

Property<AxisFlags, DeviceTool>

HardwareIdPropertyDefinition

public static readonly Property<ulong, DeviceTool> HardwareIdPropertyDefinition

Field Value

Property<ulong, DeviceTool>

SerialPropertyDefinition

public static readonly Property<ulong, DeviceTool> SerialPropertyDefinition

Field Value

Property<ulong, DeviceTool>

ToolTypePropertyDefinition

public static readonly Property<DeviceToolType, DeviceTool> ToolTypePropertyDefinition

Field Value

Property<DeviceToolType, DeviceTool>

Properties

Axes

public AxisFlags Axes { get; }

Property Value

AxisFlags

HardwareId

public ulong HardwareId { get; }

Property Value

ulong

Serial

public ulong Serial { get; }

Property Value

ulong

ToolType

public DeviceToolType ToolType { get; }

Property Value

DeviceToolType

Methods

GetAxes()

public AxisFlags GetAxes()

Returns

AxisFlags

GetGType()

public static Type GetGType()

Returns

Type

GetHardwareId()

public ulong GetHardwareId()

Returns

ulong

GetSerial()

public ulong GetSerial()

Returns

ulong

GetToolType()

public DeviceToolType GetToolType()

Returns

DeviceToolType

NewFromPointer(nint, bool)

Creates a new managed DeviceTool instance for a given pointer.

public static DeviceTool NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

DeviceTool

NewWithProperties(ConstructArgument[])

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

public static DeviceTool NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

DeviceTool