package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gdk/Ocgtk_gdk/Gdk/Wrappers/Seat/index.html

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