JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
juce_XSymbols_linux.h
Go to the documentation of this file.
1 /*
2 ==============================================================================
3
4 This file is part of the JUCE library.
5 Copyright (c) 2022 - Raw Material Software Limited
6
7 JUCE is an open source library subject to commercial or open-source
8 licensing.
9
10 By using JUCE, you agree to the terms of both the JUCE 7 End-User License
11 Agreement and JUCE Privacy Policy.
12
13 End User License Agreement: www.juce.com/juce-7-licence
14 Privacy Policy: www.juce.com/juce-privacy-policy
15
16 Or: You may also use this code under the terms of the GPL v3 (see
17 www.gnu.org/licenses).
18
19 JUCE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY, AND ALL WARRANTIES, WHETHER
20 EXPRESSED OR IMPLIED, INCLUDING MERCHANTABILITY AND FITNESS FOR PURPOSE, ARE
21 DISCLAIMED.
22
23 ==============================================================================
24*/
25
26namespace juce
27{
28
29//==============================================================================
30namespace ReturnHelpers
31{
32 template <typename Type>
33 Type returnDefaultConstructedAnyType() { return {}; }
34
35 template <>
36 inline void returnDefaultConstructedAnyType<void>() {}
37}
38
39#define JUCE_GENERATE_FUNCTION_WITH_DEFAULT(functionName, objectName, args, returnType) \
40 using functionName = returnType (*) args; \
41 functionName objectName = [] args -> returnType { return ReturnHelpers::returnDefaultConstructedAnyType<returnType>(); };
42
43
44//==============================================================================
45class JUCE_API X11Symbols
46{
47public:
48 //==============================================================================
49 bool loadAllSymbols();
50
51 //==============================================================================
52 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XAllocClassHint, xAllocClassHint,
53 (),
54 XClassHint*)
55
56 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XAllocSizeHints, xAllocSizeHints,
57 (),
58 XSizeHints*)
59
60 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XAllocWMHints, xAllocWMHints,
61 (),
62 XWMHints*)
63
64 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XBitmapBitOrder, xBitmapBitOrder,
65 (::Display*),
66 int)
67
68 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XBitmapUnit, xBitmapUnit,
69 (::Display*),
70 int)
71
72 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XChangeActivePointerGrab, xChangeActivePointerGrab,
73 (::Display*, unsigned int, Cursor, ::Time),
74 void)
75
76 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XChangeProperty, xChangeProperty,
77 (::Display*, ::Window, Atom, Atom, int, int, const unsigned char*, int),
78 void)
79
80 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCheckTypedWindowEvent, xCheckTypedWindowEvent,
81 (::Display*, ::Window, int, XEvent*),
82 Bool)
83
84 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCheckWindowEvent, xCheckWindowEvent,
85 (::Display*, ::Window, long, XEvent*),
86 Bool)
87
88 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XClearArea, xClearArea,
89 (::Display*, ::Window, int, int, unsigned int, unsigned int, Bool),
90 void)
91
92 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCloseDisplay, xCloseDisplay,
93 (::Display*),
94 int)
95
96 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XConnectionNumber, xConnectionNumber,
97 (::Display*),
98 int)
99
100 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XConvertSelection, xConvertSelection,
101 (::Display*, Atom, Atom, Atom, ::Window, ::Time),
102 void)
103
104 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreateColormap, xCreateColormap,
105 (::Display*, ::Window, Visual*, int),
106 Colormap)
107
108 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreateFontCursor, xCreateFontCursor,
109 (::Display*, unsigned int),
110 Cursor)
111
112 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreateGC, xCreateGC,
113 (::Display*, ::Drawable, unsigned long, XGCValues*),
114 GC)
115
116 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreateImage, xCreateImage,
117 (::Display*, Visual*, unsigned int, int, int, const char*, unsigned int, unsigned int, int, int),
118 XImage*)
119
120 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreatePixmap, xCreatePixmap,
121 (::Display*, ::Drawable, unsigned int, unsigned int, unsigned int),
122 Pixmap)
123
124 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreatePixmapCursor, xCreatePixmapCursor,
125 (::Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int),
126 Cursor)
127
128 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreatePixmapFromBitmapData, xCreatePixmapFromBitmapData,
129 (::Display*, ::Drawable, const char*, unsigned int, unsigned int, unsigned long, unsigned long, unsigned int),
130 Pixmap)
131
132 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XCreateWindow, xCreateWindow,
133 (::Display*, ::Window, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual*, unsigned long, XSetWindowAttributes*),
134 ::Window)
135
136 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDefaultRootWindow, xDefaultRootWindow,
137 (::Display*),
138 ::Window)
139
140 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDefaultScreen, xDefaultScreen,
141 (::Display*),
142 int)
143
144 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDefaultScreenOfDisplay, xDefaultScreenOfDisplay,
145 (::Display*),
146 Screen*)
147
148 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDefaultVisual, xDefaultVisual,
149 (::Display*, int),
150 Visual*)
151
152 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDefineCursor, xDefineCursor,
153 (::Display*, ::Window, Cursor),
154 int)
155
156 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDeleteContext, xDeleteContext,
157 (::Display*, XID, XContext),
158 int)
159
160 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDeleteProperty, xDeleteProperty,
161 (::Display*, Window, Atom),
162 void)
163
164 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDestroyImage, xDestroyImage,
165 (XImage*),
166 void)
167
168 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDestroyWindow, xDestroyWindow,
169 (::Display*, ::Window),
170 void)
171
172 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDisplayHeight, xDisplayHeight,
173 (::Display*, int),
174 int)
175
176 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDisplayHeightMM, xDisplayHeightMM,
177 (::Display*, int),
178 int)
179
180 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDisplayWidth, xDisplayWidth,
181 (::Display*, int),
182 int)
183
184 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XDisplayWidthMM, xDisplayWidthMM,
185 (::Display*, int),
186 int)
187
188 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XEventsQueued, xEventsQueued,
189 (::Display*, int),
190 int)
191
192 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFindContext, xFindContext,
193 (::Display*, XID, XContext, XPointer*),
194 int)
195
196 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFlush, xFlush,
197 (::Display*),
198 int)
199
200 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFree, xFree,
201 (void*),
202 void)
203
204 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFreeCursor, xFreeCursor,
205 (::Display*, Cursor),
206 void)
207
208 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFreeColormap ,xFreeColormap,
209 (::Display*, Colormap),
210 void)
211
212 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFreeGC, xFreeGC,
213 (::Display*, GC),
214 void)
215
216 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFreeModifiermap, xFreeModifiermap,
217 (XModifierKeymap*),
218 void)
219
220 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XFreePixmap, xFreePixmap,
221 (::Display*, Pixmap),
222 void)
223
224 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetAtomName, xGetAtomName,
225 (::Display*, Atom),
226 char*)
227
228 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetErrorDatabaseText, xGetErrorDatabaseText,
229 (::Display*, const char*, const char*, const char*, const char*, int),
230 void)
231
232 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetErrorText, xGetErrorText,
233 (::Display*, int, const char*, int),
234 void)
235
236 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetGeometry, xGetGeometry,
237 (::Display*, ::Drawable, ::Window*, int*, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*),
238 Status)
239
240 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetImage, xGetImage,
241 (::Display*, ::Drawable, int, int, unsigned int, unsigned int, unsigned long, int),
242 XImage*)
243
244 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetInputFocus, xGetInputFocus,
245 (::Display*, ::Window*, int*),
246 void)
247
248 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetModifierMapping, xGetModifierMapping,
249 (::Display*),
250 XModifierKeymap*)
251
252 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetPointerMapping, xGetPointerMapping,
253 (::Display*, unsigned char[], int),
254 int)
255
256 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetSelectionOwner, xGetSelectionOwner,
257 (::Display*, Atom),
258 ::Window)
259
260 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetVisualInfo, xGetVisualInfo,
261 (::Display*, long, XVisualInfo*, int*),
262 XVisualInfo*)
263
264 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetWMHints, xGetWMHints,
265 (::Display*, ::Window),
266 XWMHints*)
267
268 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetWindowAttributes, xGetWindowAttributes,
269 (::Display*, ::Window, XWindowAttributes*),
270 Status)
271
272 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGetWindowProperty, xGetWindowProperty,
273 (::Display*, ::Window, Atom, long, long, Bool, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**),
274 int)
275
276 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGrabPointer, xGrabPointer,
277 (::Display*, ::Window, Bool, unsigned int, int, int, ::Window, Cursor, ::Time),
278 int)
279
280 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XGrabServer, xGrabServer,
281 (::Display*),
282 int)
283
284 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XImageByteOrder, xImageByteOrder,
285 (::Display*),
286 int)
287
288 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XInitImage, xInitImage,
289 (XImage*),
290 Status)
291
292 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XInitThreads, xInitThreads,
293 (),
294 Status)
295
296 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XInstallColormap, xInstallColormap,
297 (::Display*, Colormap),
298 void)
299
300 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XInternAtom, xInternAtom,
301 (::Display*, const char*, Bool),
302 Atom)
303
304 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XkbKeycodeToKeysym, xkbKeycodeToKeysym,
305 (::Display*, KeyCode, unsigned int, unsigned int),
306 KeySym)
307
308 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XKeysymToKeycode, xKeysymToKeycode,
309 (::Display*, KeySym),
310 KeyCode)
311
312 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XListProperties, xListProperties,
313 (::Display*, Window, int*),
314 Atom*)
315
316 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XLockDisplay, xLockDisplay,
317 (::Display*),
318 void)
319
320 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XLookupString, xLookupString,
321 (XKeyEvent*, const char*, int, KeySym*, XComposeStatus*),
322 int)
323
324 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XMapRaised, xMapRaised,
325 (::Display*, ::Window),
326 void)
327
328 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XMapWindow, xMapWindow,
329 (::Display*, ::Window),
330 void)
331
332 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XMoveResizeWindow, xMoveResizeWindow,
333 (::Display*, ::Window, int, int, unsigned int, unsigned int),
334 void)
335
336 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XNextEvent, xNextEvent,
337 (::Display*, XEvent*),
338 int)
339
340 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XOpenDisplay, xOpenDisplay,
341 (const char*),
342 ::Display*)
343
344 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XPeekEvent, xPeekEvent,
345 (::Display*, XEvent*),
346 void)
347
348 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XPending, xPending,
349 (::Display*),
350 int)
351
352 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XPutImage, xPutImage,
353 (::Display*, ::Drawable, GC, XImage*, int, int, int, int, unsigned int, unsigned int),
354 void)
355
356 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XPutPixel, xPutPixel,
357 (XImage*, int, int, unsigned long),
358 void)
359
360 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XQueryBestCursor, xQueryBestCursor,
361 (::Display*, ::Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*),
362 Status)
363
364 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XQueryExtension, xQueryExtension,
365 (::Display*, const char*, int*, int*, int*),
366 Bool)
367
368 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XQueryPointer, xQueryPointer,
369 (::Display*, ::Window, ::Window*, ::Window*, int*, int*, int*, int*, unsigned int*),
370 Bool)
371
372 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XQueryTree, xQueryTree,
373 (::Display*, ::Window, ::Window*, ::Window*, ::Window**, unsigned int*),
374 Status)
375
376 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRefreshKeyboardMapping, xRefreshKeyboardMapping,
377 (XMappingEvent*),
378 void)
379
380 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XReparentWindow, xReparentWindow,
381 (::Display*, ::Window, ::Window, int, int),
382 void)
383
384 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XResizeWindow, xResizeWindow,
385 (::Display*, Window, unsigned int, unsigned int),
386 void)
387
388 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRestackWindows, xRestackWindows,
389 (::Display*, ::Window[], int),
390 void)
391
392 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRootWindow, xRootWindow,
393 (::Display*, int),
394 ::Window)
395
396 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSaveContext, xSaveContext,
397 (::Display*, XID, XContext, XPointer),
398 int)
399
400 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XScreenCount, xScreenCount,
401 (::Display*),
402 int)
403
404 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XScreenNumberOfScreen, xScreenNumberOfScreen,
405 (Screen*),
406 int)
407
408 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSelectInput, xSelectInput,
409 (::Display*, ::Window, long),
410 void)
411
412 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSendEvent, xSendEvent,
413 (::Display*, ::Window, Bool, long, XEvent*),
414 Status)
415
416 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetClassHint, xSetClassHint,
417 (::Display*, ::Window, XClassHint*),
418 void)
419
420 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetErrorHandler, xSetErrorHandler,
421 (XErrorHandler),
422 XErrorHandler)
423
424 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetIOErrorHandler, xSetIOErrorHandler,
425 (XIOErrorHandler),
426 XIOErrorHandler)
427
428 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetInputFocus, xSetInputFocus,
429 (::Display*, ::Window, int, ::Time),
430 void)
431
432 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetSelectionOwner, xSetSelectionOwner,
433 (::Display*, Atom, ::Window, ::Time),
434 void)
435
436 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetWMHints, xSetWMHints,
437 (::Display*, ::Window, XWMHints*),
438 void)
439
440 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetWMIconName, xSetWMIconName,
441 (::Display*, ::Window, XTextProperty*),
442 void)
443
444 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetWMName, xSetWMName,
445 (::Display*, ::Window, XTextProperty*),
446 void)
447
448 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSetWMNormalHints, xSetWMNormalHints,
449 (::Display*, ::Window, XSizeHints*),
450 void)
451
452 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XStringListToTextProperty, xStringListToTextProperty,
453 (char**, int, XTextProperty*),
454 Status)
455
456 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (Xutf8TextListToTextProperty, xutf8TextListToTextProperty,
457 (::Display*, char**, int, XICCEncodingStyle, XTextProperty*),
458 int)
459
460 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSync, xSync,
461 (::Display*, Bool),
462 void)
463
464 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XSynchronize, xSynchronize,
465 (::Display*, Bool),
466 int)
467
468 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XTranslateCoordinates, xTranslateCoordinates,
469 (::Display*, ::Window, ::Window, int, int, int*, int*, ::Window*),
470 Bool)
471
472 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XrmUniqueQuark, xrmUniqueQuark,
473 (),
474 int)
475
476 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XUngrabPointer, xUngrabPointer,
477 (::Display*, ::Time),
478 void)
479
480 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XUngrabServer, xUngrabServer,
481 (::Display*),
482 int)
483
484 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XUnlockDisplay, xUnlockDisplay,
485 (::Display*),
486 void)
487
488 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XUnmapWindow, xUnmapWindow,
489 (::Display*, ::Window),
490 void)
491
492 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XWarpPointer, xWarpPointer,
493 (::Display*, ::Window, ::Window, int, int, unsigned int, unsigned int, int, int),
494 void)
495 #if JUCE_USE_XCURSOR
496 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XcursorImageCreate, xcursorImageCreate,
497 (int, int),
498 XcursorImage*)
499
500 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XcursorImageLoadCursor, xcursorImageLoadCursor,
501 (::Display*, XcursorImage*),
502 Cursor)
503
504 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XcursorImageDestroy, xcursorImageDestroy,
505 (XcursorImage*),
506 void)
507 #endif
508 #if JUCE_USE_XINERAMA
509 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XineramaIsActive, xineramaIsActive,
510 (::Display*),
511 Bool)
512
513 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XineramaQueryScreens, xineramaQueryScreens,
514 (::Display*, int*),
515 XineramaScreenInfo*)
516 #endif
517 #if JUCE_USE_XRENDER
518 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRenderQueryVersion, xRenderQueryVersion,
519 (::Display*, int*, int*),
520 Status)
521
522 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRenderFindStandardFormat, xRenderFindStandardFormat,
523 (Display*, int),
524 XRenderPictFormat*)
525
526 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRenderFindFormat, xRenderFindFormat,
527 (Display*, unsigned long, XRenderPictFormat*, int),
528 XRenderPictFormat*)
529
530 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRenderFindVisualFormat, xRenderFindVisualFormat,
531 (Display*, Visual*),
532 XRenderPictFormat*)
533 #endif
534 #if JUCE_USE_XRANDR
535 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRGetScreenResources, xRRGetScreenResources,
536 (::Display*, Window),
537 XRRScreenResources*)
538
539 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRFreeScreenResources, xRRFreeScreenResources,
540 (XRRScreenResources*),
541 void)
542
543 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRGetOutputInfo, xRRGetOutputInfo,
544 (::Display*, XRRScreenResources*, RROutput),
545 XRROutputInfo*)
546
547 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRFreeOutputInfo, xRRFreeOutputInfo,
548 (XRROutputInfo*),
549 void)
550
551 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRGetCrtcInfo, xRRGetCrtcInfo,
552 (::Display*, XRRScreenResources*, RRCrtc),
553 XRRCrtcInfo*)
554
555 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRFreeCrtcInfo, xRRFreeCrtcInfo,
556 (XRRCrtcInfo*),
557 void)
558
559 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XRRGetOutputPrimary, xRRGetOutputPrimary,
560 (::Display*, ::Window),
561 RROutput)
562 #endif
563 #if JUCE_USE_XSHM
564 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XShmAttach, xShmAttach,
565 (::Display*, XShmSegmentInfo*),
566 Bool)
567
568 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XShmCreateImage, xShmCreateImage,
569 (::Display*, Visual*, unsigned int, int, const char*, XShmSegmentInfo*, unsigned int, unsigned int),
570 XImage*)
571
572 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XShmDetach, xShmDetach,
573 (::Display*, XShmSegmentInfo*),
574 Bool)
575
576 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XShmGetEventBase, xShmGetEventBase,
577 (::Display*),
578 Status)
579
580 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XShmPutImage, xShmPutImage,
581 (::Display*, ::Drawable, GC, XImage*, int, int, int, int, unsigned int, unsigned int, bool),
582 Bool)
583
584 JUCE_GENERATE_FUNCTION_WITH_DEFAULT (XShmQueryVersion, xShmQueryVersion,
585 (::Display*, int*, int*, Bool*),
586 Bool)
587 #endif
588
589 //==============================================================================
591
592private:
593 X11Symbols() = default;
594
596 {
597 clearSingletonInstance();
598 }
599
600 //==============================================================================
601 DynamicLibrary xLib { "libX11.so.6" }, xextLib { "libXext.so.6" };
602
603 #if JUCE_USE_XCURSOR
604 DynamicLibrary xcursorLib { "libXcursor.so.1" };
605 #endif
606 #if JUCE_USE_XINERAMA
607 DynamicLibrary xineramaLib { "libXinerama.so.1" };
608 #endif
609 #if JUCE_USE_XRENDER
610 DynamicLibrary xrenderLib { "libXrender.so.1" };
611 #endif
612 #if JUCE_USE_XRANDR
613 DynamicLibrary xrandrLib { "libXrandr.so.2" };
614 #endif
615
616 //==============================================================================
618};
619
620} // namespace juce
Handles the opening and closing of DLLs.
#define JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(className)
This is a shorthand way of writing both a JUCE_DECLARE_NON_COPYABLE and JUCE_LEAK_DETECTOR macro for ...
#define JUCE_DECLARE_SINGLETON(Classname, doNotRecreateAfterDeletion)
Macro to generate the appropriate methods and boilerplate for a singleton class.
JUCE Namespace.