tony / oxwm

Branch: 7c02e65
Switch branches/tags
master
tonybanters Removed dupe of Xconfigureevent 9f770b4 2026-05-09
285 lines · 10.1 KB Raw Blame History
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 pub const XConfigureEvent = c.XConfigureEvent;
143
144 pub const XineramaIsActive = c.XineramaIsActive;
145 pub const XineramaQueryScreens = c.XineramaQueryScreens;
146 pub const XineramaScreenInfo = c.XineramaScreenInfo;
147
148 pub const XftFont = c.XftFont;
149 pub const XftColor = c.XftColor;
150 pub const XftDraw = c.XftDraw;
151 pub const XftFontOpenName = c.XftFontOpenName;
152 pub const XftFontClose = c.XftFontClose;
153 pub const XftDrawCreate = c.XftDrawCreate;
154 pub const XftDrawDestroy = c.XftDrawDestroy;
155 pub const XftDrawStringUtf8 = c.XftDrawStringUtf8;
156 pub const XftColorAllocValue = c.XftColorAllocValue;
157 pub const XftColorFree = c.XftColorFree;
158 pub const XftTextExtentsUtf8 = c.XftTextExtentsUtf8;
159 pub const XGlyphInfo = c.XGlyphInfo;
160 pub const XRenderColor = c.XRenderColor;
161
162 pub const XCreatePixmap = c.XCreatePixmap;
163 pub const XFreePixmap = c.XFreePixmap;
164 pub const XCopyArea = c.XCopyArea;
165 pub const XCreateGC = c.XCreateGC;
166 pub const XFreeGC = c.XFreeGC;
167 pub const XSetForeground = c.XSetForeground;
168 pub const XFillRectangle = c.XFillRectangle;
169 pub const XDefaultVisual = c.XDefaultVisual;
170 pub const XDefaultColormap = c.XDefaultColormap;
171 pub const XDefaultDepth = c.XDefaultDepth;
172 pub const Pixmap = c.Pixmap;
173 pub const Drawable = c.Drawable;
174 pub const GC = c.GC;
175 pub const Visual = c.Visual;
176 pub const Colormap = c.Colormap;
177
178 pub const KeyPress = c.KeyPress;
179 pub const KeyRelease = c.KeyRelease;
180 pub const ButtonPress = c.ButtonPress;
181 pub const ButtonRelease = c.ButtonRelease;
182 pub const MotionNotify = c.MotionNotify;
183 pub const EnterNotify = c.EnterNotify;
184 pub const LeaveNotify = c.LeaveNotify;
185 pub const FocusIn = c.FocusIn;
186 pub const FocusOut = c.FocusOut;
187 pub const KeymapNotify = c.KeymapNotify;
188 pub const Expose = c.Expose;
189 pub const GraphicsExpose = c.GraphicsExpose;
190 pub const NoExpose = c.NoExpose;
191 pub const VisibilityNotify = c.VisibilityNotify;
192 pub const CreateNotify = c.CreateNotify;
193 pub const DestroyNotify = c.DestroyNotify;
194 pub const UnmapNotify = c.UnmapNotify;
195 pub const MapNotify = c.MapNotify;
196 pub const MapRequest = c.MapRequest;
197 pub const ReparentNotify = c.ReparentNotify;
198 pub const ConfigureNotify = c.ConfigureNotify;
199 pub const ConfigureRequest = c.ConfigureRequest;
200 pub const GravityNotify = c.GravityNotify;
201 pub const ResizeRequest = c.ResizeRequest;
202 pub const CirculateNotify = c.CirculateNotify;
203 pub const CirculateRequest = c.CirculateRequest;
204 pub const PropertyNotify = c.PropertyNotify;
205 pub const SelectionClear = c.SelectionClear;
206 pub const SelectionRequest = c.SelectionRequest;
207 pub const SelectionNotify = c.SelectionNotify;
208 pub const ColormapNotify = c.ColormapNotify;
209 pub const ClientMessage = c.ClientMessage;
210 pub const MappingNotify = c.MappingNotify;
211 pub const GenericEvent = c.GenericEvent;
212
213 pub const XClassHint = c.XClassHint;
214 pub const XGetClassHint = c.XGetClassHint;
215 pub const XWMHints = c.XWMHints;
216 pub const XGetWMHints = c.XGetWMHints;
217 pub const XSetWMHints = c.XSetWMHints;
218 pub const XSizeHints = c.XSizeHints;
219 pub const XGetWMNormalHints = c.XGetWMNormalHints;
220 pub const XGetTransientForHint = c.XGetTransientForHint;
221 pub const XTextProperty = c.XTextProperty;
222 pub const XGetTextProperty = c.XGetTextProperty;
223 pub const XmbTextPropertyToTextList = c.XmbTextPropertyToTextList;
224 pub const XFreeStringList = c.XFreeStringList;
225 pub const Success = c.Success;
226 pub const XGetWMProtocols = c.XGetWMProtocols;
227 pub const XAllocSizeHints = c.XAllocSizeHints;
228
229 pub const XUrgencyHint = c.XUrgencyHint;
230 pub const InputHint = c.InputHint;
231 pub const PBaseSize = c.PBaseSize;
232 pub const PMinSize = c.PMinSize;
233 pub const PMaxSize = c.PMaxSize;
234 pub const PResizeInc = c.PResizeInc;
235 pub const PAspect = c.PAspect;
236 pub const PSize = c.PSize;
237
238 pub const XA_WM_NAME = c.XA_WM_NAME;
239 pub const XA_WINDOW = c.XA_WINDOW;
240 pub const XA_STRING = c.XA_STRING;
241 pub const PropModeAppend = c.PropModeAppend;
242 pub const NoEventMask = c.NoEventMask;
243
244 pub const XPropertyEvent = c.XPropertyEvent;
245 pub const PropertyDelete = c.PropertyDelete;
246 pub const XA_WM_TRANSIENT_FOR = c.XA_WM_TRANSIENT_FOR;
247 pub const XA_WM_NORMAL_HINTS = c.XA_WM_NORMAL_HINTS;
248 pub const XA_WM_HINTS = c.XA_WM_HINTS;
249
250 pub const XDeleteProperty = c.XDeleteProperty;
251 pub const XCreateSimpleWindow = c.XCreateSimpleWindow;
252 pub const XDestroyWindow = c.XDestroyWindow;
253 pub const XGrabServer = c.XGrabServer;
254 pub const XUngrabServer = c.XUngrabServer;
255 pub const XUngrabButton = c.XUngrabButton;
256 pub const XUngrabKey = c.XUngrabKey;
257 pub const XGrabKeyboard = c.XGrabKeyboard;
258 pub const XUngrabKeyboard = c.XUngrabKeyboard;
259 pub const AnyKey = c.AnyKey;
260 pub const AnyModifier = c.AnyModifier;
261
262 pub const Cursor = c.Cursor;
263 pub const XCreateFontCursor = c.XCreateFontCursor;
264 pub const XFreeCursor = c.XFreeCursor;
265 pub const XDefineCursor = c.XDefineCursor;
266 pub const XC_left_ptr = c.XC_left_ptr;
267 pub const XC_sizing = c.XC_sizing;
268 pub const XC_fleur = c.XC_fleur;
269
270 pub const XAllowEvents = c.XAllowEvents;
271 pub const ReplayPointer = c.ReplayPointer;
272 pub const AnyButton = c.AnyButton;
273
274 pub const XMappingEvent = c.XMappingEvent;
275 pub const XRefreshKeyboardMapping = c.XRefreshKeyboardMapping;
276 pub const MappingKeyboard = c.MappingKeyboard;
277 pub const MappingModifier = c.MappingModifier;
278
279 pub const XReparentWindow = c.XReparentWindow;
280 pub const XResizeWindow = c.XResizeWindow;
281 pub const XSetSelectionOwner = c.XSetSelectionOwner;
282 pub const XGetSelectionOwner = c.XGetSelectionOwner;
283 pub const XA_CARDINAL = c.XA_CARDINAL;
284 pub const XReparentEvent = c.XReparentEvent;
285 pub const XResizeRequestEvent = c.XResizeRequestEvent;