package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gdk/Ocgtk_gdk/Gdk_enums/index.html
Module Ocgtk_gdk.Gdk_enums
type axisuse = [ | `IGNORE(*the axis is used as the x axis.
*)| `X(*the axis is used as the y axis.
*)| `Y(*the axis is used as the scroll x delta
*)| `DELTA_X(*the axis is used as the scroll y delta
*)| `DELTA_Y(*the axis is used for pressure information.
*)| `PRESSURE(*the axis is used for x tilt information.
*)| `XTILT(*the axis is used for y tilt information.
*)| `YTILT(*the axis is used for wheel information.
*)| `WHEEL(*the axis is used for pen/tablet distance information
*)| `DISTANCE(*the axis is used for pen rotation information
*)| `ROTATION(*the axis is used for pen slider information
*)| `SLIDER(*a constant equal to the numerically highest axis value.
*)| `LAST
]val axisuse_of_int : int -> axisuseval axisuse_to_int : axisuse -> inttype crossingmode = [ | `NORMAL(*crossing because a grab is activated.
*)| `GRAB(*crossing because a grab is deactivated.
*)| `UNGRAB(*crossing because a GTK grab is activated.
*)| `GTK_GRAB(*crossing because a GTK grab is deactivated.
*)| `GTK_UNGRAB(*crossing because a GTK widget changed state (e.g. sensitivity).
*)| `STATE_CHANGED(*crossing because a touch sequence has begun, this event is synthetic as the pointer might have not left the surface.
*)| `TOUCH_BEGIN(*crossing because a touch sequence has ended, this event is synthetic as the pointer might have not left the surface.
*)| `TOUCH_END(*crossing because of a device switch (i.e. a mouse taking control of the pointer after a touch device), this event is synthetic as the pointer didn’t leave the surface.
*)| `DEVICE_SWITCH
]val crossingmode_of_int : int -> crossingmodeval crossingmode_to_int : crossingmode -> intval devicepadfeature_of_int : int -> devicepadfeatureval devicepadfeature_to_int : devicepadfeature -> intval devicetooltype_of_int : int -> devicetooltypeval devicetooltype_to_int : devicetooltype -> intval dmabuferror_of_int : int -> dmabuferrorval dmabuferror_to_int : dmabuferror -> intval dragcancelreason_of_int : int -> dragcancelreasonval dragcancelreason_to_int : dragcancelreason -> inttype eventtype = [ | `DELETE(*the pointer (usually a mouse) has moved.
*)| `MOTION_NOTIFY(*a mouse button has been pressed.
*)| `BUTTON_PRESS(*a mouse button has been released.
*)| `BUTTON_RELEASE(*a key has been pressed.
*)| `KEY_PRESS(*a key has been released.
*)| `KEY_RELEASE(*the pointer has entered the surface.
*)| `ENTER_NOTIFY(*the pointer has left the surface.
*)| `LEAVE_NOTIFY(*the keyboard focus has entered or left the surface.
*)| `FOCUS_CHANGE(*an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).
*)| `PROXIMITY_IN(*an input device has moved out of contact with a sensing surface.
*)| `PROXIMITY_OUT(*the mouse has entered the surface while a drag is in progress.
*)| `DRAG_ENTER(*the mouse has left the surface while a drag is in progress.
*)| `DRAG_LEAVE(*the mouse has moved in the surface while a drag is in progress.
*)| `DRAG_MOTION(*a drop operation onto the surface has started.
*)| `DROP_START(*the scroll wheel was turned
*)| `SCROLL(*a pointer or keyboard grab was broken.
*)| `GRAB_BROKEN(*A new touch event sequence has just started.
*)| `TOUCH_BEGIN(*A touch event sequence has been updated.
*)| `TOUCH_UPDATE(*A touch event sequence has finished.
*)| `TOUCH_END(*A touch event sequence has been canceled.
*)| `TOUCH_CANCEL(*A touchpad swipe gesture event, the current state is determined by its phase field.
*)| `TOUCHPAD_SWIPE(*A touchpad pinch gesture event, the current state is determined by its phase field.
*)| `TOUCHPAD_PINCH(*A tablet pad button press event.
*)| `PAD_BUTTON_PRESS(*A tablet pad button release event.
*)| `PAD_BUTTON_RELEASE(*A tablet pad axis event from a "ring".
*)| `PAD_RING(*A tablet pad axis event from a "strip".
*)| `PAD_STRIP(*A tablet pad group mode change.
*)| `PAD_GROUP_MODE(*A touchpad hold gesture event, the current state is determined by its phase field.
*)| `TOUCHPAD_HOLD(*marks the end of the GdkEventType enumeration.
*)| `EVENT_LAST
]val eventtype_of_int : int -> eventtypeval eventtype_to_int : eventtype -> intval fullscreenmode_of_int : int -> fullscreenmodeval fullscreenmode_to_int : fullscreenmode -> intval glerror_of_int : int -> glerrorval glerror_to_int : glerror -> inttype gravity = [ | `NORTH_WEST(*the reference point is in the middle of the top edge.
*)| `NORTH(*the reference point is at the top right corner.
*)| `NORTH_EAST(*the reference point is at the middle of the left edge.
*)| `WEST(*the reference point is at the center of the surface.
*)| `CENTER(*the reference point is at the middle of the right edge.
*)| `EAST(*the reference point is at the lower left corner.
*)| `SOUTH_WEST(*the reference point is at the middle of the lower edge.
*)| `SOUTH(*the reference point is at the lower right corner.
*)| `SOUTH_EAST(*the reference point is at the top left corner of the surface itself, ignoring window manager decorations.
*)| `STATIC
]val gravity_of_int : int -> gravityval gravity_to_int : gravity -> inttype inputsource = [ | `MOUSE(*the device is a stylus of a graphics tablet or similar device.
*)| `PEN(*the device is a keyboard.
*)| `KEYBOARD(*the device is a direct-input touch device, such as a touchscreen or tablet
*)| `TOUCHSCREEN(*the device is an indirect touch device, such as a touchpad
*)| `TOUCHPAD(*the device is a trackpoint
*)| `TRACKPOINT(*the device is a "pad", a collection of buttons, rings and strips found in drawing tablets
*)| `TABLET_PAD
]val inputsource_of_int : int -> inputsourceval inputsource_to_int : inputsource -> intval keymatch_of_int : int -> keymatchval keymatch_to_int : keymatch -> inttype memoryformat = [ | `B8G8R8A8_PREMULTIPLIED(*4 bytes; for alpha, red, green, blue. The color values are premultiplied with the alpha value.
*)| `A8R8G8B8_PREMULTIPLIED(*4 bytes; for red, green, blue, alpha The color values are premultiplied with the alpha value.
*)| `R8G8B8A8_PREMULTIPLIED(*4 bytes; for blue, green, red, alpha.
*)| `B8G8R8A8(*4 bytes; for alpha, red, green, blue.
*)| `A8R8G8B8(*4 bytes; for red, green, blue, alpha.
*)| `R8G8B8A8(*4 bytes; for alpha, blue, green, red.
*)| `A8B8G8R8(*3 bytes; for red, green, blue. The data is opaque.
*)| `R8G8B8(*3 bytes; for blue, green, red. The data is opaque.
*)| `B8G8R8(*3 guint16 values; for red, green, blue.
*)| `R16G16B16(*4 guint16 values; for red, green, blue, alpha. The color values are premultiplied with the alpha value.
*)| `R16G16B16A16_PREMULTIPLIED(*4 guint16 values; for red, green, blue, alpha.
*)| `R16G16B16A16(*3 half-float values; for red, green, blue. The data is opaque.
*)| `R16G16B16_FLOAT(*4 half-float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value.
*)| `R16G16B16A16_FLOAT_PREMULTIPLIED(*4 half-float values; for red, green, blue and alpha.
*)| `R16G16B16A16_FLOAT(*3 float values; for red, green, blue.
*)| `R32G32B32_FLOAT(*4 float values; for red, green, blue and alpha. The color values are premultiplied with the alpha value.
*)| `R32G32B32A32_FLOAT_PREMULTIPLIED(*4 float values; for red, green, blue and alpha.
*)| `R32G32B32A32_FLOAT(*2 bytes; for grayscale, alpha. The color values are premultiplied with the alpha value.
*)| `G8A8_PREMULTIPLIED(*2 bytes; for grayscale, alpha.
*)| `G8A8(*One byte; for grayscale. The data is opaque.
*)| `G8(*2 guint16 values; for grayscale, alpha. The color values are premultiplied with the alpha value.
*)| `G16A16_PREMULTIPLIED(*2 guint16 values; for grayscale, alpha.
*)| `G16A16(*One guint16 value; for grayscale. The data is opaque.
*)| `G16(*One byte; for alpha.
*)| `A8(*One guint16 value; for alpha.
*)| `A16(*One half-float value; for alpha.
*)| `A16_FLOAT(*One float value; for alpha.
*)| `A32_FLOAT(*4 bytes; for alpha, blue, green, red, The color values are premultiplied with the alpha value.
*)| `A8B8G8R8_PREMULTIPLIED(*4 bytes; for blue, green, red, unused.
*)| `B8G8R8X8(*4 bytes; for unused, red, green, blue.
*)| `X8R8G8B8(*4 bytes; for red, green, blue, unused.
*)| `R8G8B8X8(*4 bytes; for unused, blue, green, red.
*)| `X8B8G8R8(*The number of formats. This value will change as more formats get added, so do not rely on its concrete integer.
*)| `N_FORMATS
]val memoryformat_of_int : int -> memoryformatval memoryformat_to_int : memoryformat -> inttype notifytype = [ | `ANCESTOR(*the pointer moves between an ancestor and an inferior of the surface.
*)| `VIRTUAL(*the surface is entered from an inferior or left towards an inferior.
*)| `INFERIOR(*the surface is entered from or left towards a surface which is neither an ancestor nor an inferior.
*)| `NONLINEAR(*the pointer moves between two surfaces which are not ancestors of each other and the surface is part of the ancestor chain between one of these surfaces and their least common ancestor.
*)| `NONLINEAR_VIRTUAL(*an unknown type of enter/leave event occurred.
*)| `UNKNOWN
]val notifytype_of_int : int -> notifytypeval notifytype_to_int : notifytype -> intval scrolldirection_of_int : int -> scrolldirectionval scrolldirection_to_int : scrolldirection -> intval scrollunit_of_int : int -> scrollunitval scrollunit_to_int : scrollunit -> inttype subpixellayout = [ | `UNKNOWN(*Not organized in this way
*)| `NONE(*The layout is horizontal, the order is RGB
*)| `HORIZONTAL_RGB(*The layout is horizontal, the order is BGR
*)| `HORIZONTAL_BGR(*The layout is vertical, the order is RGB
*)| `VERTICAL_RGB(*The layout is vertical, the order is BGR
*)| `VERTICAL_BGR
]val subpixellayout_of_int : int -> subpixellayoutval subpixellayout_to_int : subpixellayout -> intval surfaceedge_of_int : int -> surfaceedgeval surfaceedge_to_int : surfaceedge -> intval textureerror_of_int : int -> textureerrorval textureerror_to_int : textureerror -> intval titlebargesture_of_int : int -> titlebargestureval titlebargesture_to_int : titlebargesture -> intval touchpadgesturephase_of_int : int -> touchpadgesturephaseval touchpadgesturephase_to_int : touchpadgesturephase -> intval vulkanerror_of_int : int -> vulkanerrorval vulkanerror_to_int : vulkanerror -> inttype anchorhints_flag = [ | `FLIP_X(*allow flipping anchors vertically
*)| `FLIP_Y(*allow sliding surface horizontally
*)| `SLIDE_X(*allow sliding surface vertically
*)| `SLIDE_Y(*allow resizing surface horizontally
*)| `RESIZE_X(*allow resizing surface vertically
*)| `RESIZE_Y(*allow flipping anchors on both axes
*)| `FLIP(*allow sliding surface on both axes
*)| `SLIDE(*allow resizing surface on both axes
*)| `RESIZE
]type anchorhints = anchorhints_flag listval anchorhints_of_int : int -> anchorhintsval anchorhints_to_int : anchorhints -> inttype axisflags_flag = [ | `X(*Y axis is present
*)| `Y(*Scroll X delta axis is present
*)| `DELTA_X(*Scroll Y delta axis is present
*)| `DELTA_Y(*Pressure axis is present
*)| `PRESSURE(*X tilt axis is present
*)| `XTILT(*Y tilt axis is present
*)| `YTILT(*Wheel axis is present
*)| `WHEEL(*Distance axis is present
*)| `DISTANCE(*Z-axis rotation is present
*)| `ROTATION(*Slider axis is present
*)| `SLIDER
]type axisflags = axisflags_flag listval axisflags_of_int : int -> axisflagsval axisflags_to_int : axisflags -> inttype dragaction_flag = [ | `COPY(*Move the data, i.e. first copy it, then delete it from the source using the DELETE target of the X selection protocol.
*)| `MOVE(*Add a link to the data. Note that this is only useful if source and destination agree on what it means, and is not supported on all platforms.
*)| `LINK(*Ask the user what to do with the data.
*)| `ASK
]type dragaction = dragaction_flag listval dragaction_of_int : int -> dragactionval dragaction_to_int : dragaction -> inttype frameclockphase_flag = [ | `NONE(*corresponds to GdkFrameClock::flush-events. Should not be handled by applications.
*)| `FLUSH_EVENTS(*corresponds to GdkFrameClock::before-paint. Should not be handled by applications.
*)| `BEFORE_PAINT(*corresponds to GdkFrameClock::update.
*)| `UPDATE(*corresponds to GdkFrameClock::layout. Should not be handled by applications.
*)| `LAYOUT(*corresponds to GdkFrameClock::paint.
*)| `PAINT(*corresponds to GdkFrameClock::resume-events. Should not be handled by applications.
*)| `RESUME_EVENTS(*corresponds to GdkFrameClock::after-paint. Should not be handled by applications.
*)| `AFTER_PAINT
]type frameclockphase = frameclockphase_flag listval frameclockphase_of_int : int -> frameclockphaseval frameclockphase_to_int : frameclockphase -> inttype glapi = glapi_flag listval glapi_of_int : int -> glapival glapi_to_int : glapi -> inttype modifiertype_flag = [ | `NO_MODIFIER_MASK(*the Shift key.
*)| `SHIFT_MASK(*a Lock key (depending on the modifier mapping of the X server this may either be CapsLock or ShiftLock).
*)| `LOCK_MASK(*the Control key.
*)| `CONTROL_MASK(*the fourth modifier key (it depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key).
*)| `ALT_MASK(*the first mouse button.
*)| `BUTTON1_MASK(*the second mouse button.
*)| `BUTTON2_MASK(*the third mouse button.
*)| `BUTTON3_MASK(*the fourth mouse button.
*)| `BUTTON4_MASK(*the fifth mouse button.
*)| `BUTTON5_MASK(*the Super modifier
*)| `SUPER_MASK(*the Hyper modifier
*)| `HYPER_MASK(*the Meta modifier
*)| `META_MASK
]type modifiertype = modifiertype_flag listval modifiertype_of_int : int -> modifiertypeval modifiertype_to_int : modifiertype -> inttype paintableflags = paintableflags_flag listval paintableflags_of_int : int -> paintableflagsval paintableflags_to_int : paintableflags -> inttype seatcapabilities_flag = [ | `NONE(*The seat has a pointer (e.g. mouse)
*)| `POINTER(*The seat has touchscreen(s) attached
*)| `TOUCH(*The seat has drawing tablet(s) attached
*)| `TABLET_STYLUS(*The seat has keyboard(s) attached
*)| `KEYBOARD(*The seat has drawing tablet pad(s) attached
*)| `TABLET_PAD(*The union of all pointing capabilities
*)| `ALL_POINTING(*The union of all capabilities
*)| `ALL
]type seatcapabilities = seatcapabilities_flag listval seatcapabilities_of_int : int -> seatcapabilitiesval seatcapabilities_to_int : seatcapabilities -> inttype toplevelstate_flag = [ | `MINIMIZED(*the surface is maximized
*)| `MAXIMIZED(*the surface is sticky
*)| `STICKY(*the surface is maximized without decorations
*)| `FULLSCREEN(*the surface is kept above other surfaces
*)| `ABOVE(*the surface is kept below other surfaces
*)| `BELOW(*the surface is presented as focused (with active decorations)
*)| `FOCUSED(*the surface is in a tiled state
*)| `TILED(*whether the top edge is tiled
*)| `TOP_TILED(*whether the top edge is resizable
*)| `TOP_RESIZABLE(*whether the right edge is tiled
*)| `RIGHT_TILED(*whether the right edge is resizable
*)| `RIGHT_RESIZABLE(*whether the bottom edge is tiled
*)| `BOTTOM_TILED(*whether the bottom edge is resizable
*)| `BOTTOM_RESIZABLE(*whether the left edge is tiled
*)| `LEFT_TILED(*whether the left edge is resizable
*)| `LEFT_RESIZABLE(*the surface is not visible to the user
*)| `SUSPENDED
]type toplevelstate = toplevelstate_flag listval toplevelstate_of_int : int -> toplevelstateval toplevelstate_to_int : toplevelstate -> int