1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432(* This file was generated automatically by wayland-scanner-ocaml *)moduleWl_display=structtypet=[`Wl_display]type_Metadata.ty+=T:[`Wl_display]Metadata.tytypeversions=[`V1]letinterface="wl_display"letversion=1l(** Global error values.
These errors are global and can be emitted in response to any
server request. *)moduleError=structtypet=|Invalid_object:t|Invalid_method:t|No_memory:t|Implementation:tletto_int32=function|Invalid_object->0l|Invalid_method->1l|No_memory->2l|Implementation->3lletof_int32=function|0l->Invalid_object|1l->Invalid_method|2l->No_memory|3l->Implementation|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"sync",["callback",`New_ID(Some"wl_callback")]|1->"get_registry",["registry",`New_ID(Some"wl_registry")]|i->Proxy.unknown_requesti,[]letevents=function|0->"error",["object_id",`Object(None);"code",`Uint;"message",`String]|1->"delete_id",["id",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_display)moduleWl_registry=structtypet=[`Wl_registry]type_Metadata.ty+=T:[`Wl_registry]Metadata.tytypeversions=[`V1]letinterface="wl_registry"letversion=1lletrequests=function|0->"bind",["name",`Uint;"id",`New_ID(None)]|i->Proxy.unknown_requesti,[]letevents=function|0->"global",["name",`Uint;"interface",`String;"version",`Uint]|1->"global_remove",["name",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_registry)moduleWl_callback=structtypet=[`Wl_callback]type_Metadata.ty+=T:[`Wl_callback]Metadata.tytypeversions=[`V1]letinterface="wl_callback"letversion=1lletrequests=function|i->Proxy.unknown_requesti,[]letevents=function|0->"done",["callback_data",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_callback)moduleWl_compositor=structtypet=[`Wl_compositor]type_Metadata.ty+=T:[`Wl_compositor]Metadata.tytypeversions=[`V1|`V2|`V3|`V4|`V5|`V6]letinterface="wl_compositor"letversion=6lletrequests=function|0->"create_surface",["id",`New_ID(Some"wl_surface")]|1->"create_region",["id",`New_ID(Some"wl_region")]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_compositor)moduleWl_shm_pool=structtypet=[`Wl_shm_pool]type_Metadata.ty+=T:[`Wl_shm_pool]Metadata.tytypeversions=[`V1|`V2]letinterface="wl_shm_pool"letversion=2lletrequests=function|0->"create_buffer",["id",`New_ID(Some"wl_buffer");"offset",`Int;"width",`Int;"height",`Int;"stride",`Int;"format",`Uint]|1->"destroy",[]|2->"resize",["size",`Int]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_shm_pool)moduleWl_shm=structtypet=[`Wl_shm]type_Metadata.ty+=T:[`Wl_shm]Metadata.tytypeversions=[`V1|`V2]letinterface="wl_shm"letversion=2l(** Wl_shm error values.
These errors can be emitted in response to wl_shm requests. *)moduleError=structtypet=|Invalid_format:t|Invalid_stride:t|Invalid_fd:tletto_int32=function|Invalid_format->0l|Invalid_stride->1l|Invalid_fd->2lletof_int32=function|0l->Invalid_format|1l->Invalid_stride|2l->Invalid_fd|x->Fmt.failwith"Invalid error enum value %ld"xend(** Pixel formats.
This describes the memory layout of an individual pixel.
All renderers should support argb8888 and xrgb8888 but any other
formats are optional and may not be supported by the particular
renderer in use.
The drm format codes match the macros defined in drm_fourcc.h, except
argb8888 and xrgb8888. The formats actually supported by the compositor
will be reported by the format event.
For all wl_shm formats and unless specified in another protocol
extension, pre-multiplied alpha is used for pixel values. *)moduleFormat=structtypet=|Argb8888:t|Xrgb8888:t|C8:t|Rgb332:t|Bgr233:t|Xrgb4444:t|Xbgr4444:t|Rgbx4444:t|Bgrx4444:t|Argb4444:t|Abgr4444:t|Rgba4444:t|Bgra4444:t|Xrgb1555:t|Xbgr1555:t|Rgbx5551:t|Bgrx5551:t|Argb1555:t|Abgr1555:t|Rgba5551:t|Bgra5551:t|Rgb565:t|Bgr565:t|Rgb888:t|Bgr888:t|Xbgr8888:t|Rgbx8888:t|Bgrx8888:t|Abgr8888:t|Rgba8888:t|Bgra8888:t|Xrgb2101010:t|Xbgr2101010:t|Rgbx1010102:t|Bgrx1010102:t|Argb2101010:t|Abgr2101010:t|Rgba1010102:t|Bgra1010102:t|Yuyv:t|Yvyu:t|Uyvy:t|Vyuy:t|Ayuv:t|Nv12:t|Nv21:t|Nv16:t|Nv61:t|Yuv410:t|Yvu410:t|Yuv411:t|Yvu411:t|Yuv420:t|Yvu420:t|Yuv422:t|Yvu422:t|Yuv444:t|Yvu444:t|R8:t|R16:t|Rg88:t|Gr88:t|Rg1616:t|Gr1616:t|Xrgb16161616f:t|Xbgr16161616f:t|Argb16161616f:t|Abgr16161616f:t|Xyuv8888:t|Vuy888:t|Vuy101010:t|Y210:t|Y212:t|Y216:t|Y410:t|Y412:t|Y416:t|Xvyu2101010:t|Xvyu12_16161616:t|Xvyu16161616:t|Y0l0:t|X0l0:t|Y0l2:t|X0l2:t|Yuv420_8bit:t|Yuv420_10bit:t|Xrgb8888_a8:t|Xbgr8888_a8:t|Rgbx8888_a8:t|Bgrx8888_a8:t|Rgb888_a8:t|Bgr888_a8:t|Rgb565_a8:t|Bgr565_a8:t|Nv24:t|Nv42:t|P210:t|P010:t|P012:t|P016:t|Axbxgxrx106106106106:t|Nv15:t|Q410:t|Q401:t|Xrgb16161616:t|Xbgr16161616:t|Argb16161616:t|Abgr16161616:t|C1:t|C2:t|C4:t|D1:t|D2:t|D4:t|D8:t|R1:t|R2:t|R4:t|R10:t|R12:t|Avuy8888:t|Xvuy8888:t|P030:tletto_int32=function|Argb8888->0l|Xrgb8888->1l|C8->538982467l|Rgb332->943867730l|Bgr233->944916290l|Xrgb4444->842093144l|Xbgr4444->842089048l|Rgbx4444->842094674l|Bgrx4444->842094658l|Argb4444->842093121l|Abgr4444->842089025l|Rgba4444->842088786l|Bgra4444->842088770l|Xrgb1555->892424792l|Xbgr1555->892420696l|Rgbx5551->892426322l|Bgrx5551->892426306l|Argb1555->892424769l|Abgr1555->892420673l|Rgba5551->892420434l|Bgra5551->892420418l|Rgb565->909199186l|Bgr565->909199170l|Rgb888->875710290l|Bgr888->875710274l|Xbgr8888->875709016l|Rgbx8888->875714642l|Bgrx8888->875714626l|Abgr8888->875708993l|Rgba8888->875708754l|Bgra8888->875708738l|Xrgb2101010->808669784l|Xbgr2101010->808665688l|Rgbx1010102->808671314l|Bgrx1010102->808671298l|Argb2101010->808669761l|Abgr2101010->808665665l|Rgba1010102->808665426l|Bgra1010102->808665410l|Yuyv->1448695129l|Yvyu->1431918169l|Uyvy->1498831189l|Vyuy->1498765654l|Ayuv->1448433985l|Nv12->842094158l|Nv21->825382478l|Nv16->909203022l|Nv61->825644622l|Yuv410->961959257l|Yvu410->961893977l|Yuv411->825316697l|Yvu411->825316953l|Yuv420->842093913l|Yvu420->842094169l|Yuv422->909202777l|Yvu422->909203033l|Yuv444->875713881l|Yvu444->875714137l|R8->538982482l|R16->540422482l|Rg88->943212370l|Gr88->943215175l|Rg1616->842221394l|Gr1616->842224199l|Xrgb16161616f->1211388504l|Xbgr16161616f->1211384408l|Argb16161616f->1211388481l|Abgr16161616f->1211384385l|Xyuv8888->1448434008l|Vuy888->875713878l|Vuy101010->808670550l|Y210->808530521l|Y212->842084953l|Y216->909193817l|Y410->808531033l|Y412->842085465l|Y416->909194329l|Xvyu2101010->808670808l|Xvyu12_16161616->909334104l|Xvyu16161616->942954072l|Y0l0->810299481l|X0l0->810299480l|Y0l2->843853913l|X0l2->843853912l|Yuv420_8bit->942691673l|Yuv420_10bit->808539481l|Xrgb8888_a8->943805016l|Xbgr8888_a8->943800920l|Rgbx8888_a8->943806546l|Bgrx8888_a8->943806530l|Rgb888_a8->943798354l|Bgr888_a8->943798338l|Rgb565_a8->943797586l|Bgr565_a8->943797570l|Nv24->875714126l|Nv42->842290766l|P210->808530512l|P010->808530000l|P012->842084432l|P016->909193296l|Axbxgxrx106106106106->808534593l|Nv15->892425806l|Q410->808531025l|Q401->825242705l|Xrgb16161616->942953048l|Xbgr16161616->942948952l|Argb16161616->942953025l|Abgr16161616->942948929l|C1->538980675l|C2->538980931l|C4->538981443l|D1->538980676l|D2->538980932l|D4->538981444l|D8->538982468l|R1->538980690l|R2->538980946l|R4->538981458l|R10->540029266l|R12->540160338l|Avuy8888->1498764865l|Xvuy8888->1498764888l|P030->808661072lletof_int32=function|0l->Argb8888|1l->Xrgb8888|538982467l->C8|943867730l->Rgb332|944916290l->Bgr233|842093144l->Xrgb4444|842089048l->Xbgr4444|842094674l->Rgbx4444|842094658l->Bgrx4444|842093121l->Argb4444|842089025l->Abgr4444|842088786l->Rgba4444|842088770l->Bgra4444|892424792l->Xrgb1555|892420696l->Xbgr1555|892426322l->Rgbx5551|892426306l->Bgrx5551|892424769l->Argb1555|892420673l->Abgr1555|892420434l->Rgba5551|892420418l->Bgra5551|909199186l->Rgb565|909199170l->Bgr565|875710290l->Rgb888|875710274l->Bgr888|875709016l->Xbgr8888|875714642l->Rgbx8888|875714626l->Bgrx8888|875708993l->Abgr8888|875708754l->Rgba8888|875708738l->Bgra8888|808669784l->Xrgb2101010|808665688l->Xbgr2101010|808671314l->Rgbx1010102|808671298l->Bgrx1010102|808669761l->Argb2101010|808665665l->Abgr2101010|808665426l->Rgba1010102|808665410l->Bgra1010102|1448695129l->Yuyv|1431918169l->Yvyu|1498831189l->Uyvy|1498765654l->Vyuy|1448433985l->Ayuv|842094158l->Nv12|825382478l->Nv21|909203022l->Nv16|825644622l->Nv61|961959257l->Yuv410|961893977l->Yvu410|825316697l->Yuv411|825316953l->Yvu411|842093913l->Yuv420|842094169l->Yvu420|909202777l->Yuv422|909203033l->Yvu422|875713881l->Yuv444|875714137l->Yvu444|538982482l->R8|540422482l->R16|943212370l->Rg88|943215175l->Gr88|842221394l->Rg1616|842224199l->Gr1616|1211388504l->Xrgb16161616f|1211384408l->Xbgr16161616f|1211388481l->Argb16161616f|1211384385l->Abgr16161616f|1448434008l->Xyuv8888|875713878l->Vuy888|808670550l->Vuy101010|808530521l->Y210|842084953l->Y212|909193817l->Y216|808531033l->Y410|842085465l->Y412|909194329l->Y416|808670808l->Xvyu2101010|909334104l->Xvyu12_16161616|942954072l->Xvyu16161616|810299481l->Y0l0|810299480l->X0l0|843853913l->Y0l2|843853912l->X0l2|942691673l->Yuv420_8bit|808539481l->Yuv420_10bit|943805016l->Xrgb8888_a8|943800920l->Xbgr8888_a8|943806546l->Rgbx8888_a8|943806530l->Bgrx8888_a8|943798354l->Rgb888_a8|943798338l->Bgr888_a8|943797586l->Rgb565_a8|943797570l->Bgr565_a8|875714126l->Nv24|842290766l->Nv42|808530512l->P210|808530000l->P010|842084432l->P012|909193296l->P016|808534593l->Axbxgxrx106106106106|892425806l->Nv15|808531025l->Q410|825242705l->Q401|942953048l->Xrgb16161616|942948952l->Xbgr16161616|942953025l->Argb16161616|942948929l->Abgr16161616|538980675l->C1|538980931l->C2|538981443l->C4|538980676l->D1|538980932l->D2|538981444l->D4|538982468l->D8|538980690l->R1|538980946l->R2|538981458l->R4|540029266l->R10|540160338l->R12|1498764865l->Avuy8888|1498764888l->Xvuy8888|808661072l->P030|x->Fmt.failwith"Invalid format enum value %ld"xendletrequests=function|0->"create_pool",["id",`New_ID(Some"wl_shm_pool");"fd",`FD;"size",`Int]|1->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"format",["format",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_shm)moduleWl_buffer=structtypet=[`Wl_buffer]type_Metadata.ty+=T:[`Wl_buffer]Metadata.tytypeversions=[`V1]letinterface="wl_buffer"letversion=1lletrequests=function|0->"destroy",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"release",[]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_buffer)moduleWl_data_offer=structtypet=[`Wl_data_offer]type_Metadata.ty+=T:[`Wl_data_offer]Metadata.tytypeversions=[`V1|`V2|`V3]letinterface="wl_data_offer"letversion=3lmoduleError=structtypet=|Invalid_finish:t|Invalid_action_mask:t|Invalid_action:t|Invalid_offer:tletto_int32=function|Invalid_finish->0l|Invalid_action_mask->1l|Invalid_action->2l|Invalid_offer->3lletof_int32=function|0l->Invalid_finish|1l->Invalid_action_mask|2l->Invalid_action|3l->Invalid_offer|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"accept",["serial",`Uint;"mime_type",`String]|1->"receive",["mime_type",`String;"fd",`FD]|2->"destroy",[]|3->"finish",[]|4->"set_actions",["dnd_actions",`Uint;"preferred_action",`Uint]|i->Proxy.unknown_requesti,[]letevents=function|0->"offer",["mime_type",`String]|1->"source_actions",["source_actions",`Uint]|2->"action",["dnd_action",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_data_offer)moduleWl_data_source=structtypet=[`Wl_data_source]type_Metadata.ty+=T:[`Wl_data_source]Metadata.tytypeversions=[`V1|`V2|`V3]letinterface="wl_data_source"letversion=3lmoduleError=structtypet=|Invalid_action_mask:t|Invalid_source:tletto_int32=function|Invalid_action_mask->0l|Invalid_source->1lletof_int32=function|0l->Invalid_action_mask|1l->Invalid_source|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"offer",["mime_type",`String]|1->"destroy",[]|2->"set_actions",["dnd_actions",`Uint]|i->Proxy.unknown_requesti,[]letevents=function|0->"target",["mime_type",`String]|1->"send",["mime_type",`String;"fd",`FD]|2->"cancelled",[]|3->"dnd_drop_performed",[]|4->"dnd_finished",[]|5->"action",["dnd_action",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_data_source)moduleWl_data_device=structtypet=[`Wl_data_device]type_Metadata.ty+=T:[`Wl_data_device]Metadata.tytypeversions=[`V1|`V2|`V3]letinterface="wl_data_device"letversion=3lmoduleError=structtypet=|Role:t|Used_source:tletto_int32=function|Role->0l|Used_source->1lletof_int32=function|0l->Role|1l->Used_source|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"start_drag",["source",`Object(Some"wl_data_source");"origin",`Object(Some"wl_surface");"icon",`Object(Some"wl_surface");"serial",`Uint]|1->"set_selection",["source",`Object(Some"wl_data_source");"serial",`Uint]|2->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"data_offer",["id",`New_ID(Some"wl_data_offer")]|1->"enter",["serial",`Uint;"surface",`Object(Some"wl_surface");"x",`Fixed;"y",`Fixed;"id",`Object(Some"wl_data_offer")]|2->"leave",[]|3->"motion",["time",`Uint;"x",`Fixed;"y",`Fixed]|4->"drop",[]|5->"selection",["id",`Object(Some"wl_data_offer")]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_data_device)moduleWl_data_device_manager=structtypet=[`Wl_data_device_manager]type_Metadata.ty+=T:[`Wl_data_device_manager]Metadata.tytypeversions=[`V1|`V2|`V3]letinterface="wl_data_device_manager"letversion=3l(** Drag and drop actions.
This is a bitmask of the available/preferred actions in a
drag-and-drop operation.
In the compositor, the selected action is a result of matching the
actions offered by the source and destination sides. "action" events
with a "none" action will be sent to both source and destination if
there is no match. All further checks will effectively happen on
(source actions ∩ destination actions).
In addition, compositors may also pick different actions in
reaction to key modifiers being pressed. One common design that
is used in major toolkits (and the behavior recommended for
compositors) is:
- If no modifiers are pressed, the first match (in bit order)
will be used.
- Pressing Shift selects "move", if enabled in the mask.
- Pressing Control selects "copy", if enabled in the mask.
Behavior beyond that is considered implementation-dependent.
Compositors may for example bind other modifiers (like Alt/Meta)
or drags initiated with other buttons than BTN_LEFT to specific
actions (e.g. "ask"). *)moduleDnd_action=structtypet=int32letnone=0lletcopy=1lletmove=2lletask=4lletto_int32=Fun.idletof_int32=Fun.idendletrequests=function|0->"create_data_source",["id",`New_ID(Some"wl_data_source")]|1->"get_data_device",["id",`New_ID(Some"wl_data_device");"seat",`Object(Some"wl_seat")]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_data_device_manager)moduleWl_shell=structtypet=[`Wl_shell]type_Metadata.ty+=T:[`Wl_shell]Metadata.tytypeversions=[`V1]letinterface="wl_shell"letversion=1lmoduleError=structtypet=|Role:tletto_int32=function|Role->0lletof_int32=function|0l->Role|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"get_shell_surface",["id",`New_ID(Some"wl_shell_surface");"surface",`Object(Some"wl_surface")]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_shell)moduleWl_shell_surface=structtypet=[`Wl_shell_surface]type_Metadata.ty+=T:[`Wl_shell_surface]Metadata.tytypeversions=[`V1]letinterface="wl_shell_surface"letversion=1l(** Edge values for resizing.
These values are used to indicate which edge of a surface
is being dragged in a resize operation. The server may
use this information to adapt its behavior, e.g. choose
an appropriate cursor image. *)moduleResize=structtypet=int32letnone=0llettop=1lletbottom=2lletleft=4llettop_left=5lletbottom_left=6lletright=8llettop_right=9lletbottom_right=10lletto_int32=Fun.idletof_int32=Fun.idend(** Details of transient behaviour.
These flags specify details of the expected behaviour
of transient surfaces. Used in the set_transient request. *)moduleTransient=structtypet=int32letinactive=1lletto_int32=Fun.idletof_int32=Fun.idend(** Different method to set the surface fullscreen.
Hints to indicate to the compositor how to deal with a conflict
between the dimensions of the surface and the dimensions of the
output. The compositor is free to ignore this parameter. *)moduleFullscreen_method=structtypet=|Default:t|Scale:t|Driver:t|Fill:tletto_int32=function|Default->0l|Scale->1l|Driver->2l|Fill->3lletof_int32=function|0l->Default|1l->Scale|2l->Driver|3l->Fill|x->Fmt.failwith"Invalid fullscreen_method enum value %ld"xendletrequests=function|0->"pong",["serial",`Uint]|1->"move",["seat",`Object(Some"wl_seat");"serial",`Uint]|2->"resize",["seat",`Object(Some"wl_seat");"serial",`Uint;"edges",`Uint]|3->"set_toplevel",[]|4->"set_transient",["parent",`Object(Some"wl_surface");"x",`Int;"y",`Int;"flags",`Uint]|5->"set_fullscreen",["method",`Uint;"framerate",`Uint;"output",`Object(Some"wl_output")]|6->"set_popup",["seat",`Object(Some"wl_seat");"serial",`Uint;"parent",`Object(Some"wl_surface");"x",`Int;"y",`Int;"flags",`Uint]|7->"set_maximized",["output",`Object(Some"wl_output")]|8->"set_title",["title",`String]|9->"set_class",["class_",`String]|i->Proxy.unknown_requesti,[]letevents=function|0->"ping",["serial",`Uint]|1->"configure",["edges",`Uint;"width",`Int;"height",`Int]|2->"popup_done",[]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_shell_surface)moduleWl_surface=structtypet=[`Wl_surface]type_Metadata.ty+=T:[`Wl_surface]Metadata.tytypeversions=[`V1|`V2|`V3|`V4|`V5|`V6]letinterface="wl_surface"letversion=6l(** Wl_surface error values.
These errors can be emitted in response to wl_surface requests. *)moduleError=structtypet=|Invalid_scale:t|Invalid_transform:t|Invalid_size:t|Invalid_offset:t|Defunct_role_object:tletto_int32=function|Invalid_scale->0l|Invalid_transform->1l|Invalid_size->2l|Invalid_offset->3l|Defunct_role_object->4lletof_int32=function|0l->Invalid_scale|1l->Invalid_transform|2l->Invalid_size|3l->Invalid_offset|4l->Defunct_role_object|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"destroy",[]|1->"attach",["buffer",`Object(Some"wl_buffer");"x",`Int;"y",`Int]|2->"damage",["x",`Int;"y",`Int;"width",`Int;"height",`Int]|3->"frame",["callback",`New_ID(Some"wl_callback")]|4->"set_opaque_region",["region",`Object(Some"wl_region")]|5->"set_input_region",["region",`Object(Some"wl_region")]|6->"commit",[]|7->"set_buffer_transform",["transform",`Int]|8->"set_buffer_scale",["scale",`Int]|9->"damage_buffer",["x",`Int;"y",`Int;"width",`Int;"height",`Int]|10->"offset",["x",`Int;"y",`Int]|i->Proxy.unknown_requesti,[]letevents=function|0->"enter",["output",`Object(Some"wl_output")]|1->"leave",["output",`Object(Some"wl_output")]|2->"preferred_buffer_scale",["factor",`Int]|3->"preferred_buffer_transform",["transform",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_surface)moduleWl_seat=structtypet=[`Wl_seat]type_Metadata.ty+=T:[`Wl_seat]Metadata.tytypeversions=[`V1|`V2|`V3|`V4|`V5|`V6|`V7|`V8|`V9]letinterface="wl_seat"letversion=9l(** Seat capability bitmask.
This is a bitmask of capabilities this seat has; if a member is
set, then it is present on the seat. *)moduleCapability=structtypet=int32letpointer=1lletkeyboard=2llettouch=4lletto_int32=Fun.idletof_int32=Fun.idend(** Wl_seat error values.
These errors can be emitted in response to wl_seat requests. *)moduleError=structtypet=|Missing_capability:tletto_int32=function|Missing_capability->0lletof_int32=function|0l->Missing_capability|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"get_pointer",["id",`New_ID(Some"wl_pointer")]|1->"get_keyboard",["id",`New_ID(Some"wl_keyboard")]|2->"get_touch",["id",`New_ID(Some"wl_touch")]|3->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"capabilities",["capabilities",`Uint]|1->"name",["name",`String]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_seat)moduleWl_pointer=structtypet=[`Wl_pointer]type_Metadata.ty+=T:[`Wl_pointer]Metadata.tytypeversions=[`V1|`V2|`V3|`V4|`V5|`V6|`V7|`V8|`V9]letinterface="wl_pointer"letversion=9lmoduleError=structtypet=|Role:tletto_int32=function|Role->0lletof_int32=function|0l->Role|x->Fmt.failwith"Invalid error 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"xend(** Axis types.
Describes the axis types of scroll events. *)moduleAxis=structtypet=|Vertical_scroll:t|Horizontal_scroll:tletto_int32=function|Vertical_scroll->0l|Horizontal_scroll->1lletof_int32=function|0l->Vertical_scroll|1l->Horizontal_scroll|x->Fmt.failwith"Invalid axis enum value %ld"xend(** Axis source types.
Describes the source types for axis events. This indicates to the
client how an axis event was physically generated; a client may
adjust the user interface accordingly. For example, scroll events
from a "finger" source may be in a smooth coordinate space with
kinetic scrolling whereas a "wheel" source may be in discrete steps
of a number of lines.
The "continuous" axis source is a device generating events in a
continuous coordinate space, but using something other than a
finger. One example for this source is button-based scrolling where
the vertical motion of a device is converted to scroll events while
a button is held down.
The "wheel tilt" axis source indicates that the actual device is a
wheel but the scroll event is not caused by a rotation but a
(usually sideways) tilt of the wheel. *)moduleAxis_source=structtypet=|Wheel:t|Finger:t|Continuous:t|Wheel_tilt:tletto_int32=function|Wheel->0l|Finger->1l|Continuous->2l|Wheel_tilt->3lletof_int32=function|0l->Wheel|1l->Finger|2l->Continuous|3l->Wheel_tilt|x->Fmt.failwith"Invalid axis_source enum value %ld"xend(** Axis relative direction.
This specifies the direction of the physical motion that caused a
wl_pointer.axis event, relative to the wl_pointer.axis direction. *)moduleAxis_relative_direction=structtypet=|Identical:t|Inverted:tletto_int32=function|Identical->0l|Inverted->1lletof_int32=function|0l->Identical|1l->Inverted|x->Fmt.failwith"Invalid axis_relative_direction enum value %ld"xendletrequests=function|0->"set_cursor",["serial",`Uint;"surface",`Object(Some"wl_surface");"hotspot_x",`Int;"hotspot_y",`Int]|1->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"enter",["serial",`Uint;"surface",`Object(Some"wl_surface");"surface_x",`Fixed;"surface_y",`Fixed]|1->"leave",["serial",`Uint;"surface",`Object(Some"wl_surface")]|2->"motion",["time",`Uint;"surface_x",`Fixed;"surface_y",`Fixed]|3->"button",["serial",`Uint;"time",`Uint;"button",`Uint;"state",`Uint]|4->"axis",["time",`Uint;"axis",`Uint;"value",`Fixed]|5->"frame",[]|6->"axis_source",["axis_source",`Uint]|7->"axis_stop",["time",`Uint;"axis",`Uint]|8->"axis_discrete",["axis",`Uint;"discrete",`Int]|9->"axis_value120",["axis",`Uint;"value120",`Int]|10->"axis_relative_direction",["axis",`Uint;"direction",`Uint]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_pointer)moduleWl_keyboard=structtypet=[`Wl_keyboard]type_Metadata.ty+=T:[`Wl_keyboard]Metadata.tytypeversions=[`V1|`V2|`V3|`V4|`V5|`V6|`V7|`V8|`V9]letinterface="wl_keyboard"letversion=9l(** Keyboard mapping format.
This specifies the format of the keymap provided to the
client with the wl_keyboard.keymap event. *)moduleKeymap_format=structtypet=|No_keymap:t|Xkb_v1:tletto_int32=function|No_keymap->0l|Xkb_v1->1lletof_int32=function|0l->No_keymap|1l->Xkb_v1|x->Fmt.failwith"Invalid keymap_format enum value %ld"xend(** Physical key state.
Describes the physical state of a key that produced the key event. *)moduleKey_state=structtypet=|Released:t|Pressed:tletto_int32=function|Released->0l|Pressed->1lletof_int32=function|0l->Released|1l->Pressed|x->Fmt.failwith"Invalid key_state enum value %ld"xendletrequests=function|0->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"keymap",["format",`Uint;"fd",`FD;"size",`Uint]|1->"enter",["serial",`Uint;"surface",`Object(Some"wl_surface");"keys",`Array]|2->"leave",["serial",`Uint;"surface",`Object(Some"wl_surface")]|3->"key",["serial",`Uint;"time",`Uint;"key",`Uint;"state",`Uint]|4->"modifiers",["serial",`Uint;"mods_depressed",`Uint;"mods_latched",`Uint;"mods_locked",`Uint;"group",`Uint]|5->"repeat_info",["rate",`Int;"delay",`Int]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_keyboard)moduleWl_touch=structtypet=[`Wl_touch]type_Metadata.ty+=T:[`Wl_touch]Metadata.tytypeversions=[`V1|`V2|`V3|`V4|`V5|`V6|`V7|`V8|`V9]letinterface="wl_touch"letversion=9lletrequests=function|0->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"down",["serial",`Uint;"time",`Uint;"surface",`Object(Some"wl_surface");"id",`Int;"x",`Fixed;"y",`Fixed]|1->"up",["serial",`Uint;"time",`Uint;"id",`Int]|2->"motion",["time",`Uint;"id",`Int;"x",`Fixed;"y",`Fixed]|3->"frame",[]|4->"cancel",[]|5->"shape",["id",`Int;"major",`Fixed;"minor",`Fixed]|6->"orientation",["id",`Int;"orientation",`Fixed]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_touch)moduleWl_output=structtypet=[`Wl_output]type_Metadata.ty+=T:[`Wl_output]Metadata.tytypeversions=[`V1|`V2|`V3|`V4]letinterface="wl_output"letversion=4l(** Subpixel geometry information.
This enumeration describes how the physical
pixels on an output are laid out. *)moduleSubpixel=structtypet=|Unknown:t|None:t|Horizontal_rgb:t|Horizontal_bgr:t|Vertical_rgb:t|Vertical_bgr:tletto_int32=function|Unknown->0l|None->1l|Horizontal_rgb->2l|Horizontal_bgr->3l|Vertical_rgb->4l|Vertical_bgr->5lletof_int32=function|0l->Unknown|1l->None|2l->Horizontal_rgb|3l->Horizontal_bgr|4l->Vertical_rgb|5l->Vertical_bgr|x->Fmt.failwith"Invalid subpixel enum value %ld"xend(** Transform from framebuffer to output.
This describes the transform that a compositor will apply to a
surface to compensate for the rotation or mirroring of an
output device.
The flipped values correspond to an initial flip around a
vertical axis followed by rotation.
The purpose is mainly to allow clients to render accordingly and
tell the compositor, so that for fullscreen surfaces, the
compositor will still be able to scan out directly from client
surfaces. *)moduleTransform=structtypet=|Normal:t|V90:t|V180:t|V270:t|Flipped:t|Flipped_90:t|Flipped_180:t|Flipped_270:tletto_int32=function|Normal->0l|V90->1l|V180->2l|V270->3l|Flipped->4l|Flipped_90->5l|Flipped_180->6l|Flipped_270->7lletof_int32=function|0l->Normal|1l->V90|2l->V180|3l->V270|4l->Flipped|5l->Flipped_90|6l->Flipped_180|7l->Flipped_270|x->Fmt.failwith"Invalid transform enum value %ld"xend(** Mode information.
These flags describe properties of an output mode.
They are used in the flags bitfield of the mode event. *)moduleMode=structtypet=int32letcurrent=1lletpreferred=2lletto_int32=Fun.idletof_int32=Fun.idendletrequests=function|0->"release",[]|i->Proxy.unknown_requesti,[]letevents=function|0->"geometry",["x",`Int;"y",`Int;"physical_width",`Int;"physical_height",`Int;"subpixel",`Int;"make",`String;"model",`String;"transform",`Int]|1->"mode",["flags",`Uint;"width",`Int;"height",`Int;"refresh",`Int]|2->"done",[]|3->"scale",["factor",`Int]|4->"name",["name",`String]|5->"description",["description",`String]|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_output)moduleWl_region=structtypet=[`Wl_region]type_Metadata.ty+=T:[`Wl_region]Metadata.tytypeversions=[`V1]letinterface="wl_region"letversion=1lletrequests=function|0->"destroy",[]|1->"add",["x",`Int;"y",`Int;"width",`Int;"height",`Int]|2->"subtract",["x",`Int;"y",`Int;"width",`Int;"height",`Int]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_region)moduleWl_subcompositor=structtypet=[`Wl_subcompositor]type_Metadata.ty+=T:[`Wl_subcompositor]Metadata.tytypeversions=[`V1]letinterface="wl_subcompositor"letversion=1lmoduleError=structtypet=|Bad_surface:t|Bad_parent:tletto_int32=function|Bad_surface->0l|Bad_parent->1lletof_int32=function|0l->Bad_surface|1l->Bad_parent|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"destroy",[]|1->"get_subsurface",["id",`New_ID(Some"wl_subsurface");"surface",`Object(Some"wl_surface");"parent",`Object(Some"wl_surface")]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_subcompositor)moduleWl_subsurface=structtypet=[`Wl_subsurface]type_Metadata.ty+=T:[`Wl_subsurface]Metadata.tytypeversions=[`V1]letinterface="wl_subsurface"letversion=1lmoduleError=structtypet=|Bad_surface:tletto_int32=function|Bad_surface->0lletof_int32=function|0l->Bad_surface|x->Fmt.failwith"Invalid error enum value %ld"xendletrequests=function|0->"destroy",[]|1->"set_position",["x",`Int;"y",`Int]|2->"place_above",["sibling",`Object(Some"wl_surface")]|3->"place_below",["sibling",`Object(Some"wl_surface")]|4->"set_sync",[]|5->"set_desync",[]|i->Proxy.unknown_requesti,[]letevents=function|i->Proxy.unknown_eventi,[]endlet()=Iface_reg.register(moduleWl_subsurface)