package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.Seat

type t = [ `seat | `object_ ] Gobject.obj
val get_tools : t -> [ `device_tool | `object_ ] Gobject.obj list

Returns all `GdkDeviceTools` that are known to the application.

val get_pointer : t -> [ `device | `object_ ] Gobject.obj option

Returns the device that routes pointer events.

val get_keyboard : t -> [ `device | `object_ ] Gobject.obj option

Returns the device that routes keyboard events.

val get_display : t -> [ `display | `object_ ] Gobject.obj

Returns the `GdkDisplay` this seat belongs to.

val get_devices : t -> Gdk_enums.seatcapabilities -> [ `device | `object_ ] Gobject.obj list

Returns the devices that match the given capabilities.

val get_capabilities : t -> Gdk_enums.seatcapabilities

Returns the capabilities this `GdkSeat` currently has.

val on_device_added : ?after:bool -> t -> callback:(device:[ `device | `object_ ] Gobject.obj -> unit) -> Gobject.Signal.handler_id
val on_device_removed : ?after:bool -> t -> callback:(device:[ `device | `object_ ] Gobject.obj -> unit) -> Gobject.Signal.handler_id
val on_tool_added : ?after:bool -> t -> callback:(tool:[ `device_tool | `object_ ] Gobject.obj -> unit) -> Gobject.Signal.handler_id
val on_tool_removed : ?after:bool -> t -> callback:(tool:[ `device_tool | `object_ ] Gobject.obj -> unit) -> Gobject.Signal.handler_id