SeatImpl

class SeatImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : Seat

The SeatImpl type represents a native instance of the abstract Seat class.

Constructors

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

Creates a new instance of Seat for the provided CPointer.

Properties

Link copied to clipboard
open val display: Display

GdkDisplay of this seat.

Link copied to clipboard
val gdkSeatPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun emitDeviceAdded(device: Device)

Emits the "device-added" signal. See onDeviceAdded.

Link copied to clipboard

Emits the "device-removed" signal. See onDeviceRemoved.

Link copied to clipboard

Emits the "tool-added" signal. See onToolAdded.

Link copied to clipboard

Emits the "tool-removed" signal. See onToolRemoved.

Link copied to clipboard

Returns the capabilities this GdkSeat currently has.

Link copied to clipboard
open fun getDevices(capabilities: SeatCapabilities): <Error class: unknown class>

Returns the devices that match the given capabilities.

Link copied to clipboard
open fun getKeyboard(): Device?

Returns the device that routes keyboard events.

Link copied to clipboard
open fun getPointer(): Device?

Returns the device that routes pointer events.

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

Returns all GdkDeviceTools that are known to the application.

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

Emitted when a new input device is related to this seat.

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

Emitted when an input device is removed (e.g. unplugged).

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

Emitted whenever a new tool is made known to the seat.

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

Emitted whenever a tool is no longer known to this @seat.