123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363(* This file was generated automatically by wayland-scanner-ocaml *)openstructmoduleProxy=Wayland.ProxymoduleIface_reg=Wayland.Iface_regmoduleMetadata=Wayland.MetadataendmoduleZwp_tablet_manager_v2=structtypet=[`Zwp_tablet_manager_v2]type_Metadata.ty+=T:[`Zwp_tablet_manager_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_manager_v2"letversion=1lletrequests=function|0->"get_tablet_seat",["tablet_seat",`New_ID(Some"zwp_tablet_seat_v2");"seat",`Object(Some"wl_seat")]|1->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_manager_v2)moduleZwp_tablet_seat_v2=structtypet=[`Zwp_tablet_seat_v2]type_Metadata.ty+=T:[`Zwp_tablet_seat_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_seat_v2"letversion=1lletrequests=function|0->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"tablet_added",["id",`New_ID(Some"zwp_tablet_v2")]|1->"tool_added",["id",`New_ID(Some"zwp_tablet_tool_v2")]|2->"pad_added",["id",`New_ID(Some"zwp_tablet_pad_v2")]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_seat_v2)moduleZwp_tablet_tool_v2=structtypet=[`Zwp_tablet_tool_v2]type_Metadata.ty+=T:[`Zwp_tablet_tool_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_tool_v2"letversion=1l(** A physical tool type.
Describes the physical type of a tool. The physical type of a tool
generally defines its base usage.
The mouse tool represents a mouse-shaped tool that is not a relative
device but bound to the tablet's surface, providing absolute
coordinates.
The lens tool is a mouse-shaped tool with an attached lens to
provide precision focus. *)moduleType=structtypet=|Pen:t|Eraser:t|Brush:t|Pencil:t|Airbrush:t|Finger:t|Mouse:t|Lens:tletto_int32=function|Pen->320l|Eraser->321l|Brush->322l|Pencil->323l|Airbrush->324l|Finger->325l|Mouse->326l|Lens->327lletof_int32=function|320l->Pen|321l->Eraser|322l->Brush|323l->Pencil|324l->Airbrush|325l->Finger|326l->Mouse|327l->Lens|x->Fmt.failwith"Invalid type enum value %ld"xend(** Capability flags for a tool.
Describes extra capabilities on a tablet.
Any tool must provide x and y values, extra axes are
device-specific. *)moduleCapability=structtypet=|Tilt:t|Pressure:t|Distance:t|Rotation:t|Slider:t|Wheel:tletto_int32=function|Tilt->1l|Pressure->2l|Distance->3l|Rotation->4l|Slider->5l|Wheel->6lletof_int32=function|1l->Tilt|2l->Pressure|3l->Distance|4l->Rotation|5l->Slider|6l->Wheel|x->Fmt.failwith"Invalid capability enum value %ld"xend(** Physical button state.
Describes the physical state of a button that produced the button event. *)moduleButton_state=structtypet=|Released:t|Pressed:tletto_int32=function|Released->0l|Pressed->1lletof_int32=function|0l->Released|1l->Pressed|x->Fmt.failwith"Invalid button_state enum value %ld"xendmoduleError=structtypet=|Role:tletto_int32=function|Role->0lletof_int32=function|0l->Role|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"set_cursor",["serial",`Uint;"surface",`Object(Some"wl_surface");"hotspot_x",`Int;"hotspot_y",`Int]|1->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"type",["tool_type",`Uint]|1->"hardware_serial",["hardware_serial_hi",`Uint;"hardware_serial_lo",`Uint]|2->"hardware_id_wacom",["hardware_id_hi",`Uint;"hardware_id_lo",`Uint]|3->"capability",["capability",`Uint]|4->"done",[]|5->"removed",[]|6->"proximity_in",["serial",`Uint;"tablet",`Object(Some"zwp_tablet_v2");"surface",`Object(Some"wl_surface")]|7->"proximity_out",[]|8->"down",["serial",`Uint]|9->"up",[]|10->"motion",["x",`Fixed;"y",`Fixed]|11->"pressure",["pressure",`Uint]|12->"distance",["distance",`Uint]|13->"tilt",["tilt_x",`Fixed;"tilt_y",`Fixed]|14->"rotation",["degrees",`Fixed]|15->"slider",["position",`Int]|16->"wheel",["degrees",`Fixed;"clicks",`Int]|17->"button",["serial",`Uint;"button",`Uint;"state",`Uint]|18->"frame",["time",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_tool_v2)moduleZwp_tablet_v2=structtypet=[`Zwp_tablet_v2]type_Metadata.ty+=T:[`Zwp_tablet_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_v2"letversion=1lletrequests=function|0->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"name",["name",`String]|1->"id",["vid",`Uint;"pid",`Uint]|2->"path",["path",`String]|3->"done",[]|4->"removed",[]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_v2)moduleZwp_tablet_pad_ring_v2=structtypet=[`Zwp_tablet_pad_ring_v2]type_Metadata.ty+=T:[`Zwp_tablet_pad_ring_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_pad_ring_v2"letversion=1l(** Ring axis source.
Describes the source types for ring events. This indicates to the
client how a ring event was physically generated; a client may
adjust the user interface accordingly. For example, events
from a "finger" source may trigger kinetic scrolling. *)moduleSource=structtypet=|Finger:tletto_int32=function|Finger->1lletof_int32=function|1l->Finger|x->Fmt.failwith"Invalid source enum value %ld"xendletrequests=function|0->"set_feedback",["description",`String;"serial",`Uint]|1->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"source",["source",`Uint]|1->"angle",["degrees",`Fixed]|2->"stop",[]|3->"frame",["time",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_pad_ring_v2)moduleZwp_tablet_pad_strip_v2=structtypet=[`Zwp_tablet_pad_strip_v2]type_Metadata.ty+=T:[`Zwp_tablet_pad_strip_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_pad_strip_v2"letversion=1l(** Strip axis source.
Describes the source types for strip events. This indicates to the
client how a strip event was physically generated; a client may
adjust the user interface accordingly. For example, events
from a "finger" source may trigger kinetic scrolling. *)moduleSource=structtypet=|Finger:tletto_int32=function|Finger->1lletof_int32=function|1l->Finger|x->Fmt.failwith"Invalid source enum value %ld"xendletrequests=function|0->"set_feedback",["description",`String;"serial",`Uint]|1->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"source",["source",`Uint]|1->"position",["position",`Uint]|2->"stop",[]|3->"frame",["time",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_pad_strip_v2)moduleZwp_tablet_pad_group_v2=structtypet=[`Zwp_tablet_pad_group_v2]type_Metadata.ty+=T:[`Zwp_tablet_pad_group_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_pad_group_v2"letversion=1lletrequests=function|0->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"buttons",["buttons",`Array]|1->"ring",["ring",`New_ID(Some"zwp_tablet_pad_ring_v2")]|2->"strip",["strip",`New_ID(Some"zwp_tablet_pad_strip_v2")]|3->"modes",["modes",`Uint]|4->"done",[]|5->"mode_switch",["time",`Uint;"serial",`Uint;"mode",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_pad_group_v2)moduleZwp_tablet_pad_v2=structtypet=[`Zwp_tablet_pad_v2]type_Metadata.ty+=T:[`Zwp_tablet_pad_v2]Metadata.tytypeversions=[`V1]letinterface="zwp_tablet_pad_v2"letversion=1l(** Physical button state.
Describes the physical state of a button that caused the button
event. *)moduleButton_state=structtypet=|Released:t|Pressed:tletto_int32=function|Released->0l|Pressed->1lletof_int32=function|0l->Released|1l->Pressed|x->Fmt.failwith"Invalid button_state enum value %ld"xendletrequests=function|0->"set_feedback",["button",`Uint;"description",`String;"serial",`Uint]|1->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"group",["pad_group",`New_ID(Some"zwp_tablet_pad_group_v2")]|1->"path",["path",`String]|2->"buttons",["buttons",`Uint]|3->"done",[]|4->"button",["time",`Uint;"button",`Uint;"state",`Uint]|5->"enter",["serial",`Uint;"tablet",`Object(Some"zwp_tablet_v2");"surface",`Object(Some"wl_surface")]|6->"leave",["serial",`Uint;"surface",`Object(Some"wl_surface")]|7->"removed",[]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleZwp_tablet_pad_v2)