package mirage-qubes
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
The Qubes GUI agent
type event =
| UNIT of unit
| Keypress of Formats.GUI.msg_keypress_t
| Focus of Formats.GUI.msg_focus_t
| Motion of Formats.GUI.msg_motion_t
| Clipboard_request
| Clipboard_data of Cstruct.t
| Configure of Formats.GUI.msg_configure_t
| Window_crossing of Formats.GUI.msg_crossing_t
| Window_destroy
| Window_close
| Button of Formats.GUI.msg_button_t
val pp_event : Format.formatter -> event -> unit
pp_event formatter event
pretty-prints an event.
connect domid ()
connects to the guid in the given domid
over Vchan.
listen ti ()
is an event listener thread. It can be run with Lwt.async and will never return. Events are dispatched to windows created using create_window
.
val int32_of_window : window -> int32
val create_window :
?parent:window_id ->
x:Cstruct.uint32 ->
y:Cstruct.uint32 ->
title:string ->
width:Cstruct.uint32 ->
height:Cstruct.uint32 ->
t ->
window S.or_eof Lwt.t
create_window ?parent ~title ~width ~height t
instantiates a new window. The window will have dimensions width
* height
, and be instantiated at coordinates x
*y
(relative to the screen's 0,0
).
send t messages
synchronously sends messages
to the Qubes GUId using t
's established vchan
recv_event
is a blocking Lwt thread that can be called repeatedly to read new events coming in on window
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>