Table of Contents

Class Device

Namespace
Gdk
Assembly
Gdk-4.0.dll
public class Device : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Device
Implements
Inherited Members

Constructors

Device(bool, params ConstructArgument[])

protected Device(bool owned, params ConstructArgument[] constructArguments)

Parameters

owned bool
constructArguments ConstructArgument[]

Device(IntPtr, bool)

protected Device(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

CapsLockStatePropertyDefinition

public static readonly Property<bool, Device> CapsLockStatePropertyDefinition

Field Value

Property<bool, Device>

ChangedSignal

Signal Descriptor for OnChanged.

public static readonly Signal<Device> ChangedSignal

Field Value

Signal<Device>

DirectionPropertyDefinition

public static readonly Property<Direction, Device> DirectionPropertyDefinition

Field Value

Property<Direction, Device>

DisplayPropertyDefinition

public static readonly Property<Display?, Device> DisplayPropertyDefinition

Field Value

Property<Display, Device>

HasBidiLayoutsPropertyDefinition

public static readonly Property<bool, Device> HasBidiLayoutsPropertyDefinition

Field Value

Property<bool, Device>

HasCursorPropertyDefinition

public static readonly Property<bool, Device> HasCursorPropertyDefinition

Field Value

Property<bool, Device>

ModifierStatePropertyDefinition

public static readonly Property<ModifierType, Device> ModifierStatePropertyDefinition

Field Value

Property<ModifierType, Device>

NAxesPropertyDefinition

public static readonly Property<uint, Device> NAxesPropertyDefinition

Field Value

Property<uint, Device>

NamePropertyDefinition

public static readonly Property<string?, Device> NamePropertyDefinition

Field Value

Property<string, Device>

NumLockStatePropertyDefinition

public static readonly Property<bool, Device> NumLockStatePropertyDefinition

Field Value

Property<bool, Device>

NumTouchesPropertyDefinition

public static readonly Property<uint, Device> NumTouchesPropertyDefinition

Field Value

Property<uint, Device>

ProductIdPropertyDefinition

public static readonly Property<string?, Device> ProductIdPropertyDefinition

Field Value

Property<string, Device>

ScrollLockStatePropertyDefinition

public static readonly Property<bool, Device> ScrollLockStatePropertyDefinition

Field Value

Property<bool, Device>

SeatPropertyDefinition

public static readonly Property<Seat?, Device> SeatPropertyDefinition

Field Value

Property<Seat, Device>

SourcePropertyDefinition

public static readonly Property<InputSource, Device> SourcePropertyDefinition

Field Value

Property<InputSource, Device>

ToolChangedSignal

Signal Descriptor for OnToolChanged.

public static readonly Signal<Device, Device.ToolChangedSignalArgs> ToolChangedSignal

Field Value

Signal<Device, Device.ToolChangedSignalArgs>

ToolPropertyDefinition

public static readonly Property<DeviceTool?, Device> ToolPropertyDefinition

Field Value

Property<DeviceTool, Device>

VendorIdPropertyDefinition

public static readonly Property<string?, Device> VendorIdPropertyDefinition

Field Value

Property<string, Device>

Properties

CapsLockState

public bool CapsLockState { get; }

Property Value

bool

Direction

public Direction Direction { get; }

Property Value

Direction

Display

public Display? Display { get; }

Property Value

Display

HasBidiLayouts

public bool HasBidiLayouts { get; }

Property Value

bool

HasCursor

public bool HasCursor { get; }

Property Value

bool

ModifierState

public ModifierType ModifierState { get; }

Property Value

ModifierType

NAxes

public uint NAxes { get; }

Property Value

uint

Name

public string? Name { get; }

Property Value

string

NumLockState

public bool NumLockState { get; }

Property Value

bool

NumTouches

public uint NumTouches { get; }

Property Value

uint

ProductId

public string? ProductId { get; }

Property Value

string

ScrollLockState

public bool ScrollLockState { get; }

Property Value

bool

Seat

public Seat? Seat { get; set; }

Property Value

Seat

Source

public InputSource Source { get; }

Property Value

InputSource

Tool

public DeviceTool? Tool { get; }

Property Value

DeviceTool

VendorId

public string? VendorId { get; }

Property Value

string

Methods

GetCapsLockState()

public bool GetCapsLockState()

Returns

bool

GetDeviceTool()

public DeviceTool? GetDeviceTool()

Returns

DeviceTool

GetDirection()

public Direction GetDirection()

Returns

Direction

GetDisplay()

public Display GetDisplay()

Returns

Display

GetGType()

public static Type GetGType()

Returns

Type

GetHasBidiLayouts()

public bool GetHasBidiLayouts()

Returns

bool

GetHasCursor()

public bool GetHasCursor()

Returns

bool

GetModifierState()

public ModifierType GetModifierState()

Returns

ModifierType

GetName()

public string GetName()

Returns

string

GetNumLockState()

public bool GetNumLockState()

Returns

bool

GetNumTouches()

public uint GetNumTouches()

Returns

uint

GetProductId()

public string? GetProductId()

Returns

string

GetScrollLockState()

public bool GetScrollLockState()

Returns

bool

GetSeat()

public Seat GetSeat()

Returns

Seat

GetSource()

public InputSource GetSource()

Returns

InputSource

GetSurfaceAtPosition(out double, out double)

public Surface? GetSurfaceAtPosition(out double winX, out double winY)

Parameters

winX double
winY double

Returns

Surface

GetTimestamp()

[Version("4.2")]
public uint GetTimestamp()

Returns

uint

GetVendorId()

public string? GetVendorId()

Returns

string

Events

OnChanged

public event SignalHandler<Device> OnChanged

Event Type

SignalHandler<Device>

OnToolChanged

public event SignalHandler<Device, Device.ToolChangedSignalArgs> OnToolChanged

Event Type

SignalHandler<Device, Device.ToolChangedSignalArgs>