Table of Contents

Class Device

Namespace
Gdk.Internal
Assembly
Gdk-4.0.dll
public class Device
Inheritance
Device
Inherited Members

Methods

GetCapsLockState(nint)

Calls native method gdk_device_get_caps_lock_state.

public static extern bool GetCapsLockState(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetDeviceTool(nint)

Calls native method gdk_device_get_device_tool.

public static extern nint GetDeviceTool(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetDirection(nint)

Calls native method gdk_device_get_direction.

public static extern Direction GetDirection(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

Direction

Transfer ownership: None Nullable: False

GetDisplay(nint)

Calls native method gdk_device_get_display.

public static extern nint GetDisplay(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: False

GetGType()

Calls native function gdk_device_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetHasCursor(nint)

Calls native method gdk_device_get_has_cursor.

public static extern bool GetHasCursor(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetModifierState(nint)

Calls native method gdk_device_get_modifier_state.

public static extern ModifierType GetModifierState(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

ModifierType

Transfer ownership: None Nullable: False

GetName(nint)

Calls native method gdk_device_get_name.

public static extern NonNullableUtf8StringUnownedHandle GetName(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

GetNumLockState(nint)

Calls native method gdk_device_get_num_lock_state.

public static extern bool GetNumLockState(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetNumTouches(nint)

Calls native method gdk_device_get_num_touches.

public static extern uint GetNumTouches(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetProductId(nint)

Calls native method gdk_device_get_product_id.

public static extern NullableUtf8StringUnownedHandle GetProductId(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

GetScrollLockState(nint)

Calls native method gdk_device_get_scroll_lock_state.

public static extern bool GetScrollLockState(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

GetSeat(nint)

Calls native method gdk_device_get_seat.

public static extern nint GetSeat(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

nint

Transfer ownership: None Nullable: False

GetSource(nint)

Calls native method gdk_device_get_source.

public static extern InputSource GetSource(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

InputSource

Transfer ownership: None Nullable: False

GetSurfaceAtPosition(nint, out double, out double)

Calls native method gdk_device_get_surface_at_position.

public static extern nint GetSurfaceAtPosition(nint device, out double winX, out double winY)

Parameters

device nint

Transfer ownership: None Nullable: False

winX double

Transfer ownership: Full Nullable: False

winY double

Transfer ownership: Full Nullable: False

Returns

nint

Transfer ownership: None Nullable: True

GetTimestamp(nint)

Calls native method gdk_device_get_timestamp. Version: 4.2

[Version("4.2")]
public static extern uint GetTimestamp(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

GetVendorId(nint)

Calls native method gdk_device_get_vendor_id.

public static extern NullableUtf8StringUnownedHandle GetVendorId(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

NullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: True

HasBidiLayouts(nint)

Calls native method gdk_device_has_bidi_layouts.

public static extern bool HasBidiLayouts(nint device)

Parameters

device nint

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False