// Generated from the installed X11 headers. module vx11 pub type AfterFunction = fn (&Display) i32 pub type XID = CULong pub type Mask = CULong pub type Atom = CULong pub type VisualID = CULong pub type Time = CULong pub type Window = XID pub type Drawable = XID pub type Font = XID pub type Pixmap = XID pub type Cursor = XID pub type Colormap = XID pub type GContext = XID pub type KeySym = XID pub type KeyCode = u8 pub type XPointer = &char @[typedef] pub struct C.XExtData { pub mut: number i32 next &XExtData free_private fn (&XExtData) i32 private_data XPointer } pub type XExtData = C.XExtData @[typedef] pub struct C.XExtCodes { pub mut: extension i32 major_opcode i32 first_event i32 first_error i32 } pub type XExtCodes = C.XExtCodes @[typedef] pub struct C.XPixmapFormatValues { pub mut: depth i32 bits_per_pixel i32 scanline_pad i32 } pub type XPixmapFormatValues = C.XPixmapFormatValues @[typedef] pub struct C.XGCValues { pub mut: function i32 plane_mask CULong foreground CULong background CULong line_width i32 line_style i32 cap_style i32 join_style i32 fill_style i32 fill_rule i32 arc_mode i32 tile Pixmap stipple Pixmap ts_x_origin i32 ts_y_origin i32 font Font subwindow_mode i32 graphics_exposures i32 clip_x_origin i32 clip_y_origin i32 clip_mask Pixmap dash_offset i32 dashes char } pub type XGCValues = C.XGCValues pub type GC = voidptr @[typedef] pub struct C.Visual { pub mut: ext_data &XExtData visualid VisualID class i32 red_mask CULong green_mask CULong blue_mask CULong bits_per_rgb i32 map_entries i32 } pub type Visual = C.Visual @[typedef] pub struct C.Depth { pub mut: depth i32 nvisuals i32 visuals &Visual } pub type Depth = C.Depth @[typedef] pub struct C.Screen { pub mut: ext_data &XExtData display &Display root Window width i32 height i32 mwidth i32 mheight i32 ndepths i32 depths &Depth root_depth i32 root_visual &Visual default_gc GC cmap Colormap white_pixel CULong black_pixel CULong max_maps i32 min_maps i32 backing_store i32 save_unders i32 root_input_mask CLong } pub type Screen = C.Screen @[typedef] pub struct C.ScreenFormat { pub mut: ext_data &XExtData depth i32 bits_per_pixel i32 scanline_pad i32 } pub type ScreenFormat = C.ScreenFormat @[typedef] pub struct C.XSetWindowAttributes { pub mut: background_pixmap Pixmap background_pixel CULong border_pixmap Pixmap border_pixel CULong bit_gravity i32 win_gravity i32 backing_store i32 backing_planes CULong backing_pixel CULong save_under i32 event_mask CLong do_not_propagate_mask CLong override_redirect i32 colormap Colormap cursor Cursor } pub type XSetWindowAttributes = C.XSetWindowAttributes @[typedef] pub struct C.XWindowAttributes { pub mut: x i32 y i32 width i32 height i32 border_width i32 depth i32 visual &Visual root Window class i32 bit_gravity i32 win_gravity i32 backing_store i32 backing_planes CULong backing_pixel CULong save_under i32 colormap Colormap map_installed i32 map_state i32 all_event_masks CLong your_event_mask CLong do_not_propagate_mask CLong override_redirect i32 screen &Screen } pub type XWindowAttributes = C.XWindowAttributes @[typedef] pub struct C.XHostAddress { pub mut: family i32 length i32 address &char } pub type XHostAddress = C.XHostAddress @[typedef] pub struct C.XServerInterpretedAddress { pub mut: typelength i32 valuelength i32 @type &char value &char } pub type XServerInterpretedAddress = C.XServerInterpretedAddress @[typedef] pub struct C.XImage_f { pub mut: create_image fn (&Display, &Visual, u32, i32, i32, &char, u32, u32, i32, i32) &XImage destroy_image fn (&XImage) i32 get_pixel fn (&XImage, i32, i32) CULong put_pixel fn (&XImage, i32, i32, CULong) i32 sub_image fn (&XImage, i32, i32, u32, u32) &XImage add_pixel fn (&XImage, CLong) i32 } pub type XImage_f = C.XImage_f @[typedef] pub struct C.XImage { pub mut: width i32 height i32 xoffset i32 format i32 data &char byte_order i32 bitmap_unit i32 bitmap_bit_order i32 bitmap_pad i32 depth i32 bytes_per_line i32 bits_per_pixel i32 red_mask CULong green_mask CULong blue_mask CULong obdata XPointer f XImage_f } pub type XImage = C.XImage @[typedef] pub struct C.XWindowChanges { pub mut: x i32 y i32 width i32 height i32 border_width i32 sibling Window stack_mode i32 } pub type XWindowChanges = C.XWindowChanges @[typedef] pub struct C.XColor { pub mut: pixel CULong red u16 green u16 blue u16 flags char pad char } pub type XColor = C.XColor @[typedef] pub struct C.XSegment { pub mut: x1 i16 y1 i16 x2 i16 y2 i16 } pub type XSegment = C.XSegment @[typedef] pub struct C.XPoint { pub mut: x i16 y i16 } pub type XPoint = C.XPoint @[typedef] pub struct C.XRectangle { pub mut: x i16 y i16 width u16 height u16 } pub type XRectangle = C.XRectangle @[typedef] pub struct C.XArc { pub mut: x i16 y i16 width u16 height u16 angle1 i16 angle2 i16 } pub type XArc = C.XArc @[typedef] pub struct C.XKeyboardControl { pub mut: key_click_percent i32 bell_percent i32 bell_pitch i32 bell_duration i32 led i32 led_mode i32 key i32 auto_repeat_mode i32 } pub type XKeyboardControl = C.XKeyboardControl @[typedef] pub struct C.XKeyboardState { pub mut: key_click_percent i32 bell_percent i32 bell_pitch u32 bell_duration u32 led_mask CULong global_auto_repeat i32 auto_repeats [32]char } pub type XKeyboardState = C.XKeyboardState @[typedef] pub struct C.XTimeCoord { pub mut: time Time x i16 y i16 } pub type XTimeCoord = C.XTimeCoord @[typedef] pub struct C.XModifierKeymap { pub mut: max_keypermod i32 modifiermap &KeyCode } pub type XModifierKeymap = C.XModifierKeymap @[typedef] pub struct C.Display { } pub type Display = C.Display @[typedef] pub struct C.XKeyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window root Window subwindow Window time Time x i32 y i32 x_root i32 y_root i32 state u32 keycode u32 same_screen i32 } pub type XKeyEvent = C.XKeyEvent pub type XKeyPressedEvent = XKeyEvent pub type XKeyReleasedEvent = XKeyEvent @[typedef] pub struct C.XButtonEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window root Window subwindow Window time Time x i32 y i32 x_root i32 y_root i32 state u32 button u32 same_screen i32 } pub type XButtonEvent = C.XButtonEvent pub type XButtonPressedEvent = XButtonEvent pub type XButtonReleasedEvent = XButtonEvent @[typedef] pub struct C.XMotionEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window root Window subwindow Window time Time x i32 y i32 x_root i32 y_root i32 state u32 is_hint char same_screen i32 } pub type XMotionEvent = C.XMotionEvent pub type XPointerMovedEvent = XMotionEvent @[typedef] pub struct C.XCrossingEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window root Window subwindow Window time Time x i32 y i32 x_root i32 y_root i32 mode i32 detail i32 same_screen i32 focus i32 state u32 } pub type XCrossingEvent = C.XCrossingEvent pub type XEnterWindowEvent = XCrossingEvent pub type XLeaveWindowEvent = XCrossingEvent @[typedef] pub struct C.XFocusChangeEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window mode i32 detail i32 } pub type XFocusChangeEvent = C.XFocusChangeEvent pub type XFocusInEvent = XFocusChangeEvent pub type XFocusOutEvent = XFocusChangeEvent @[typedef] pub struct C.XKeymapEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window key_vector [32]char } pub type XKeymapEvent = C.XKeymapEvent @[typedef] pub struct C.XExposeEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window x i32 y i32 width i32 height i32 count i32 } pub type XExposeEvent = C.XExposeEvent @[typedef] pub struct C.XGraphicsExposeEvent { pub mut: @type i32 serial CULong send_event i32 display &Display drawable Drawable x i32 y i32 width i32 height i32 count i32 major_code i32 minor_code i32 } pub type XGraphicsExposeEvent = C.XGraphicsExposeEvent @[typedef] pub struct C.XNoExposeEvent { pub mut: @type i32 serial CULong send_event i32 display &Display drawable Drawable major_code i32 minor_code i32 } pub type XNoExposeEvent = C.XNoExposeEvent @[typedef] pub struct C.XVisibilityEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window state i32 } pub type XVisibilityEvent = C.XVisibilityEvent @[typedef] pub struct C.XCreateWindowEvent { pub mut: @type i32 serial CULong send_event i32 display &Display parent Window window Window x i32 y i32 width i32 height i32 border_width i32 override_redirect i32 } pub type XCreateWindowEvent = C.XCreateWindowEvent @[typedef] pub struct C.XDestroyWindowEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window } pub type XDestroyWindowEvent = C.XDestroyWindowEvent @[typedef] pub struct C.XUnmapEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window from_configure i32 } pub type XUnmapEvent = C.XUnmapEvent @[typedef] pub struct C.XMapEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window override_redirect i32 } pub type XMapEvent = C.XMapEvent @[typedef] pub struct C.XMapRequestEvent { pub mut: @type i32 serial CULong send_event i32 display &Display parent Window window Window } pub type XMapRequestEvent = C.XMapRequestEvent @[typedef] pub struct C.XReparentEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window parent Window x i32 y i32 override_redirect i32 } pub type XReparentEvent = C.XReparentEvent @[typedef] pub struct C.XConfigureEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window x i32 y i32 width i32 height i32 border_width i32 above Window override_redirect i32 } pub type XConfigureEvent = C.XConfigureEvent @[typedef] pub struct C.XGravityEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window x i32 y i32 } pub type XGravityEvent = C.XGravityEvent @[typedef] pub struct C.XResizeRequestEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window width i32 height i32 } pub type XResizeRequestEvent = C.XResizeRequestEvent @[typedef] pub struct C.XConfigureRequestEvent { pub mut: @type i32 serial CULong send_event i32 display &Display parent Window window Window x i32 y i32 width i32 height i32 border_width i32 above Window detail i32 value_mask CULong } pub type XConfigureRequestEvent = C.XConfigureRequestEvent @[typedef] pub struct C.XCirculateEvent { pub mut: @type i32 serial CULong send_event i32 display &Display event Window window Window place i32 } pub type XCirculateEvent = C.XCirculateEvent @[typedef] pub struct C.XCirculateRequestEvent { pub mut: @type i32 serial CULong send_event i32 display &Display parent Window window Window place i32 } pub type XCirculateRequestEvent = C.XCirculateRequestEvent @[typedef] pub struct C.XPropertyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window atom Atom time Time state i32 } pub type XPropertyEvent = C.XPropertyEvent @[typedef] pub struct C.XSelectionClearEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window selection Atom time Time } pub type XSelectionClearEvent = C.XSelectionClearEvent @[typedef] pub struct C.XSelectionRequestEvent { pub mut: @type i32 serial CULong send_event i32 display &Display owner Window requestor Window selection Atom target Atom property Atom time Time } pub type XSelectionRequestEvent = C.XSelectionRequestEvent @[typedef] pub struct C.XSelectionEvent { pub mut: @type i32 serial CULong send_event i32 display &Display requestor Window selection Atom target Atom property Atom time Time } pub type XSelectionEvent = C.XSelectionEvent @[typedef] pub struct C.XColormapEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window colormap Colormap new i32 state i32 } pub type XColormapEvent = C.XColormapEvent @[typedef] pub union C.XClientMessageEvent_data { pub mut: b [20]char s [10]i16 l [5]CLong } pub type XClientMessageEvent_data = C.XClientMessageEvent_data @[typedef] pub struct C.XClientMessageEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window message_type Atom format i32 data XClientMessageEvent_data } pub type XClientMessageEvent = C.XClientMessageEvent @[typedef] pub struct C.XMappingEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window request i32 first_keycode i32 count i32 } pub type XMappingEvent = C.XMappingEvent @[typedef] pub struct C.XErrorEvent { pub mut: @type i32 display &Display resourceid XID serial CULong error_code u8 request_code u8 minor_code u8 } pub type XErrorEvent = C.XErrorEvent @[typedef] pub struct C.XAnyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display window Window } pub type XAnyEvent = C.XAnyEvent @[typedef] pub struct C.XGenericEvent { pub mut: @type i32 serial CULong send_event i32 display &Display extension i32 evtype i32 } pub type XGenericEvent = C.XGenericEvent @[typedef] pub struct C.XGenericEventCookie { pub mut: @type i32 serial CULong send_event i32 display &Display extension i32 evtype i32 cookie u32 data voidptr } pub type XGenericEventCookie = C.XGenericEventCookie @[typedef] pub union C.XEvent { pub mut: @type i32 xany XAnyEvent xkey XKeyEvent xbutton XButtonEvent xmotion XMotionEvent xcrossing XCrossingEvent xfocus XFocusChangeEvent xexpose XExposeEvent xgraphicsexpose XGraphicsExposeEvent xnoexpose XNoExposeEvent xvisibility XVisibilityEvent xcreatewindow XCreateWindowEvent xdestroywindow XDestroyWindowEvent xunmap XUnmapEvent xmap XMapEvent xmaprequest XMapRequestEvent xreparent XReparentEvent xconfigure XConfigureEvent xgravity XGravityEvent xresizerequest XResizeRequestEvent xconfigurerequest XConfigureRequestEvent xcirculate XCirculateEvent xcirculaterequest XCirculateRequestEvent xproperty XPropertyEvent xselectionclear XSelectionClearEvent xselectionrequest XSelectionRequestEvent xselection XSelectionEvent xcolormap XColormapEvent xclient XClientMessageEvent xmapping XMappingEvent xerror XErrorEvent xkeymap XKeymapEvent xgeneric XGenericEvent xcookie XGenericEventCookie pad [24]CLong } pub type XEvent = C.XEvent @[typedef] pub struct C.XCharStruct { pub mut: lbearing i16 rbearing i16 width i16 ascent i16 descent i16 attributes u16 } pub type XCharStruct = C.XCharStruct @[typedef] pub struct C.XFontProp { pub mut: name Atom card32 CULong } pub type XFontProp = C.XFontProp @[typedef] pub struct C.XFontStruct { pub mut: ext_data &XExtData fid Font direction u32 min_char_or_byte2 u32 max_char_or_byte2 u32 min_byte1 u32 max_byte1 u32 all_chars_exist i32 default_char u32 n_properties i32 properties &XFontProp min_bounds XCharStruct max_bounds XCharStruct per_char &XCharStruct ascent i32 descent i32 } pub type XFontStruct = C.XFontStruct @[typedef] pub struct C.XTextItem { pub mut: chars &char nchars i32 delta i32 font Font } pub type XTextItem = C.XTextItem @[typedef] pub struct C.XChar2b { pub mut: byte1 u8 byte2 u8 } pub type XChar2b = C.XChar2b @[typedef] pub struct C.XTextItem16 { pub mut: chars &XChar2b nchars i32 delta i32 font Font } pub type XTextItem16 = C.XTextItem16 @[typedef] pub union C.XEDataObject { pub mut: display &Display gc GC visual &Visual screen &Screen pixmap_format &ScreenFormat font &XFontStruct } pub type XEDataObject = C.XEDataObject @[typedef] pub struct C.XFontSetExtents { pub mut: max_ink_extent XRectangle max_logical_extent XRectangle } pub type XFontSetExtents = C.XFontSetExtents pub type XOM = voidptr pub type XOC = voidptr pub type XFontSet = voidptr @[typedef] pub struct C.XmbTextItem { pub mut: chars &char nchars i32 delta i32 font_set XFontSet } pub type XmbTextItem = C.XmbTextItem @[typedef] pub struct C.XwcTextItem { pub mut: chars &i32 nchars i32 delta i32 font_set XFontSet } pub type XwcTextItem = C.XwcTextItem @[typedef] pub struct C.XOMCharSetList { pub mut: charset_count i32 charset_list &&char } pub type XOMCharSetList = C.XOMCharSetList pub type XOrientation = i32 @[typedef] pub struct C.XOMOrientation { pub mut: num_orientation i32 orientation &XOrientation } pub type XOMOrientation = C.XOMOrientation @[typedef] pub struct C.XOMFontInfo { pub mut: num_font i32 font_struct_list &&XFontStruct font_name_list &&char } pub type XOMFontInfo = C.XOMFontInfo pub type XIM = voidptr pub type XIC = voidptr pub type XIMProc = fn (XIM, XPointer, XPointer) pub type XICProc = fn (XIC, XPointer, XPointer) i32 pub type XIDProc = fn (&Display, XPointer, XPointer) pub type XIMStyle = CULong @[typedef] pub struct C.XIMStyles { pub mut: count_styles u16 supported_styles &XIMStyle } pub type XIMStyles = C.XIMStyles pub type XVaNestedList = voidptr @[typedef] pub struct C.XIMCallback { pub mut: client_data XPointer callback XIMProc } pub type XIMCallback = C.XIMCallback @[typedef] pub struct C.XICCallback { pub mut: client_data XPointer callback XICProc } pub type XICCallback = C.XICCallback pub type XIMFeedback = CULong @[typedef] pub union C.XIMText_string { pub mut: multi_byte &char wide_char &i32 } pub type XIMText_string = C.XIMText_string @[typedef] pub struct C.XIMText { pub mut: length u16 feedback &XIMFeedback encoding_is_wchar i32 string XIMText_string } pub type XIMText = C.XIMText pub type XIMPreeditState = CULong @[typedef] pub struct C.XIMPreeditStateNotifyCallbackStruct { pub mut: state XIMPreeditState } pub type XIMPreeditStateNotifyCallbackStruct = C.XIMPreeditStateNotifyCallbackStruct pub type XIMResetState = CULong pub type XIMStringConversionFeedback = CULong @[typedef] pub union C.XIMStringConversionText_string { pub mut: mbs &char wcs &i32 } pub type XIMStringConversionText_string = C.XIMStringConversionText_string @[typedef] pub struct C.XIMStringConversionText { pub mut: length u16 feedback &XIMStringConversionFeedback encoding_is_wchar i32 string XIMStringConversionText_string } pub type XIMStringConversionText = C.XIMStringConversionText pub type XIMStringConversionPosition = u16 pub type XIMStringConversionType = u16 pub type XIMStringConversionOperation = u16 pub type XIMCaretDirection = i32 @[typedef] pub struct C.XIMStringConversionCallbackStruct { pub mut: position XIMStringConversionPosition direction XIMCaretDirection operation XIMStringConversionOperation factor u16 text &XIMStringConversionText } pub type XIMStringConversionCallbackStruct = C.XIMStringConversionCallbackStruct @[typedef] pub struct C.XIMPreeditDrawCallbackStruct { pub mut: caret i32 chg_first i32 chg_length i32 text &XIMText } pub type XIMPreeditDrawCallbackStruct = C.XIMPreeditDrawCallbackStruct pub type XIMCaretStyle = i32 @[typedef] pub struct C.XIMPreeditCaretCallbackStruct { pub mut: position i32 direction XIMCaretDirection style XIMCaretStyle } pub type XIMPreeditCaretCallbackStruct = C.XIMPreeditCaretCallbackStruct pub type XIMStatusDataType = i32 @[typedef] pub union C.XIMStatusDrawCallbackStruct_data { pub mut: text &XIMText bitmap Pixmap } pub type XIMStatusDrawCallbackStruct_data = C.XIMStatusDrawCallbackStruct_data @[typedef] pub struct C.XIMStatusDrawCallbackStruct { pub mut: @type XIMStatusDataType data XIMStatusDrawCallbackStruct_data } pub type XIMStatusDrawCallbackStruct = C.XIMStatusDrawCallbackStruct @[typedef] pub struct C.XIMHotKeyTrigger { pub mut: keysym KeySym modifier i32 modifier_mask i32 } pub type XIMHotKeyTrigger = C.XIMHotKeyTrigger @[typedef] pub struct C.XIMHotKeyTriggers { pub mut: num_hot_key i32 key &XIMHotKeyTrigger } pub type XIMHotKeyTriggers = C.XIMHotKeyTriggers pub type XIMHotKeyState = CULong @[typedef] pub struct C.XIMValuesList { pub mut: count_values u16 supported_values &&char } pub type XIMValuesList = C.XIMValuesList pub type XErrorHandler = fn (&Display, &XErrorEvent) i32 pub type XIOErrorHandler = fn (&Display) i32 pub type XIOErrorExitHandler = fn (&Display, voidptr) pub type XConnectionWatchProc = fn (&Display, XPointer, i32, i32, &XPointer) pub type XrmQuark = i32 pub type XrmQuarkList = &i32 pub type XrmString = &char pub type XrmBinding = i32 pub type XrmBindingList = &i32 pub type XrmName = XrmQuark pub type XrmNameList = XrmQuarkList pub type XrmClass = XrmQuark pub type XrmClassList = XrmQuarkList pub type XrmRepresentation = XrmQuark @[typedef] pub struct C.XrmValue { pub mut: size u32 addr XPointer } pub type XrmValue = C.XrmValue pub type XrmValuePtr = &XrmValue pub type XrmHashBucket = voidptr pub type XrmHashTable = &XrmHashBucket pub type XrmSearchList = &XrmHashTable pub type XrmDatabase = voidptr pub type XrmOptionKind = i32 @[typedef] pub struct C.XrmOptionDescRec { pub mut: option &char specifier &char argKind XrmOptionKind value XPointer } pub type XrmOptionDescRec = C.XrmOptionDescRec pub type XrmOptionDescList = &XrmOptionDescRec @[typedef] pub struct C.XSizeHints_min_aspect { pub mut: x i32 y i32 } pub type XSizeHints_min_aspect = C.XSizeHints_min_aspect @[typedef] pub struct C.XSizeHints { pub mut: flags CLong x i32 y i32 width i32 height i32 min_width i32 min_height i32 max_width i32 max_height i32 width_inc i32 height_inc i32 min_aspect XSizeHints_min_aspect max_aspect XSizeHints_min_aspect base_width i32 base_height i32 win_gravity i32 } pub type XSizeHints = C.XSizeHints @[typedef] pub struct C.XWMHints { pub mut: flags CLong input i32 initial_state i32 icon_pixmap Pixmap icon_window Window icon_x i32 icon_y i32 icon_mask Pixmap window_group XID } pub type XWMHints = C.XWMHints @[typedef] pub struct C.XTextProperty { pub mut: value &u8 encoding Atom format i32 nitems CULong } pub type XTextProperty = C.XTextProperty pub type XICCEncodingStyle = i32 @[typedef] pub struct C.XIconSize { pub mut: min_width i32 min_height i32 max_width i32 max_height i32 width_inc i32 height_inc i32 } pub type XIconSize = C.XIconSize @[typedef] pub struct C.XClassHint { pub mut: res_name &char res_class &char } pub type XClassHint = C.XClassHint @[typedef] pub struct C.XComposeStatus { pub mut: compose_ptr XPointer chars_matched i32 } pub type XComposeStatus = C.XComposeStatus pub type Region = voidptr @[typedef] pub struct C.XVisualInfo { pub mut: visual &Visual visualid VisualID screen i32 depth i32 class i32 red_mask CULong green_mask CULong blue_mask CULong colormap_size i32 bits_per_rgb i32 } pub type XVisualInfo = C.XVisualInfo @[typedef] pub struct C.XStandardColormap { pub mut: colormap Colormap red_max CULong red_mult CULong green_max CULong green_mult CULong blue_max CULong blue_mult CULong base_pixel CULong visualid VisualID killid XID } pub type XStandardColormap = C.XStandardColormap pub type XContext = i32 @[typedef] pub struct C.XkbStateRec { pub mut: group u8 locked_group u8 base_group u16 latched_group u16 mods u8 base_mods u8 latched_mods u8 locked_mods u8 compat_state u8 grab_mods u8 compat_grab_mods u8 lookup_mods u8 compat_lookup_mods u8 ptr_buttons u16 } pub type XkbStateRec = C.XkbStateRec pub type XkbStatePtr = &XkbStateRec @[typedef] pub struct C.XkbModsRec { pub mut: mask u8 real_mods u8 vmods u16 } pub type XkbModsRec = C.XkbModsRec pub type XkbModsPtr = &XkbModsRec @[typedef] pub struct C.XkbKTMapEntryRec { pub mut: active i32 level u8 mods XkbModsRec } pub type XkbKTMapEntryRec = C.XkbKTMapEntryRec pub type XkbKTMapEntryPtr = &XkbKTMapEntryRec @[typedef] pub struct C.XkbKeyTypeRec { pub mut: mods XkbModsRec num_levels u8 map_count u8 map XkbKTMapEntryPtr preserve XkbModsPtr name Atom level_names &Atom } pub type XkbKeyTypeRec = C.XkbKeyTypeRec pub type XkbKeyTypePtr = &XkbKeyTypeRec @[typedef] pub struct C.XkbBehavior { pub mut: @type u8 data u8 } pub type XkbBehavior = C.XkbBehavior @[typedef] pub struct C.XkbAnyAction { pub mut: @type u8 data [7]u8 } pub type XkbAnyAction = C.XkbAnyAction @[typedef] pub struct C.XkbModAction { pub mut: @type u8 flags u8 mask u8 real_mods u8 vmods1 u8 vmods2 u8 } pub type XkbModAction = C.XkbModAction @[typedef] pub struct C.XkbGroupAction { pub mut: @type u8 flags u8 group_XXX char } pub type XkbGroupAction = C.XkbGroupAction @[typedef] pub struct C.XkbISOAction { pub mut: @type u8 flags u8 mask u8 real_mods u8 group_XXX char affect u8 vmods1 u8 vmods2 u8 } pub type XkbISOAction = C.XkbISOAction @[typedef] pub struct C.XkbPtrAction { pub mut: @type u8 flags u8 high_XXX u8 low_XXX u8 high_YYY u8 low_YYY u8 } pub type XkbPtrAction = C.XkbPtrAction @[typedef] pub struct C.XkbPtrBtnAction { pub mut: @type u8 flags u8 count u8 button u8 } pub type XkbPtrBtnAction = C.XkbPtrBtnAction @[typedef] pub struct C.XkbPtrDfltAction { pub mut: @type u8 flags u8 affect u8 valueXXX char } pub type XkbPtrDfltAction = C.XkbPtrDfltAction @[typedef] pub struct C.XkbSwitchScreenAction { pub mut: @type u8 flags u8 screenXXX char } pub type XkbSwitchScreenAction = C.XkbSwitchScreenAction @[typedef] pub struct C.XkbCtrlsAction { pub mut: @type u8 flags u8 ctrls3 u8 ctrls2 u8 ctrls1 u8 ctrls0 u8 } pub type XkbCtrlsAction = C.XkbCtrlsAction @[typedef] pub struct C.XkbMessageAction { pub mut: @type u8 flags u8 message [6]u8 } pub type XkbMessageAction = C.XkbMessageAction @[typedef] pub struct C.XkbRedirectKeyAction { pub mut: @type u8 new_key u8 mods_mask u8 mods u8 vmods_mask0 u8 vmods_mask1 u8 vmods0 u8 vmods1 u8 } pub type XkbRedirectKeyAction = C.XkbRedirectKeyAction @[typedef] pub struct C.XkbDeviceBtnAction { pub mut: @type u8 flags u8 count u8 button u8 device u8 } pub type XkbDeviceBtnAction = C.XkbDeviceBtnAction @[typedef] pub struct C.XkbDeviceValuatorAction { pub mut: @type u8 device u8 v1_what u8 v1_ndx u8 v1_value u8 v2_what u8 v2_ndx u8 v2_value u8 } pub type XkbDeviceValuatorAction = C.XkbDeviceValuatorAction @[typedef] pub union C.XkbAction { pub mut: any XkbAnyAction mods XkbModAction group XkbGroupAction iso XkbISOAction ptr XkbPtrAction btn XkbPtrBtnAction dflt XkbPtrDfltAction screen XkbSwitchScreenAction ctrls XkbCtrlsAction msg XkbMessageAction redirect XkbRedirectKeyAction devbtn XkbDeviceBtnAction devval XkbDeviceValuatorAction @type u8 } pub type XkbAction = C.XkbAction @[typedef] pub struct C.XkbControlsRec { pub mut: mk_dflt_btn u8 num_groups u8 groups_wrap u8 internal XkbModsRec ignore_lock XkbModsRec enabled_ctrls u32 repeat_delay u16 repeat_interval u16 slow_keys_delay u16 debounce_delay u16 mk_delay u16 mk_interval u16 mk_time_to_max u16 mk_max_speed u16 mk_curve i16 ax_options u16 ax_timeout u16 axt_opts_mask u16 axt_opts_values u16 axt_ctrls_mask u32 axt_ctrls_values u32 per_key_repeat [32]u8 } pub type XkbControlsRec = C.XkbControlsRec pub type XkbControlsPtr = &XkbControlsRec @[typedef] pub struct C.XkbServerMapRec { pub mut: num_acts u16 size_acts u16 acts &XkbAction behaviors &XkbBehavior key_acts &u16 explicit &u8 vmods [16]u8 vmodmap &u16 } pub type XkbServerMapRec = C.XkbServerMapRec pub type XkbServerMapPtr = &XkbServerMapRec @[typedef] pub struct C.XkbSymMapRec { pub mut: kt_index [4]u8 group_info u8 width u8 offset u16 } pub type XkbSymMapRec = C.XkbSymMapRec pub type XkbSymMapPtr = &XkbSymMapRec @[typedef] pub struct C.XkbClientMapRec { pub mut: size_types u8 num_types u8 types XkbKeyTypePtr size_syms u16 num_syms u16 syms &KeySym key_sym_map XkbSymMapPtr modmap &u8 } pub type XkbClientMapRec = C.XkbClientMapRec pub type XkbClientMapPtr = &XkbClientMapRec @[typedef] pub struct C.XkbSymInterpretRec { pub mut: sym KeySym flags u8 @match u8 mods u8 virtual_mod u8 act XkbAnyAction } pub type XkbSymInterpretRec = C.XkbSymInterpretRec pub type XkbSymInterpretPtr = &XkbSymInterpretRec @[typedef] pub struct C.XkbCompatMapRec { pub mut: sym_interpret XkbSymInterpretPtr groups [4]XkbModsRec num_si u16 size_si u16 } pub type XkbCompatMapRec = C.XkbCompatMapRec pub type XkbCompatMapPtr = &XkbCompatMapRec @[typedef] pub struct C.XkbIndicatorMapRec { pub mut: flags u8 which_groups u8 groups u8 which_mods u8 mods XkbModsRec ctrls u32 } pub type XkbIndicatorMapRec = C.XkbIndicatorMapRec pub type XkbIndicatorMapPtr = &XkbIndicatorMapRec @[typedef] pub struct C.XkbIndicatorRec { pub mut: phys_indicators CULong maps [32]XkbIndicatorMapRec } pub type XkbIndicatorRec = C.XkbIndicatorRec pub type XkbIndicatorPtr = &XkbIndicatorRec @[typedef] pub struct C.XkbKeyNameRec { pub mut: name [4]char } pub type XkbKeyNameRec = C.XkbKeyNameRec pub type XkbKeyNamePtr = &XkbKeyNameRec @[typedef] pub struct C.XkbKeyAliasRec { pub mut: real [4]char alias [4]char } pub type XkbKeyAliasRec = C.XkbKeyAliasRec pub type XkbKeyAliasPtr = &XkbKeyAliasRec @[typedef] pub struct C.XkbNamesRec { pub mut: keycodes Atom geometry Atom symbols Atom types Atom compat Atom vmods [16]Atom indicators [32]Atom groups [4]Atom keys XkbKeyNamePtr key_aliases XkbKeyAliasPtr radio_groups &Atom phys_symbols Atom num_keys u8 num_key_aliases u8 num_rg u16 } pub type XkbNamesRec = C.XkbNamesRec pub type XkbNamesPtr = &XkbNamesRec pub type XkbGeometryPtr = voidptr @[typedef] pub struct C.XkbDescRec { pub mut: dpy &Display flags u16 device_spec u16 min_key_code KeyCode max_key_code KeyCode ctrls XkbControlsPtr server XkbServerMapPtr map XkbClientMapPtr indicators XkbIndicatorPtr names XkbNamesPtr compat XkbCompatMapPtr geom XkbGeometryPtr } pub type XkbDescRec = C.XkbDescRec pub type XkbDescPtr = &XkbDescRec @[typedef] pub struct C.XkbMapChangesRec { pub mut: changed u16 min_key_code KeyCode max_key_code KeyCode first_type u8 num_types u8 first_key_sym KeyCode num_key_syms u8 first_key_act KeyCode num_key_acts u8 first_key_behavior KeyCode num_key_behaviors u8 first_key_explicit KeyCode num_key_explicit u8 first_modmap_key KeyCode num_modmap_keys u8 first_vmodmap_key KeyCode num_vmodmap_keys u8 pad u8 vmods u16 } pub type XkbMapChangesRec = C.XkbMapChangesRec pub type XkbMapChangesPtr = &XkbMapChangesRec @[typedef] pub struct C.XkbControlsChangesRec { pub mut: changed_ctrls u32 enabled_ctrls_changes u32 num_groups_changed i32 } pub type XkbControlsChangesRec = C.XkbControlsChangesRec pub type XkbControlsChangesPtr = &XkbControlsChangesRec @[typedef] pub struct C.XkbIndicatorChangesRec { pub mut: state_changes u32 map_changes u32 } pub type XkbIndicatorChangesRec = C.XkbIndicatorChangesRec pub type XkbIndicatorChangesPtr = &XkbIndicatorChangesRec @[typedef] pub struct C.XkbNameChangesRec { pub mut: changed u32 first_type u8 num_types u8 first_lvl u8 num_lvls u8 num_aliases u8 num_rg u8 first_key u8 num_keys u8 changed_vmods u16 changed_indicators CULong changed_groups u8 } pub type XkbNameChangesRec = C.XkbNameChangesRec pub type XkbNameChangesPtr = &XkbNameChangesRec @[typedef] pub struct C.XkbCompatChangesRec { pub mut: changed_groups u8 first_si u16 num_si u16 } pub type XkbCompatChangesRec = C.XkbCompatChangesRec pub type XkbCompatChangesPtr = &XkbCompatChangesRec @[typedef] pub struct C.XkbChangesRec { pub mut: device_spec u16 state_changes u16 map XkbMapChangesRec ctrls XkbControlsChangesRec indicators XkbIndicatorChangesRec names XkbNameChangesRec compat XkbCompatChangesRec } pub type XkbChangesRec = C.XkbChangesRec pub type XkbChangesPtr = &XkbChangesRec @[typedef] pub struct C.XkbComponentNamesRec { pub mut: keymap &char keycodes &char types &char compat &char symbols &char geometry &char } pub type XkbComponentNamesRec = C.XkbComponentNamesRec pub type XkbComponentNamesPtr = &XkbComponentNamesRec @[typedef] pub struct C.XkbComponentNameRec { pub mut: flags u16 name &char } pub type XkbComponentNameRec = C.XkbComponentNameRec pub type XkbComponentNamePtr = &XkbComponentNameRec @[typedef] pub struct C.XkbComponentListRec { pub mut: num_keymaps i32 num_keycodes i32 num_types i32 num_compat i32 num_symbols i32 num_geometry i32 keymaps XkbComponentNamePtr keycodes XkbComponentNamePtr types XkbComponentNamePtr compat XkbComponentNamePtr symbols XkbComponentNamePtr geometry XkbComponentNamePtr } pub type XkbComponentListRec = C.XkbComponentListRec pub type XkbComponentListPtr = &XkbComponentListRec @[typedef] pub struct C.XkbDeviceLedInfoRec { pub mut: led_class u16 led_id u16 phys_indicators u32 maps_present u32 names_present u32 state u32 names [32]Atom maps [32]XkbIndicatorMapRec } pub type XkbDeviceLedInfoRec = C.XkbDeviceLedInfoRec pub type XkbDeviceLedInfoPtr = &XkbDeviceLedInfoRec @[typedef] pub struct C.XkbDeviceInfoRec { pub mut: name &char @type Atom device_spec u16 has_own_state i32 supported u16 unsupported u16 num_btns u16 btn_acts &XkbAction sz_leds u16 num_leds u16 dflt_kbd_fb u16 dflt_led_fb u16 leds XkbDeviceLedInfoPtr } pub type XkbDeviceInfoRec = C.XkbDeviceInfoRec pub type XkbDeviceInfoPtr = &XkbDeviceInfoRec @[typedef] pub struct C.XkbDeviceLedChangesRec { pub mut: led_class u16 led_id u16 defined u32 next &XkbDeviceLedChangesRec } pub type XkbDeviceLedChangesRec = C.XkbDeviceLedChangesRec pub type XkbDeviceLedChangesPtr = &XkbDeviceLedChangesRec @[typedef] pub struct C.XkbDeviceChangesRec { pub mut: changed u32 first_btn u16 num_btns u16 leds XkbDeviceLedChangesRec } pub type XkbDeviceChangesRec = C.XkbDeviceChangesRec pub type XkbDeviceChangesPtr = &XkbDeviceChangesRec @[typedef] pub struct C.XkbAnyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device u32 } pub type XkbAnyEvent = C.XkbAnyEvent @[typedef] pub struct C.XkbNewKeyboardNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 old_device i32 min_key_code i32 max_key_code i32 old_min_key_code i32 old_max_key_code i32 changed u32 req_major char req_minor char } pub type XkbNewKeyboardNotifyEvent = C.XkbNewKeyboardNotifyEvent @[typedef] pub struct C.XkbMapNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 changed u32 flags u32 first_type i32 num_types i32 min_key_code KeyCode max_key_code KeyCode first_key_sym KeyCode first_key_act KeyCode first_key_behavior KeyCode first_key_explicit KeyCode first_modmap_key KeyCode first_vmodmap_key KeyCode num_key_syms i32 num_key_acts i32 num_key_behaviors i32 num_key_explicit i32 num_modmap_keys i32 num_vmodmap_keys i32 vmods u32 } pub type XkbMapNotifyEvent = C.XkbMapNotifyEvent @[typedef] pub struct C.XkbStateNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 changed u32 group i32 base_group i32 latched_group i32 locked_group i32 mods u32 base_mods u32 latched_mods u32 locked_mods u32 compat_state i32 grab_mods u8 compat_grab_mods u8 lookup_mods u8 compat_lookup_mods u8 ptr_buttons i32 keycode KeyCode event_type char req_major char req_minor char } pub type XkbStateNotifyEvent = C.XkbStateNotifyEvent @[typedef] pub struct C.XkbControlsNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 changed_ctrls u32 enabled_ctrls u32 enabled_ctrl_changes u32 num_groups i32 keycode KeyCode event_type char req_major char req_minor char } pub type XkbControlsNotifyEvent = C.XkbControlsNotifyEvent @[typedef] pub struct C.XkbIndicatorNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 changed u32 state u32 } pub type XkbIndicatorNotifyEvent = C.XkbIndicatorNotifyEvent @[typedef] pub struct C.XkbNamesNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 changed u32 first_type i32 num_types i32 first_lvl i32 num_lvls i32 num_aliases i32 num_radio_groups i32 changed_vmods u32 changed_groups u32 changed_indicators u32 first_key i32 num_keys i32 } pub type XkbNamesNotifyEvent = C.XkbNamesNotifyEvent @[typedef] pub struct C.XkbCompatMapNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 changed_groups u32 first_si i32 num_si i32 num_total_si i32 } pub type XkbCompatMapNotifyEvent = C.XkbCompatMapNotifyEvent @[typedef] pub struct C.XkbBellNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 percent i32 pitch i32 duration i32 bell_class i32 bell_id i32 name Atom window Window event_only i32 } pub type XkbBellNotifyEvent = C.XkbBellNotifyEvent @[typedef] pub struct C.XkbActionMessageEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 keycode KeyCode press i32 key_event_follows i32 group i32 mods u32 message [7]char } pub type XkbActionMessageEvent = C.XkbActionMessageEvent @[typedef] pub struct C.XkbAccessXNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 detail i32 keycode i32 sk_delay i32 debounce_delay i32 } pub type XkbAccessXNotifyEvent = C.XkbAccessXNotifyEvent @[typedef] pub struct C.XkbExtensionDeviceNotifyEvent { pub mut: @type i32 serial CULong send_event i32 display &Display time Time xkb_type i32 device i32 reason u32 supported u32 unsupported u32 first_btn i32 num_btns i32 leds_defined u32 led_state u32 led_class i32 led_id i32 } pub type XkbExtensionDeviceNotifyEvent = C.XkbExtensionDeviceNotifyEvent @[typedef] pub union C.XkbEvent { pub mut: @type i32 any XkbAnyEvent new_kbd XkbNewKeyboardNotifyEvent map XkbMapNotifyEvent state XkbStateNotifyEvent ctrls XkbControlsNotifyEvent indicators XkbIndicatorNotifyEvent names XkbNamesNotifyEvent compat XkbCompatMapNotifyEvent bell XkbBellNotifyEvent message XkbActionMessageEvent accessx XkbAccessXNotifyEvent device XkbExtensionDeviceNotifyEvent core XEvent } pub type XkbEvent = C.XkbEvent @[typedef] pub struct C.XkbKbdDpyStateRec { } pub type XkbKbdDpyStateRec = C.XkbKbdDpyStateRec pub type XkbKbdDpyStatePtr = &XkbKbdDpyStateRec pub type XkbInternAtomFunc = fn (&Display, &char, i32) Atom pub type XkbGetAtomNameFunc = fn (&Display, Atom) &char