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
boolconstructArguments
ConstructArgument[]
Device(IntPtr, bool)
protected Device(IntPtr ptr, bool ownedRef)
Parameters
Fields
CapsLockStatePropertyDefinition
public static readonly Property<bool, Device> CapsLockStatePropertyDefinition
Field Value
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<Device> ChangedSignal
Field Value
DirectionPropertyDefinition
public static readonly Property<Direction, Device> DirectionPropertyDefinition
Field Value
DisplayPropertyDefinition
public static readonly Property<Display?, Device> DisplayPropertyDefinition
Field Value
HasBidiLayoutsPropertyDefinition
public static readonly Property<bool, Device> HasBidiLayoutsPropertyDefinition
Field Value
HasCursorPropertyDefinition
public static readonly Property<bool, Device> HasCursorPropertyDefinition
Field Value
ModifierStatePropertyDefinition
public static readonly Property<ModifierType, Device> ModifierStatePropertyDefinition
Field Value
NAxesPropertyDefinition
public static readonly Property<uint, Device> NAxesPropertyDefinition
Field Value
NamePropertyDefinition
public static readonly Property<string?, Device> NamePropertyDefinition
Field Value
NumLockStatePropertyDefinition
public static readonly Property<bool, Device> NumLockStatePropertyDefinition
Field Value
NumTouchesPropertyDefinition
public static readonly Property<uint, Device> NumTouchesPropertyDefinition
Field Value
ProductIdPropertyDefinition
public static readonly Property<string?, Device> ProductIdPropertyDefinition
Field Value
ScrollLockStatePropertyDefinition
public static readonly Property<bool, Device> ScrollLockStatePropertyDefinition
Field Value
SeatPropertyDefinition
public static readonly Property<Seat?, Device> SeatPropertyDefinition
Field Value
SourcePropertyDefinition
public static readonly Property<InputSource, Device> SourcePropertyDefinition
Field Value
ToolChangedSignal
Signal Descriptor for OnToolChanged.
public static readonly Signal<Device, Device.ToolChangedSignalArgs> ToolChangedSignal
Field Value
ToolPropertyDefinition
public static readonly Property<DeviceTool?, Device> ToolPropertyDefinition
Field Value
VendorIdPropertyDefinition
public static readonly Property<string?, Device> VendorIdPropertyDefinition
Field Value
Properties
CapsLockState
public bool CapsLockState { get; }
Property Value
Direction
public Direction Direction { get; }
Property Value
Display
public Display? Display { get; }
Property Value
HasBidiLayouts
public bool HasBidiLayouts { get; }
Property Value
HasCursor
public bool HasCursor { get; }
Property Value
ModifierState
public ModifierType ModifierState { get; }
Property Value
NAxes
public uint NAxes { get; }
Property Value
Name
public string? Name { get; }
Property Value
NumLockState
public bool NumLockState { get; }
Property Value
NumTouches
public uint NumTouches { get; }
Property Value
ProductId
public string? ProductId { get; }
Property Value
ScrollLockState
public bool ScrollLockState { get; }
Property Value
Seat
public Seat? Seat { get; set; }
Property Value
Source
public InputSource Source { get; }
Property Value
Tool
public DeviceTool? Tool { get; }
Property Value
VendorId
public string? VendorId { get; }
Property Value
Methods
GetCapsLockState()
public bool GetCapsLockState()
Returns
GetDeviceTool()
public DeviceTool? GetDeviceTool()
Returns
GetDirection()
public Direction GetDirection()
Returns
GetDisplay()
public Display GetDisplay()
Returns
GetGType()
public static Type GetGType()
Returns
GetHasBidiLayouts()
public bool GetHasBidiLayouts()
Returns
GetHasCursor()
public bool GetHasCursor()
Returns
GetModifierState()
public ModifierType GetModifierState()
Returns
GetName()
public string GetName()
Returns
GetNumLockState()
public bool GetNumLockState()
Returns
GetNumTouches()
public uint GetNumTouches()
Returns
GetProductId()
public string? GetProductId()
Returns
GetScrollLockState()
public bool GetScrollLockState()
Returns
GetSeat()
public Seat GetSeat()
Returns
GetSource()
public InputSource GetSource()
Returns
GetSurfaceAtPosition(out double, out double)
public Surface? GetSurfaceAtPosition(out double winX, out double winY)
Parameters
Returns
GetTimestamp()
[Version("4.2")]
public uint GetTimestamp()
Returns
GetVendorId()
public string? GetVendorId()
Returns
Events
OnChanged
public event SignalHandler<Device> OnChanged
Event Type
OnToolChanged
public event SignalHandler<Device, Device.ToolChangedSignalArgs> OnToolChanged