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