| 1 | pub const c = @cImport({ |
| 2 | @cInclude("X11/Xlib.h"); |
| 3 | @cInclude("X11/Xutil.h"); |
| 4 | @cInclude("X11/Xatom.h"); |
| 5 | @cInclude("X11/cursorfont.h"); |
| 6 | @cInclude("X11/keysym.h"); |
| 7 | @cInclude("X11/extensions/Xinerama.h"); |
| 8 | @cInclude("X11/Xft/Xft.h"); |
| 9 | }); |
| 10 | |
| 11 | pub const Display = c.Display; |
| 12 | pub const Window = c.Window; |
| 13 | pub const XEvent = c.XEvent; |
| 14 | pub const XWindowAttributes = c.XWindowAttributes; |
| 15 | pub const XWindowChanges = c.XWindowChanges; |
| 16 | pub const XMapRequestEvent = c.XMapRequestEvent; |
| 17 | pub const XConfigureRequestEvent = c.XConfigureRequestEvent; |
| 18 | pub const XKeyEvent = c.XKeyEvent; |
| 19 | pub const XDestroyWindowEvent = c.XDestroyWindowEvent; |
| 20 | pub const XUnmapEvent = c.XUnmapEvent; |
| 21 | pub const XCrossingEvent = c.XCrossingEvent; |
| 22 | pub const XFocusChangeEvent = c.XFocusChangeEvent; |
| 23 | pub const XErrorEvent = c.XErrorEvent; |
| 24 | pub const KeySym = c.KeySym; |
| 25 | |
| 26 | pub const XOpenDisplay = c.XOpenDisplay; |
| 27 | pub const XCloseDisplay = c.XCloseDisplay; |
| 28 | pub const XConnectionNumber = c.XConnectionNumber; |
| 29 | pub const XDefaultScreen = c.XDefaultScreen; |
| 30 | pub const XRootWindow = c.XRootWindow; |
| 31 | pub const XDisplayWidth = c.XDisplayWidth; |
| 32 | pub const XDisplayHeight = c.XDisplayHeight; |
| 33 | pub const XNextEvent = c.XNextEvent; |
| 34 | pub const XPending = c.XPending; |
| 35 | pub const XSync = c.XSync; |
| 36 | pub const XSelectInput = c.XSelectInput; |
| 37 | pub const XSetErrorHandler = c.XSetErrorHandler; |
| 38 | pub const XGrabKey = c.XGrabKey; |
| 39 | pub const XKeysymToKeycode = c.XKeysymToKeycode; |
| 40 | pub const XKeycodeToKeysym = c.XKeycodeToKeysym; |
| 41 | pub const XQueryTree = c.XQueryTree; |
| 42 | pub const XFree = c.XFree; |
| 43 | pub const XGetWindowAttributes = c.XGetWindowAttributes; |
| 44 | pub const XMapWindow = c.XMapWindow; |
| 45 | pub const XUnmapWindow = c.XUnmapWindow; |
| 46 | pub const XConfigureWindow = c.XConfigureWindow; |
| 47 | pub const XSetInputFocus = c.XSetInputFocus; |
| 48 | pub const XRaiseWindow = c.XRaiseWindow; |
| 49 | pub const XMoveResizeWindow = c.XMoveResizeWindow; |
| 50 | pub const XMoveWindow = c.XMoveWindow; |
| 51 | pub const XSetWindowBorder = c.XSetWindowBorder; |
| 52 | pub const XSetWindowBorderWidth = c.XSetWindowBorderWidth; |
| 53 | |
| 54 | pub const SubstructureRedirectMask = c.SubstructureRedirectMask; |
| 55 | pub const SubstructureNotifyMask = c.SubstructureNotifyMask; |
| 56 | pub const EnterWindowMask = c.EnterWindowMask; |
| 57 | pub const FocusChangeMask = c.FocusChangeMask; |
| 58 | pub const PropertyChangeMask = c.PropertyChangeMask; |
| 59 | pub const StructureNotifyMask = c.StructureNotifyMask; |
| 60 | |
| 61 | pub const Mod4Mask = c.Mod4Mask; |
| 62 | pub const ShiftMask = c.ShiftMask; |
| 63 | pub const LockMask = c.LockMask; |
| 64 | pub const Mod2Mask = c.Mod2Mask; |
| 65 | pub const ControlMask = c.ControlMask; |
| 66 | |
| 67 | pub const GrabModeAsync = c.GrabModeAsync; |
| 68 | pub const RevertToPointerRoot = c.RevertToPointerRoot; |
| 69 | pub const CurrentTime = c.CurrentTime; |
| 70 | pub const NotifyNormal = c.NotifyNormal; |
| 71 | pub const NotifyInferior = c.NotifyInferior; |
| 72 | |
| 73 | pub const True = c.True; |
| 74 | pub const False = c.False; |
| 75 | |
| 76 | pub const XK_q = c.XK_q; |
| 77 | pub const XK_f = c.XK_f; |
| 78 | pub const XK_h = c.XK_h; |
| 79 | pub const XK_i = c.XK_i; |
| 80 | pub const XK_d = c.XK_d; |
| 81 | pub const XK_j = c.XK_j; |
| 82 | pub const XK_k = c.XK_k; |
| 83 | pub const XK_l = c.XK_l; |
| 84 | pub const XK_m = c.XK_m; |
| 85 | pub const XK_comma = c.XK_comma; |
| 86 | pub const XK_period = c.XK_period; |
| 87 | pub const XK_space = c.XK_space; |
| 88 | pub const XK_Return = c.XK_Return; |
| 89 | pub const XK_p = c.XK_p; |
| 90 | pub const XK_a = c.XK_a; |
| 91 | pub const XK_s = c.XK_s; |
| 92 | pub const XK_1 = c.XK_1; |
| 93 | pub const XK_2 = c.XK_2; |
| 94 | pub const XK_3 = c.XK_3; |
| 95 | pub const XK_4 = c.XK_4; |
| 96 | pub const XK_5 = c.XK_5; |
| 97 | pub const XK_6 = c.XK_6; |
| 98 | pub const XK_7 = c.XK_7; |
| 99 | pub const XK_8 = c.XK_8; |
| 100 | pub const XK_9 = c.XK_9; |
| 101 | |
| 102 | pub const Mod1Mask = c.Mod1Mask; |
| 103 | pub const Mod3Mask = c.Mod3Mask; |
| 104 | pub const Mod5Mask = c.Mod5Mask; |
| 105 | |
| 106 | pub const XKillClient = c.XKillClient; |
| 107 | pub const XInternAtom = c.XInternAtom; |
| 108 | pub const XChangeProperty = c.XChangeProperty; |
| 109 | pub const XGetWindowProperty = c.XGetWindowProperty; |
| 110 | pub const XSendEvent = c.XSendEvent; |
| 111 | |
| 112 | pub const Atom = c.Atom; |
| 113 | pub const XA_ATOM = c.XA_ATOM; |
| 114 | pub const XClientMessageEvent = c.XClientMessageEvent; |
| 115 | |
| 116 | pub const PropModeReplace = c.PropModeReplace; |
| 117 | |
| 118 | pub const XGrabPointer = c.XGrabPointer; |
| 119 | pub const XUngrabPointer = c.XUngrabPointer; |
| 120 | pub const XGrabButton = c.XGrabButton; |
| 121 | pub const XQueryPointer = c.XQueryPointer; |
| 122 | pub const XWarpPointer = c.XWarpPointer; |
| 123 | pub const XGetModifierMapping = c.XGetModifierMapping; |
| 124 | pub const XFreeModifiermap = c.XFreeModifiermap; |
| 125 | pub const XModifierKeymap = c.XModifierKeymap; |
| 126 | pub const XK_Num_Lock = c.XK_Num_Lock; |
| 127 | |
| 128 | pub const Button1 = c.Button1; |
| 129 | pub const Button1Mask = c.Button1Mask; |
| 130 | pub const Button3 = c.Button3; |
| 131 | pub const Button3Mask = c.Button3Mask; |
| 132 | pub const ButtonPressMask = c.ButtonPressMask; |
| 133 | pub const ButtonReleaseMask = c.ButtonReleaseMask; |
| 134 | pub const PointerMotionMask = c.PointerMotionMask; |
| 135 | pub const GrabModeSync = c.GrabModeSync; |
| 136 | pub const GrabSuccess = c.GrabSuccess; |
| 137 | pub const None = c.None; |
| 138 | |
| 139 | pub const XButtonEvent = c.XButtonEvent; |
| 140 | pub const XMotionEvent = c.XMotionEvent; |
| 141 | pub const XExposeEvent = c.XExposeEvent; |
| 142 | |
| 143 | pub const XineramaIsActive = c.XineramaIsActive; |
| 144 | pub const XineramaQueryScreens = c.XineramaQueryScreens; |
| 145 | pub const XineramaScreenInfo = c.XineramaScreenInfo; |
| 146 | |
| 147 | pub const XftFont = c.XftFont; |
| 148 | pub const XftColor = c.XftColor; |
| 149 | pub const XftDraw = c.XftDraw; |
| 150 | pub const XftFontOpenName = c.XftFontOpenName; |
| 151 | pub const XftFontClose = c.XftFontClose; |
| 152 | pub const XftDrawCreate = c.XftDrawCreate; |
| 153 | pub const XftDrawDestroy = c.XftDrawDestroy; |
| 154 | pub const XftDrawStringUtf8 = c.XftDrawStringUtf8; |
| 155 | pub const XftColorAllocValue = c.XftColorAllocValue; |
| 156 | pub const XftColorFree = c.XftColorFree; |
| 157 | pub const XftTextExtentsUtf8 = c.XftTextExtentsUtf8; |
| 158 | pub const XGlyphInfo = c.XGlyphInfo; |
| 159 | pub const XRenderColor = c.XRenderColor; |
| 160 | |
| 161 | pub const XCreatePixmap = c.XCreatePixmap; |
| 162 | pub const XFreePixmap = c.XFreePixmap; |
| 163 | pub const XCopyArea = c.XCopyArea; |
| 164 | pub const XCreateGC = c.XCreateGC; |
| 165 | pub const XFreeGC = c.XFreeGC; |
| 166 | pub const XSetForeground = c.XSetForeground; |
| 167 | pub const XFillRectangle = c.XFillRectangle; |
| 168 | pub const XDefaultVisual = c.XDefaultVisual; |
| 169 | pub const XDefaultColormap = c.XDefaultColormap; |
| 170 | pub const XDefaultDepth = c.XDefaultDepth; |
| 171 | pub const Pixmap = c.Pixmap; |
| 172 | pub const Drawable = c.Drawable; |
| 173 | pub const GC = c.GC; |
| 174 | pub const Visual = c.Visual; |
| 175 | pub const Colormap = c.Colormap; |
| 176 | |
| 177 | pub const KeyPress = c.KeyPress; |
| 178 | pub const KeyRelease = c.KeyRelease; |
| 179 | pub const ButtonPress = c.ButtonPress; |
| 180 | pub const ButtonRelease = c.ButtonRelease; |
| 181 | pub const MotionNotify = c.MotionNotify; |
| 182 | pub const EnterNotify = c.EnterNotify; |
| 183 | pub const LeaveNotify = c.LeaveNotify; |
| 184 | pub const FocusIn = c.FocusIn; |
| 185 | pub const FocusOut = c.FocusOut; |
| 186 | pub const KeymapNotify = c.KeymapNotify; |
| 187 | pub const Expose = c.Expose; |
| 188 | pub const GraphicsExpose = c.GraphicsExpose; |
| 189 | pub const NoExpose = c.NoExpose; |
| 190 | pub const VisibilityNotify = c.VisibilityNotify; |
| 191 | pub const CreateNotify = c.CreateNotify; |
| 192 | pub const DestroyNotify = c.DestroyNotify; |
| 193 | pub const UnmapNotify = c.UnmapNotify; |
| 194 | pub const MapNotify = c.MapNotify; |
| 195 | pub const MapRequest = c.MapRequest; |
| 196 | pub const ReparentNotify = c.ReparentNotify; |
| 197 | pub const ConfigureNotify = c.ConfigureNotify; |
| 198 | pub const ConfigureRequest = c.ConfigureRequest; |
| 199 | pub const GravityNotify = c.GravityNotify; |
| 200 | pub const ResizeRequest = c.ResizeRequest; |
| 201 | pub const CirculateNotify = c.CirculateNotify; |
| 202 | pub const CirculateRequest = c.CirculateRequest; |
| 203 | pub const PropertyNotify = c.PropertyNotify; |
| 204 | pub const SelectionClear = c.SelectionClear; |
| 205 | pub const SelectionRequest = c.SelectionRequest; |
| 206 | pub const SelectionNotify = c.SelectionNotify; |
| 207 | pub const ColormapNotify = c.ColormapNotify; |
| 208 | pub const ClientMessage = c.ClientMessage; |
| 209 | pub const MappingNotify = c.MappingNotify; |
| 210 | pub const GenericEvent = c.GenericEvent; |
| 211 | |
| 212 | pub const XClassHint = c.XClassHint; |
| 213 | pub const XGetClassHint = c.XGetClassHint; |
| 214 | pub const XWMHints = c.XWMHints; |
| 215 | pub const XGetWMHints = c.XGetWMHints; |
| 216 | pub const XSetWMHints = c.XSetWMHints; |
| 217 | pub const XSizeHints = c.XSizeHints; |
| 218 | pub const XGetWMNormalHints = c.XGetWMNormalHints; |
| 219 | pub const XGetTransientForHint = c.XGetTransientForHint; |
| 220 | pub const XTextProperty = c.XTextProperty; |
| 221 | pub const XGetTextProperty = c.XGetTextProperty; |
| 222 | pub const XmbTextPropertyToTextList = c.XmbTextPropertyToTextList; |
| 223 | pub const XFreeStringList = c.XFreeStringList; |
| 224 | pub const Success = c.Success; |
| 225 | pub const XGetWMProtocols = c.XGetWMProtocols; |
| 226 | pub const XAllocSizeHints = c.XAllocSizeHints; |
| 227 | |
| 228 | pub const XUrgencyHint = c.XUrgencyHint; |
| 229 | pub const InputHint = c.InputHint; |
| 230 | pub const PBaseSize = c.PBaseSize; |
| 231 | pub const PMinSize = c.PMinSize; |
| 232 | pub const PMaxSize = c.PMaxSize; |
| 233 | pub const PResizeInc = c.PResizeInc; |
| 234 | pub const PAspect = c.PAspect; |
| 235 | pub const PSize = c.PSize; |
| 236 | |
| 237 | pub const XA_WM_NAME = c.XA_WM_NAME; |
| 238 | pub const XA_WINDOW = c.XA_WINDOW; |
| 239 | pub const XA_STRING = c.XA_STRING; |
| 240 | pub const PropModeAppend = c.PropModeAppend; |
| 241 | pub const NoEventMask = c.NoEventMask; |
| 242 | |
| 243 | pub const XPropertyEvent = c.XPropertyEvent; |
| 244 | pub const PropertyDelete = c.PropertyDelete; |
| 245 | pub const XA_WM_TRANSIENT_FOR = c.XA_WM_TRANSIENT_FOR; |
| 246 | pub const XA_WM_NORMAL_HINTS = c.XA_WM_NORMAL_HINTS; |
| 247 | pub const XA_WM_HINTS = c.XA_WM_HINTS; |
| 248 | |
| 249 | pub const XDeleteProperty = c.XDeleteProperty; |
| 250 | pub const XCreateSimpleWindow = c.XCreateSimpleWindow; |
| 251 | pub const XDestroyWindow = c.XDestroyWindow; |
| 252 | pub const XGrabServer = c.XGrabServer; |
| 253 | pub const XUngrabServer = c.XUngrabServer; |
| 254 | pub const XUngrabButton = c.XUngrabButton; |
| 255 | pub const XUngrabKey = c.XUngrabKey; |
| 256 | pub const XGrabKeyboard = c.XGrabKeyboard; |
| 257 | pub const XUngrabKeyboard = c.XUngrabKeyboard; |
| 258 | pub const AnyKey = c.AnyKey; |
| 259 | pub const AnyModifier = c.AnyModifier; |
| 260 | |
| 261 | pub const Cursor = c.Cursor; |
| 262 | pub const XCreateFontCursor = c.XCreateFontCursor; |
| 263 | pub const XFreeCursor = c.XFreeCursor; |
| 264 | pub const XDefineCursor = c.XDefineCursor; |
| 265 | pub const XC_left_ptr = c.XC_left_ptr; |
| 266 | pub const XC_sizing = c.XC_sizing; |
| 267 | pub const XC_fleur = c.XC_fleur; |
| 268 | |
| 269 | pub const XAllowEvents = c.XAllowEvents; |
| 270 | pub const ReplayPointer = c.ReplayPointer; |
| 271 | pub const AnyButton = c.AnyButton; |