DevicePadImpl

data class DevicePadImpl(val gdkDevicePadPointer: <Error class: unknown class><<Error class: unknown class>>) : Device, DevicePad

The DevicePadImpl type represents a native instance of the DevicePad interface.

Constructors

Link copied to clipboard
constructor(gdkDevicePadPointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of DevicePad for the provided CPointer.

Properties

Link copied to clipboard

Whether Caps Lock is on.

Link copied to clipboard
open val direction: <Error class: unknown class>

The direction of the current layout.

Link copied to clipboard
open val display: Display

The GdkDisplay the GdkDevice pertains to.

Link copied to clipboard
open override val gdkDevicePadPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gdkDevicePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open val hasCursor: Boolean

Whether the device is represented by a cursor on the screen.

Link copied to clipboard

The current modifier state of the device.

Link copied to clipboard
open val name: String

The device name.

Link copied to clipboard

Whether Num Lock is on.

Link copied to clipboard
open val numTouches: <Error class: unknown class>

The maximal number of concurrent touches on a touch device.

Link copied to clipboard
open val productId: String?

Product ID of this device.

Link copied to clipboard

Whether Scroll Lock is on.

Link copied to clipboard
open val seat: Seat

GdkSeat of this device.

Link copied to clipboard

Source type for the device.

Link copied to clipboard
open val tool: DeviceTool?

The GdkDeviceTool that is currently used with this device.

Link copied to clipboard
open val vendorId: String?

Vendor ID of this device.

Functions

Link copied to clipboard

Emits the "changed" signal. See onChanged.

Link copied to clipboard

Emits the "tool-changed" signal. See onToolChanged.

Link copied to clipboard
open fun getFeatureGroup(feature: DevicePadFeature, featureIdx: <Error class: unknown class>): <Error class: unknown class>

Returns the group the given @feature and @idx belong to.

Link copied to clipboard
open fun getGroupNModes(groupIdx: <Error class: unknown class>): <Error class: unknown class>

Returns the number of modes that @group may have.

Link copied to clipboard
open fun getNFeatures(feature: DevicePadFeature): <Error class: unknown class>

Returns the number of features a tablet pad has.

Link copied to clipboard
open fun getNGroups(): <Error class: unknown class>

Returns the number of groups this pad device has.

Link copied to clipboard
open fun getTimestamp(): <Error class: unknown class>

Returns the timestamp of the last activity for this device.

Link copied to clipboard

Determines if layouts for both right-to-left and left-to-right languages are in use on the keyboard.

Link copied to clipboard
fun onChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted either when the number of either axes or keys changes.

Link copied to clipboard
fun onToolChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (tool: DeviceTool) -> Unit): <Error class: unknown class>

Emitted on pen/eraser devices whenever tools enter or leave proximity.