| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
#ifndef _X11_XUTIL_H_ |
| 50 |
#define _X11_XUTIL_H_ |
| 51 |
|
| 52 |
|
| 53 |
#include <X11/Xlib.h> |
| 54 |
#include <X11/keysym.h> |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
#ifdef __clang__ |
| 60 |
#pragma clang diagnostic push |
| 61 |
#pragma clang diagnostic ignored "-Wpadded" |
| 62 |
#endif |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
#define NoValue 0x0000 |
| 69 |
#define XValue 0x0001 |
| 70 |
#define YValue 0x0002 |
| 71 |
#define WidthValue 0x0004 |
| 72 |
#define HeightValue 0x0008 |
| 73 |
#define AllValues 0x000F |
| 74 |
#define XNegative 0x0010 |
| 75 |
#define YNegative 0x0020 |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
typedef struct { |
| 82 |
long flags; |
| 83 |
int x, y; |
| 84 |
int width, height; |
| 85 |
int min_width, min_height; |
| 86 |
int max_width, max_height; |
| 87 |
int width_inc, height_inc; |
| 88 |
struct { |
| 89 |
int x; |
| 90 |
int y; |
| 91 |
} min_aspect, max_aspect; |
| 92 |
int base_width, base_height; |
| 93 |
int win_gravity; |
| 94 |
} XSizeHints; |
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
#define USPosition (1L << 0) |
| 103 |
#define USSize (1L << 1) |
| 104 |
|
| 105 |
#define PPosition (1L << 2) |
| 106 |
#define PSize (1L << 3) |
| 107 |
#define PMinSize (1L << 4) |
| 108 |
#define PMaxSize (1L << 5) |
| 109 |
#define PResizeInc (1L << 6) |
| 110 |
#define PAspect (1L << 7) |
| 111 |
#define PBaseSize (1L << 8) |
| 112 |
#define PWinGravity (1L << 9) |
| 113 |
|
| 114 |
|
| 115 |
#define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect) |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
typedef struct { |
| 120 |
long flags; |
| 121 |
Bool input; |
| 122 |
|
| 123 |
int initial_state; |
| 124 |
Pixmap icon_pixmap; |
| 125 |
Window icon_window; |
| 126 |
int icon_x, icon_y; |
| 127 |
Pixmap icon_mask; |
| 128 |
XID window_group; |
| 129 |
|
| 130 |
} XWMHints; |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
#define InputHint (1L << 0) |
| 135 |
#define StateHint (1L << 1) |
| 136 |
#define IconPixmapHint (1L << 2) |
| 137 |
#define IconWindowHint (1L << 3) |
| 138 |
#define IconPositionHint (1L << 4) |
| 139 |
#define IconMaskHint (1L << 5) |
| 140 |
#define WindowGroupHint (1L << 6) |
| 141 |
#define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \ |
| 142 |
IconPositionHint|IconMaskHint|WindowGroupHint) |
| 143 |
#define XUrgencyHint (1L << 8) |
| 144 |
|
| 145 |
|
| 146 |
#define WithdrawnState 0 |
| 147 |
#define NormalState 1 |
| 148 |
#define IconicState 3 |
| 149 |
|
| 150 |
|
| 151 |
|
| 152 |
|
| 153 |
#define DontCareState 0 |
| 154 |
#define ZoomState 2 |
| 155 |
#define InactiveState 4 |
| 156 |
|
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
|
| 161 |
|
| 162 |
|
| 163 |
typedef struct { |
| 164 |
unsigned char *value; |
| 165 |
Atom encoding; |
| 166 |
int format; |
| 167 |
unsigned long nitems; |
| 168 |
} XTextProperty; |
| 169 |
|
| 170 |
#define XNoMemory -1 |
| 171 |
#define XLocaleNotSupported -2 |
| 172 |
#define XConverterNotFound -3 |
| 173 |
|
| 174 |
typedef enum { |
| 175 |
XStringStyle, |
| 176 |
XCompoundTextStyle, |
| 177 |
XTextStyle, |
| 178 |
XStdICCTextStyle, |
| 179 |
|
| 180 |
XUTF8StringStyle |
| 181 |
} XICCEncodingStyle; |
| 182 |
|
| 183 |
typedef struct { |
| 184 |
int min_width, min_height; |
| 185 |
int max_width, max_height; |
| 186 |
int width_inc, height_inc; |
| 187 |
} XIconSize; |
| 188 |
|
| 189 |
typedef struct { |
| 190 |
char *res_name; |
| 191 |
char *res_class; |
| 192 |
} XClassHint; |
| 193 |
|
| 194 |
#ifdef XUTIL_DEFINE_FUNCTIONS |
| 195 |
extern int XDestroyImage( |
| 196 |
XImage *ximage); |
| 197 |
extern unsigned long XGetPixel( |
| 198 |
XImage *ximage, |
| 199 |
int x, int y); |
| 200 |
extern int XPutPixel( |
| 201 |
XImage *ximage, |
| 202 |
int x, int y, |
| 203 |
unsigned long pixel); |
| 204 |
extern XImage *XSubImage( |
| 205 |
XImage *ximage, |
| 206 |
int x, int y, |
| 207 |
unsigned int width, unsigned int height); |
| 208 |
extern int XAddPixel( |
| 209 |
XImage *ximage, |
| 210 |
long value); |
| 211 |
#else |
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
#define XDestroyImage(ximage) \ |
| 217 |
((*((ximage)->f.destroy_image))((ximage))) |
| 218 |
#define XGetPixel(ximage, x, y) \ |
| 219 |
((*((ximage)->f.get_pixel))((ximage), (x), (y))) |
| 220 |
#define XPutPixel(ximage, x, y, pixel) \ |
| 221 |
((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel))) |
| 222 |
#define XSubImage(ximage, x, y, width, height) \ |
| 223 |
((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height))) |
| 224 |
#define XAddPixel(ximage, value) \ |
| 225 |
((*((ximage)->f.add_pixel))((ximage), (value))) |
| 226 |
#endif |
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
typedef struct _XComposeStatus { |
| 232 |
XPointer compose_ptr; |
| 233 |
int chars_matched; |
| 234 |
} XComposeStatus; |
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
#define IsKeypadKey(keysym) \ |
| 240 |
(((KeySym)(keysym) >= XK_KP_Space) && ((KeySym)(keysym) <= XK_KP_Equal)) |
| 241 |
|
| 242 |
#define IsPrivateKeypadKey(keysym) \ |
| 243 |
(((KeySym)(keysym) >= 0x11000000) && ((KeySym)(keysym) <= 0x1100FFFF)) |
| 244 |
|
| 245 |
#define IsCursorKey(keysym) \ |
| 246 |
(((KeySym)(keysym) >= XK_Home) && ((KeySym)(keysym) < XK_Select)) |
| 247 |
|
| 248 |
#define IsPFKey(keysym) \ |
| 249 |
(((KeySym)(keysym) >= XK_KP_F1) && ((KeySym)(keysym) <= XK_KP_F4)) |
| 250 |
|
| 251 |
#define IsFunctionKey(keysym) \ |
| 252 |
(((KeySym)(keysym) >= XK_F1) && ((KeySym)(keysym) <= XK_F35)) |
| 253 |
|
| 254 |
#define IsMiscFunctionKey(keysym) \ |
| 255 |
(((KeySym)(keysym) >= XK_Select) && ((KeySym)(keysym) <= XK_Break)) |
| 256 |
|
| 257 |
#ifdef XK_XKB_KEYS |
| 258 |
#define IsModifierKey(keysym) \ |
| 259 |
((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \ |
| 260 |
|| (((KeySym)(keysym) >= XK_ISO_Lock) && \ |
| 261 |
((KeySym)(keysym) <= XK_ISO_Level5_Lock)) \ |
| 262 |
|| ((KeySym)(keysym) == XK_Mode_switch) \ |
| 263 |
|| ((KeySym)(keysym) == XK_Num_Lock)) |
| 264 |
#else |
| 265 |
#define IsModifierKey(keysym) \ |
| 266 |
((((KeySym)(keysym) >= XK_Shift_L) && ((KeySym)(keysym) <= XK_Hyper_R)) \ |
| 267 |
|| ((KeySym)(keysym) == XK_Mode_switch) \ |
| 268 |
|| ((KeySym)(keysym) == XK_Num_Lock)) |
| 269 |
#endif |
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
typedef struct _XRegion *Region; |
| 274 |
|
| 275 |
|
| 276 |
|
| 277 |
#define RectangleOut 0 |
| 278 |
#define RectangleIn 1 |
| 279 |
#define RectanglePart 2 |
| 280 |
|
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
|
| 286 |
|
| 287 |
typedef struct { |
| 288 |
Visual *visual; |
| 289 |
VisualID visualid; |
| 290 |
int screen; |
| 291 |
int depth; |
| 292 |
#if defined(__cplusplus) || defined(c_plusplus) |
| 293 |
int c_class; |
| 294 |
#else |
| 295 |
int class; |
| 296 |
#endif |
| 297 |
unsigned long red_mask; |
| 298 |
unsigned long green_mask; |
| 299 |
unsigned long blue_mask; |
| 300 |
int colormap_size; |
| 301 |
int bits_per_rgb; |
| 302 |
} XVisualInfo; |
| 303 |
|
| 304 |
#define VisualNoMask 0x0 |
| 305 |
#define VisualIDMask 0x1 |
| 306 |
#define VisualScreenMask 0x2 |
| 307 |
#define VisualDepthMask 0x4 |
| 308 |
#define VisualClassMask 0x8 |
| 309 |
#define VisualRedMaskMask 0x10 |
| 310 |
#define VisualGreenMaskMask 0x20 |
| 311 |
#define VisualBlueMaskMask 0x40 |
| 312 |
#define VisualColormapSizeMask 0x80 |
| 313 |
#define VisualBitsPerRGBMask 0x100 |
| 314 |
#define VisualAllMask 0x1FF |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
typedef struct { |
| 321 |
Colormap colormap; |
| 322 |
unsigned long red_max; |
| 323 |
unsigned long red_mult; |
| 324 |
unsigned long green_max; |
| 325 |
unsigned long green_mult; |
| 326 |
unsigned long blue_max; |
| 327 |
unsigned long blue_mult; |
| 328 |
unsigned long base_pixel; |
| 329 |
VisualID visualid; |
| 330 |
XID killid; |
| 331 |
} XStandardColormap; |
| 332 |
|
| 333 |
#define ReleaseByFreeingColormap ((XID) 1L) |
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
#define BitmapSuccess 0 |
| 340 |
#define BitmapOpenFailed 1 |
| 341 |
#define BitmapFileInvalid 2 |
| 342 |
#define BitmapNoMemory 3 |
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
|
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
|
| 353 |
#define XCSUCCESS 0 |
| 354 |
#define XCNOMEM 1 |
| 355 |
#define XCNOENT 2 |
| 356 |
|
| 357 |
typedef int XContext; |
| 358 |
|
| 359 |
#define XUniqueContext() ((XContext) XrmUniqueQuark()) |
| 360 |
#define XStringToContext(string) ((XContext) XrmStringToQuark(string)) |
| 361 |
|
| 362 |
_XFUNCPROTOBEGIN |
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
extern XClassHint *XAllocClassHint ( |
| 367 |
void |
| 368 |
); |
| 369 |
|
| 370 |
extern XIconSize *XAllocIconSize ( |
| 371 |
void |
| 372 |
); |
| 373 |
|
| 374 |
extern XSizeHints *XAllocSizeHints ( |
| 375 |
void |
| 376 |
); |
| 377 |
|
| 378 |
extern XStandardColormap *XAllocStandardColormap ( |
| 379 |
void |
| 380 |
); |
| 381 |
|
| 382 |
extern XWMHints *XAllocWMHints ( |
| 383 |
void |
| 384 |
); |
| 385 |
|
| 386 |
extern int XClipBox( |
| 387 |
Region , |
| 388 |
XRectangle* |
| 389 |
); |
| 390 |
|
| 391 |
extern Region XCreateRegion( |
| 392 |
void |
| 393 |
); |
| 394 |
|
| 395 |
extern const char *XDefaultString (void); |
| 396 |
|
| 397 |
extern int XDeleteContext( |
| 398 |
Display* , |
| 399 |
XID , |
| 400 |
XContext |
| 401 |
); |
| 402 |
|
| 403 |
extern int XDestroyRegion( |
| 404 |
Region |
| 405 |
); |
| 406 |
|
| 407 |
extern int XEmptyRegion( |
| 408 |
Region |
| 409 |
); |
| 410 |
|
| 411 |
extern int XEqualRegion( |
| 412 |
Region , |
| 413 |
Region |
| 414 |
); |
| 415 |
|
| 416 |
extern int XFindContext( |
| 417 |
Display* , |
| 418 |
XID , |
| 419 |
XContext , |
| 420 |
XPointer* |
| 421 |
); |
| 422 |
|
| 423 |
extern Status XGetClassHint( |
| 424 |
Display* , |
| 425 |
Window , |
| 426 |
XClassHint* |
| 427 |
); |
| 428 |
|
| 429 |
extern Status XGetIconSizes( |
| 430 |
Display* , |
| 431 |
Window , |
| 432 |
XIconSize** , |
| 433 |
int* |
| 434 |
); |
| 435 |
|
| 436 |
extern Status XGetNormalHints( |
| 437 |
Display* , |
| 438 |
Window , |
| 439 |
XSizeHints* |
| 440 |
); |
| 441 |
|
| 442 |
extern Status XGetRGBColormaps( |
| 443 |
Display* , |
| 444 |
Window , |
| 445 |
XStandardColormap** , |
| 446 |
int* , |
| 447 |
Atom |
| 448 |
); |
| 449 |
|
| 450 |
extern Status XGetSizeHints( |
| 451 |
Display* , |
| 452 |
Window , |
| 453 |
XSizeHints* , |
| 454 |
Atom |
| 455 |
); |
| 456 |
|
| 457 |
extern Status XGetStandardColormap( |
| 458 |
Display* , |
| 459 |
Window , |
| 460 |
XStandardColormap* , |
| 461 |
Atom |
| 462 |
); |
| 463 |
|
| 464 |
extern Status XGetTextProperty( |
| 465 |
Display* , |
| 466 |
Window , |
| 467 |
XTextProperty* , |
| 468 |
Atom |
| 469 |
); |
| 470 |
|
| 471 |
extern XVisualInfo *XGetVisualInfo( |
| 472 |
Display* , |
| 473 |
long , |
| 474 |
XVisualInfo* , |
| 475 |
int* |
| 476 |
); |
| 477 |
|
| 478 |
extern Status XGetWMClientMachine( |
| 479 |
Display* , |
| 480 |
Window , |
| 481 |
XTextProperty* |
| 482 |
); |
| 483 |
|
| 484 |
extern XWMHints *XGetWMHints( |
| 485 |
Display* , |
| 486 |
Window |
| 487 |
); |
| 488 |
|
| 489 |
extern Status XGetWMIconName( |
| 490 |
Display* , |
| 491 |
Window , |
| 492 |
XTextProperty* |
| 493 |
); |
| 494 |
|
| 495 |
extern Status XGetWMName( |
| 496 |
Display* , |
| 497 |
Window , |
| 498 |
XTextProperty* |
| 499 |
); |
| 500 |
|
| 501 |
extern Status XGetWMNormalHints( |
| 502 |
Display* , |
| 503 |
Window , |
| 504 |
XSizeHints* , |
| 505 |
long* |
| 506 |
); |
| 507 |
|
| 508 |
extern Status XGetWMSizeHints( |
| 509 |
Display* , |
| 510 |
Window , |
| 511 |
XSizeHints* , |
| 512 |
long* , |
| 513 |
Atom |
| 514 |
); |
| 515 |
|
| 516 |
extern Status XGetZoomHints( |
| 517 |
Display* , |
| 518 |
Window , |
| 519 |
XSizeHints* |
| 520 |
); |
| 521 |
|
| 522 |
extern int XIntersectRegion( |
| 523 |
Region , |
| 524 |
Region , |
| 525 |
Region |
| 526 |
); |
| 527 |
|
| 528 |
extern void XConvertCase( |
| 529 |
KeySym , |
| 530 |
KeySym* , |
| 531 |
KeySym* |
| 532 |
); |
| 533 |
|
| 534 |
extern int XLookupString( |
| 535 |
XKeyEvent* , |
| 536 |
char* , |
| 537 |
int , |
| 538 |
KeySym* , |
| 539 |
XComposeStatus* |
| 540 |
); |
| 541 |
|
| 542 |
extern Status XMatchVisualInfo( |
| 543 |
Display* , |
| 544 |
int , |
| 545 |
int , |
| 546 |
int , |
| 547 |
XVisualInfo* |
| 548 |
); |
| 549 |
|
| 550 |
extern int XOffsetRegion( |
| 551 |
Region , |
| 552 |
int , |
| 553 |
int |
| 554 |
); |
| 555 |
|
| 556 |
extern Bool XPointInRegion( |
| 557 |
Region , |
| 558 |
int , |
| 559 |
int |
| 560 |
); |
| 561 |
|
| 562 |
extern Region XPolygonRegion( |
| 563 |
XPoint* , |
| 564 |
int , |
| 565 |
int |
| 566 |
); |
| 567 |
|
| 568 |
extern int XRectInRegion( |
| 569 |
Region , |
| 570 |
int , |
| 571 |
int , |
| 572 |
unsigned int , |
| 573 |
unsigned int |
| 574 |
); |
| 575 |
|
| 576 |
extern int XSaveContext( |
| 577 |
Display* , |
| 578 |
XID , |
| 579 |
XContext , |
| 580 |
_Xconst char* |
| 581 |
); |
| 582 |
|
| 583 |
extern int XSetClassHint( |
| 584 |
Display* , |
| 585 |
Window , |
| 586 |
XClassHint* |
| 587 |
); |
| 588 |
|
| 589 |
extern int XSetIconSizes( |
| 590 |
Display* , |
| 591 |
Window , |
| 592 |
XIconSize* , |
| 593 |
int |
| 594 |
); |
| 595 |
|
| 596 |
extern int XSetNormalHints( |
| 597 |
Display* , |
| 598 |
Window , |
| 599 |
XSizeHints* |
| 600 |
); |
| 601 |
|
| 602 |
extern void XSetRGBColormaps( |
| 603 |
Display* , |
| 604 |
Window , |
| 605 |
XStandardColormap* , |
| 606 |
int , |
| 607 |
Atom |
| 608 |
); |
| 609 |
|
| 610 |
extern int XSetSizeHints( |
| 611 |
Display* , |
| 612 |
Window , |
| 613 |
XSizeHints* , |
| 614 |
Atom |
| 615 |
); |
| 616 |
|
| 617 |
extern int XSetStandardProperties( |
| 618 |
Display* , |
| 619 |
Window , |
| 620 |
_Xconst char* , |
| 621 |
_Xconst char* , |
| 622 |
Pixmap , |
| 623 |
char** , |
| 624 |
int , |
| 625 |
XSizeHints* |
| 626 |
); |
| 627 |
|
| 628 |
extern void XSetTextProperty( |
| 629 |
Display* , |
| 630 |
Window , |
| 631 |
XTextProperty* , |
| 632 |
Atom |
| 633 |
); |
| 634 |
|
| 635 |
extern void XSetWMClientMachine( |
| 636 |
Display* , |
| 637 |
Window , |
| 638 |
XTextProperty* |
| 639 |
); |
| 640 |
|
| 641 |
extern int XSetWMHints( |
| 642 |
Display* , |
| 643 |
Window , |
| 644 |
XWMHints* |
| 645 |
); |
| 646 |
|
| 647 |
extern void XSetWMIconName( |
| 648 |
Display* , |
| 649 |
Window , |
| 650 |
XTextProperty* |
| 651 |
); |
| 652 |
|
| 653 |
extern void XSetWMName( |
| 654 |
Display* , |
| 655 |
Window , |
| 656 |
XTextProperty* |
| 657 |
); |
| 658 |
|
| 659 |
extern void XSetWMNormalHints( |
| 660 |
Display* , |
| 661 |
Window , |
| 662 |
XSizeHints* |
| 663 |
); |
| 664 |
|
| 665 |
extern void XSetWMProperties( |
| 666 |
Display* , |
| 667 |
Window , |
| 668 |
XTextProperty* , |
| 669 |
XTextProperty* , |
| 670 |
char** , |
| 671 |
int , |
| 672 |
XSizeHints* , |
| 673 |
XWMHints* , |
| 674 |
XClassHint* |
| 675 |
); |
| 676 |
|
| 677 |
extern void XmbSetWMProperties( |
| 678 |
Display* , |
| 679 |
Window , |
| 680 |
_Xconst char* , |
| 681 |
_Xconst char* , |
| 682 |
char** , |
| 683 |
int , |
| 684 |
XSizeHints* , |
| 685 |
XWMHints* , |
| 686 |
XClassHint* |
| 687 |
); |
| 688 |
|
| 689 |
extern void Xutf8SetWMProperties( |
| 690 |
Display* , |
| 691 |
Window , |
| 692 |
_Xconst char* , |
| 693 |
_Xconst char* , |
| 694 |
char** , |
| 695 |
int , |
| 696 |
XSizeHints* , |
| 697 |
XWMHints* , |
| 698 |
XClassHint* |
| 699 |
); |
| 700 |
|
| 701 |
extern void XSetWMSizeHints( |
| 702 |
Display* , |
| 703 |
Window , |
| 704 |
XSizeHints* , |
| 705 |
Atom |
| 706 |
); |
| 707 |
|
| 708 |
extern int XSetRegion( |
| 709 |
Display* , |
| 710 |
GC , |
| 711 |
Region |
| 712 |
); |
| 713 |
|
| 714 |
extern void XSetStandardColormap( |
| 715 |
Display* , |
| 716 |
Window , |
| 717 |
XStandardColormap* , |
| 718 |
Atom |
| 719 |
); |
| 720 |
|
| 721 |
extern int XSetZoomHints( |
| 722 |
Display* , |
| 723 |
Window , |
| 724 |
XSizeHints* |
| 725 |
); |
| 726 |
|
| 727 |
extern int XShrinkRegion( |
| 728 |
Region , |
| 729 |
int , |
| 730 |
int |
| 731 |
); |
| 732 |
|
| 733 |
extern Status XStringListToTextProperty( |
| 734 |
char** , |
| 735 |
int , |
| 736 |
XTextProperty* |
| 737 |
); |
| 738 |
|
| 739 |
extern int XSubtractRegion( |
| 740 |
Region , |
| 741 |
Region , |
| 742 |
Region |
| 743 |
); |
| 744 |
|
| 745 |
extern int XmbTextListToTextProperty( |
| 746 |
Display* display, |
| 747 |
char** list, |
| 748 |
int count, |
| 749 |
XICCEncodingStyle style, |
| 750 |
XTextProperty* text_prop_return |
| 751 |
); |
| 752 |
|
| 753 |
extern int XwcTextListToTextProperty( |
| 754 |
Display* display, |
| 755 |
wchar_t** list, |
| 756 |
int count, |
| 757 |
XICCEncodingStyle style, |
| 758 |
XTextProperty* text_prop_return |
| 759 |
); |
| 760 |
|
| 761 |
extern int Xutf8TextListToTextProperty( |
| 762 |
Display* display, |
| 763 |
char** list, |
| 764 |
int count, |
| 765 |
XICCEncodingStyle style, |
| 766 |
XTextProperty* text_prop_return |
| 767 |
); |
| 768 |
|
| 769 |
extern void XwcFreeStringList( |
| 770 |
wchar_t** list |
| 771 |
); |
| 772 |
|
| 773 |
extern Status XTextPropertyToStringList( |
| 774 |
XTextProperty* , |
| 775 |
char*** , |
| 776 |
int* |
| 777 |
); |
| 778 |
|
| 779 |
extern int XmbTextPropertyToTextList( |
| 780 |
Display* display, |
| 781 |
const XTextProperty* text_prop, |
| 782 |
char*** list_return, |
| 783 |
int* count_return |
| 784 |
); |
| 785 |
|
| 786 |
extern int XwcTextPropertyToTextList( |
| 787 |
Display* display, |
| 788 |
const XTextProperty* text_prop, |
| 789 |
wchar_t*** list_return, |
| 790 |
int* count_return |
| 791 |
); |
| 792 |
|
| 793 |
extern int Xutf8TextPropertyToTextList( |
| 794 |
Display* display, |
| 795 |
const XTextProperty* text_prop, |
| 796 |
char*** list_return, |
| 797 |
int* count_return |
| 798 |
); |
| 799 |
|
| 800 |
extern int XUnionRectWithRegion( |
| 801 |
XRectangle* , |
| 802 |
Region , |
| 803 |
Region |
| 804 |
); |
| 805 |
|
| 806 |
extern int XUnionRegion( |
| 807 |
Region , |
| 808 |
Region , |
| 809 |
Region |
| 810 |
); |
| 811 |
|
| 812 |
extern int XWMGeometry( |
| 813 |
Display* , |
| 814 |
int , |
| 815 |
_Xconst char* , |
| 816 |
_Xconst char* , |
| 817 |
unsigned int , |
| 818 |
XSizeHints* , |
| 819 |
int* , |
| 820 |
int* , |
| 821 |
int* , |
| 822 |
int* , |
| 823 |
int* |
| 824 |
); |
| 825 |
|
| 826 |
extern int XXorRegion( |
| 827 |
Region , |
| 828 |
Region , |
| 829 |
Region |
| 830 |
); |
| 831 |
|
| 832 |
#ifdef __clang__ |
| 833 |
#pragma clang diagnostic pop |
| 834 |
#endif |
| 835 |
|
| 836 |
_XFUNCPROTOEND |
| 837 |
|
| 838 |
#endif |