PageRenderTime 28ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/SN-NG4.1/tk/xlib/X11/Xutil.h

https://gitlab.com/OpenSourceMirror/sourcenav
C Header | 855 lines | 655 code | 117 blank | 83 comment | 11 complexity | c2f266a48546f7ca10e80a80285fa883 MD5 | raw file
  1. /* $XConsortium: Xutil.h,v 11.73 91/07/30 16:21:37 rws Exp $ */
  2. /***********************************************************
  3. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  4. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  5. All Rights Reserved
  6. Permission to use, copy, modify, and distribute this software and its
  7. documentation for any purpose and without fee is hereby granted,
  8. provided that the above copyright notice appear in all copies and that
  9. both that copyright notice and this permission notice appear in
  10. supporting documentation, and that the names of Digital or MIT not be
  11. used in advertising or publicity pertaining to distribution of the
  12. software without specific, written prior permission.
  13. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  14. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  15. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  16. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  17. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  18. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  19. SOFTWARE.
  20. ******************************************************************/
  21. #ifndef _XUTIL_H_
  22. #define _XUTIL_H_
  23. /* You must include <X11/Xlib.h> before including this file */
  24. #ifdef MAC_TCL
  25. # define Region XRegion
  26. #endif
  27. /*
  28. * Bitmask returned by XParseGeometry(). Each bit tells if the corresponding
  29. * value (x, y, width, height) was found in the parsed string.
  30. */
  31. #define NoValue 0x0000
  32. #define XValue 0x0001
  33. #define YValue 0x0002
  34. #define WidthValue 0x0004
  35. #define HeightValue 0x0008
  36. #define AllValues 0x000F
  37. #define XNegative 0x0010
  38. #define YNegative 0x0020
  39. /*
  40. * new version containing base_width, base_height, and win_gravity fields;
  41. * used with WM_NORMAL_HINTS.
  42. */
  43. typedef struct {
  44. long flags; /* marks which fields in this structure are defined */
  45. int x, y; /* obsolete for new window mgrs, but clients */
  46. int width, height; /* should set so old wm's don't mess up */
  47. int min_width, min_height;
  48. int max_width, max_height;
  49. int width_inc, height_inc;
  50. struct {
  51. int x; /* numerator */
  52. int y; /* denominator */
  53. } min_aspect, max_aspect;
  54. int base_width, base_height; /* added by ICCCM version 1 */
  55. int win_gravity; /* added by ICCCM version 1 */
  56. } XSizeHints;
  57. /*
  58. * The next block of definitions are for window manager properties that
  59. * clients and applications use for communication.
  60. */
  61. /* flags argument in size hints */
  62. #define USPosition (1L << 0) /* user specified x, y */
  63. #define USSize (1L << 1) /* user specified width, height */
  64. #define PPosition (1L << 2) /* program specified position */
  65. #define PSize (1L << 3) /* program specified size */
  66. #define PMinSize (1L << 4) /* program specified minimum size */
  67. #define PMaxSize (1L << 5) /* program specified maximum size */
  68. #define PResizeInc (1L << 6) /* program specified resize increments */
  69. #define PAspect (1L << 7) /* program specified min and max aspect ratios */
  70. #define PBaseSize (1L << 8) /* program specified base for incrementing */
  71. #define PWinGravity (1L << 9) /* program specified window gravity */
  72. /* obsolete */
  73. #define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)
  74. typedef struct {
  75. long flags; /* marks which fields in this structure are defined */
  76. Bool input; /* does this application rely on the window manager to
  77. get keyboard input? */
  78. int initial_state; /* see below */
  79. Pixmap icon_pixmap; /* pixmap to be used as icon */
  80. Window icon_window; /* window to be used as icon */
  81. int icon_x, icon_y; /* initial position of icon */
  82. Pixmap icon_mask; /* icon mask bitmap */
  83. XID window_group; /* id of related window group */
  84. /* this structure may be extended in the future */
  85. } XWMHints;
  86. /* definition for flags of XWMHints */
  87. #define InputHint (1L << 0)
  88. #define StateHint (1L << 1)
  89. #define IconPixmapHint (1L << 2)
  90. #define IconWindowHint (1L << 3)
  91. #define IconPositionHint (1L << 4)
  92. #define IconMaskHint (1L << 5)
  93. #define WindowGroupHint (1L << 6)
  94. #define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \
  95. IconPositionHint|IconMaskHint|WindowGroupHint)
  96. /* definitions for initial window state */
  97. #define WithdrawnState 0 /* for windows that are not mapped */
  98. #define NormalState 1 /* most applications want to start this way */
  99. #define IconicState 3 /* application wants to start as an icon */
  100. /*
  101. * Obsolete states no longer defined by ICCCM
  102. */
  103. #define DontCareState 0 /* don't know or care */
  104. #define ZoomState 2 /* application wants to start zoomed */
  105. #define InactiveState 4 /* application believes it is seldom used; */
  106. /* some wm's may put it on inactive menu */
  107. /*
  108. * new structure for manipulating TEXT properties; used with WM_NAME,
  109. * WM_ICON_NAME, WM_CLIENT_MACHINE, and WM_COMMAND.
  110. */
  111. typedef struct {
  112. unsigned char *value; /* same as Property routines */
  113. Atom encoding; /* prop type */
  114. int format; /* prop data format: 8, 16, or 32 */
  115. unsigned long nitems; /* number of data items in value */
  116. } XTextProperty;
  117. #define XNoMemory -1
  118. #define XLocaleNotSupported -2
  119. #define XConverterNotFound -3
  120. typedef enum {
  121. XStringStyle, /* STRING */
  122. XCompoundTextStyle, /* COMPOUND_TEXT */
  123. XTextStyle, /* text in owner's encoding (current locale)*/
  124. XStdICCTextStyle /* STRING, else COMPOUND_TEXT */
  125. } XICCEncodingStyle;
  126. typedef struct {
  127. int min_width, min_height;
  128. int max_width, max_height;
  129. int width_inc, height_inc;
  130. } XIconSize;
  131. typedef struct {
  132. char *res_name;
  133. char *res_class;
  134. } XClassHint;
  135. /*
  136. * These macros are used to give some sugar to the image routines so that
  137. * naive people are more comfortable with them.
  138. */
  139. #define XDestroyImage(ximage) \
  140. ((*((ximage)->f.destroy_image))((ximage)))
  141. #define XGetPixel(ximage, x, y) \
  142. ((*((ximage)->f.get_pixel))((ximage), (x), (y)))
  143. #define XPutPixel(ximage, x, y, pixel) \
  144. ((*((ximage)->f.put_pixel))((ximage), (x), (y), (pixel)))
  145. #define XSubImage(ximage, x, y, width, height) \
  146. ((*((ximage)->f.sub_image))((ximage), (x), (y), (width), (height)))
  147. #define XAddPixel(ximage, value) \
  148. ((*((ximage)->f.add_pixel))((ximage), (value)))
  149. /*
  150. * Compose sequence status structure, used in calling XLookupString.
  151. */
  152. typedef struct _XComposeStatus {
  153. XPointer compose_ptr; /* state table pointer */
  154. int chars_matched; /* match state */
  155. } XComposeStatus;
  156. /*
  157. * Keysym macros, used on Keysyms to test for classes of symbols
  158. */
  159. #define IsKeypadKey(keysym) \
  160. (((unsigned)(keysym) >= XK_KP_Space) && ((unsigned)(keysym) <= XK_KP_Equal))
  161. #define IsCursorKey(keysym) \
  162. (((unsigned)(keysym) >= XK_Home) && ((unsigned)(keysym) < XK_Select))
  163. #define IsPFKey(keysym) \
  164. (((unsigned)(keysym) >= XK_KP_F1) && ((unsigned)(keysym) <= XK_KP_F4))
  165. #define IsFunctionKey(keysym) \
  166. (((unsigned)(keysym) >= XK_F1) && ((unsigned)(keysym) <= XK_F35))
  167. #define IsMiscFunctionKey(keysym) \
  168. (((unsigned)(keysym) >= XK_Select) && ((unsigned)(keysym) <= XK_Break))
  169. #define IsModifierKey(keysym) \
  170. ((((unsigned)(keysym) >= XK_Shift_L) && ((unsigned)(keysym) <= XK_Hyper_R)) \
  171. || ((unsigned)(keysym) == XK_Mode_switch) \
  172. || ((unsigned)(keysym) == XK_Num_Lock))
  173. /*
  174. * opaque reference to Region data type
  175. */
  176. typedef struct _XRegion *Region;
  177. /* Return values from XRectInRegion() */
  178. #define RectangleOut 0
  179. #define RectangleIn 1
  180. #define RectanglePart 2
  181. /*
  182. * Information used by the visual utility routines to find desired visual
  183. * type from the many visuals a display may support.
  184. */
  185. typedef struct {
  186. Visual *visual;
  187. VisualID visualid;
  188. int screen;
  189. int depth;
  190. #if defined(__cplusplus) || defined(c_plusplus)
  191. int c_class; /* C++ */
  192. #else
  193. int class;
  194. #endif
  195. unsigned long red_mask;
  196. unsigned long green_mask;
  197. unsigned long blue_mask;
  198. int colormap_size;
  199. int bits_per_rgb;
  200. } XVisualInfo;
  201. #define VisualNoMask 0x0
  202. #define VisualIDMask 0x1
  203. #define VisualScreenMask 0x2
  204. #define VisualDepthMask 0x4
  205. #define VisualClassMask 0x8
  206. #define VisualRedMaskMask 0x10
  207. #define VisualGreenMaskMask 0x20
  208. #define VisualBlueMaskMask 0x40
  209. #define VisualColormapSizeMask 0x80
  210. #define VisualBitsPerRGBMask 0x100
  211. #define VisualAllMask 0x1FF
  212. /*
  213. * This defines a window manager property that clients may use to
  214. * share standard color maps of type RGB_COLOR_MAP:
  215. */
  216. typedef struct {
  217. Colormap colormap;
  218. unsigned long red_max;
  219. unsigned long red_mult;
  220. unsigned long green_max;
  221. unsigned long green_mult;
  222. unsigned long blue_max;
  223. unsigned long blue_mult;
  224. unsigned long base_pixel;
  225. VisualID visualid; /* added by ICCCM version 1 */
  226. XID killid; /* added by ICCCM version 1 */
  227. } XStandardColormap;
  228. #define ReleaseByFreeingColormap ((XID) 1L) /* for killid field above */
  229. /*
  230. * return codes for XReadBitmapFile and XWriteBitmapFile
  231. */
  232. #define BitmapSuccess 0
  233. #define BitmapOpenFailed 1
  234. #define BitmapFileInvalid 2
  235. #define BitmapNoMemory 3
  236. /****************************************************************
  237. *
  238. * Context Management
  239. *
  240. ****************************************************************/
  241. /* Associative lookup table return codes */
  242. #define XCSUCCESS 0 /* No error. */
  243. #define XCNOMEM 1 /* Out of memory */
  244. #define XCNOENT 2 /* No entry in table */
  245. typedef int XContext;
  246. #define XUniqueContext() ((XContext) XrmUniqueQuark())
  247. #define XStringToContext(string) ((XContext) XrmStringToQuark(string))
  248. _XFUNCPROTOBEGIN
  249. /* The following declarations are alphabetized. */
  250. extern XClassHint *XAllocClassHint (
  251. #if NeedFunctionPrototypes
  252. void
  253. #endif
  254. );
  255. extern XIconSize *XAllocIconSize (
  256. #if NeedFunctionPrototypes
  257. void
  258. #endif
  259. );
  260. extern XSizeHints *XAllocSizeHints (
  261. #if NeedFunctionPrototypes
  262. void
  263. #endif
  264. );
  265. extern XStandardColormap *XAllocStandardColormap (
  266. #if NeedFunctionPrototypes
  267. void
  268. #endif
  269. );
  270. extern XWMHints *XAllocWMHints (
  271. #if NeedFunctionPrototypes
  272. void
  273. #endif
  274. );
  275. extern void XClipBox(
  276. #if NeedFunctionPrototypes
  277. Region /* r */,
  278. XRectangle* /* rect_return */
  279. #endif
  280. );
  281. extern Region XCreateRegion(
  282. #if NeedFunctionPrototypes
  283. void
  284. #endif
  285. );
  286. extern char *XDefaultString(
  287. #if NeedFunctionPrototypes
  288. void
  289. #endif
  290. );
  291. extern int XDeleteContext(
  292. #if NeedFunctionPrototypes
  293. Display* /* display */,
  294. XID /* rid */,
  295. XContext /* context */
  296. #endif
  297. );
  298. extern void XDestroyRegion(
  299. #if NeedFunctionPrototypes
  300. Region /* r */
  301. #endif
  302. );
  303. extern Bool XEmptyRegion(
  304. #if NeedFunctionPrototypes
  305. Region /* r */
  306. #endif
  307. );
  308. extern void XEqualRegion(
  309. #if NeedFunctionPrototypes
  310. Region /* r1 */,
  311. Region /* r2 */
  312. #endif
  313. );
  314. extern int XFindContext(
  315. #if NeedFunctionPrototypes
  316. Display* /* display */,
  317. XID /* rid */,
  318. XContext /* context */,
  319. XPointer* /* data_return */
  320. #endif
  321. );
  322. extern Status XGetClassHint(
  323. #if NeedFunctionPrototypes
  324. Display* /* display */,
  325. Window /* w */,
  326. XClassHint* /* class_hints_return */
  327. #endif
  328. );
  329. extern Status XGetIconSizes(
  330. #if NeedFunctionPrototypes
  331. Display* /* display */,
  332. Window /* w */,
  333. XIconSize** /* size_list_return */,
  334. int* /* count_return */
  335. #endif
  336. );
  337. extern Status XGetNormalHints(
  338. #if NeedFunctionPrototypes
  339. Display* /* display */,
  340. Window /* w */,
  341. XSizeHints* /* hints_return */
  342. #endif
  343. );
  344. extern Status XGetRGBColormaps(
  345. #if NeedFunctionPrototypes
  346. Display* /* display */,
  347. Window /* w */,
  348. XStandardColormap** /* stdcmap_return */,
  349. int* /* count_return */,
  350. Atom /* property */
  351. #endif
  352. );
  353. extern Status XGetSizeHints(
  354. #if NeedFunctionPrototypes
  355. Display* /* display */,
  356. Window /* w */,
  357. XSizeHints* /* hints_return */,
  358. Atom /* property */
  359. #endif
  360. );
  361. extern Status XGetStandardColormap(
  362. #if NeedFunctionPrototypes
  363. Display* /* display */,
  364. Window /* w */,
  365. XStandardColormap* /* colormap_return */,
  366. Atom /* property */
  367. #endif
  368. );
  369. extern Status XGetTextProperty(
  370. #if NeedFunctionPrototypes
  371. Display* /* display */,
  372. Window /* window */,
  373. XTextProperty* /* text_prop_return */,
  374. Atom /* property */
  375. #endif
  376. );
  377. extern Status XGetWMClientMachine(
  378. #if NeedFunctionPrototypes
  379. Display* /* display */,
  380. Window /* w */,
  381. XTextProperty* /* text_prop_return */
  382. #endif
  383. );
  384. extern XWMHints *XGetWMHints(
  385. #if NeedFunctionPrototypes
  386. Display* /* display */,
  387. Window /* w */
  388. #endif
  389. );
  390. extern Status XGetWMIconName(
  391. #if NeedFunctionPrototypes
  392. Display* /* display */,
  393. Window /* w */,
  394. XTextProperty* /* text_prop_return */
  395. #endif
  396. );
  397. extern Status XGetWMName(
  398. #if NeedFunctionPrototypes
  399. Display* /* display */,
  400. Window /* w */,
  401. XTextProperty* /* text_prop_return */
  402. #endif
  403. );
  404. extern Status XGetWMNormalHints(
  405. #if NeedFunctionPrototypes
  406. Display* /* display */,
  407. Window /* w */,
  408. XSizeHints* /* hints_return */,
  409. long* /* supplied_return */
  410. #endif
  411. );
  412. extern Status XGetWMSizeHints(
  413. #if NeedFunctionPrototypes
  414. Display* /* display */,
  415. Window /* w */,
  416. XSizeHints* /* hints_return */,
  417. long* /* supplied_return */,
  418. Atom /* property */
  419. #endif
  420. );
  421. extern Status XGetZoomHints(
  422. #if NeedFunctionPrototypes
  423. Display* /* display */,
  424. Window /* w */,
  425. XSizeHints* /* zhints_return */
  426. #endif
  427. );
  428. extern void XIntersectRegion(
  429. #if NeedFunctionPrototypes
  430. Region /* sra */,
  431. Region /* srb */,
  432. Region /* dr_return */
  433. #endif
  434. );
  435. extern int XLookupString(
  436. #if NeedFunctionPrototypes
  437. XKeyEvent* /* event_struct */,
  438. char* /* buffer_return */,
  439. int /* bytes_buffer */,
  440. KeySym* /* keysym_return */,
  441. XComposeStatus* /* status_in_out */
  442. #endif
  443. );
  444. extern Status XMatchVisualInfo(
  445. #if NeedFunctionPrototypes
  446. Display* /* display */,
  447. int /* screen */,
  448. int /* depth */,
  449. int /* class */,
  450. XVisualInfo* /* vinfo_return */
  451. #endif
  452. );
  453. extern void XOffsetRegion(
  454. #if NeedFunctionPrototypes
  455. Region /* r */,
  456. int /* dx */,
  457. int /* dy */
  458. #endif
  459. );
  460. extern Bool XPointInRegion(
  461. #if NeedFunctionPrototypes
  462. Region /* r */,
  463. int /* x */,
  464. int /* y */
  465. #endif
  466. );
  467. extern Region XPolygonRegion(
  468. #if NeedFunctionPrototypes
  469. XPoint* /* points */,
  470. int /* n */,
  471. int /* fill_rule */
  472. #endif
  473. );
  474. extern int XRectInRegion(
  475. #if NeedFunctionPrototypes
  476. Region /* r */,
  477. int /* x */,
  478. int /* y */,
  479. unsigned int /* width */,
  480. unsigned int /* height */
  481. #endif
  482. );
  483. extern int XSaveContext(
  484. #if NeedFunctionPrototypes
  485. Display* /* display */,
  486. XID /* rid */,
  487. XContext /* context */,
  488. _Xconst char* /* data */
  489. #endif
  490. );
  491. extern void XSetClassHint(
  492. #if NeedFunctionPrototypes
  493. Display* /* display */,
  494. Window /* w */,
  495. XClassHint* /* class_hints */
  496. #endif
  497. );
  498. extern void XSetIconSizes(
  499. #if NeedFunctionPrototypes
  500. Display* /* display */,
  501. Window /* w */,
  502. XIconSize* /* size_list */,
  503. int /* count */
  504. #endif
  505. );
  506. extern void XSetNormalHints(
  507. #if NeedFunctionPrototypes
  508. Display* /* display */,
  509. Window /* w */,
  510. XSizeHints* /* hints */
  511. #endif
  512. );
  513. extern void XSetRGBColormaps(
  514. #if NeedFunctionPrototypes
  515. Display* /* display */,
  516. Window /* w */,
  517. XStandardColormap* /* stdcmaps */,
  518. int /* count */,
  519. Atom /* property */
  520. #endif
  521. );
  522. extern void XSetSizeHints(
  523. #if NeedFunctionPrototypes
  524. Display* /* display */,
  525. Window /* w */,
  526. XSizeHints* /* hints */,
  527. Atom /* property */
  528. #endif
  529. );
  530. extern void XSetStandardProperties(
  531. #if NeedFunctionPrototypes
  532. Display* /* display */,
  533. Window /* w */,
  534. _Xconst char* /* window_name */,
  535. _Xconst char* /* icon_name */,
  536. Pixmap /* icon_pixmap */,
  537. char** /* argv */,
  538. int /* argc */,
  539. XSizeHints* /* hints */
  540. #endif
  541. );
  542. extern void XSetTextProperty(
  543. #if NeedFunctionPrototypes
  544. Display* /* display */,
  545. Window /* w */,
  546. XTextProperty* /* text_prop */,
  547. Atom /* property */
  548. #endif
  549. );
  550. extern void XSetWMHints(
  551. #if NeedFunctionPrototypes
  552. Display* /* display */,
  553. Window /* w */,
  554. XWMHints* /* wm_hints */
  555. #endif
  556. );
  557. extern void XSetWMIconName(
  558. #if NeedFunctionPrototypes
  559. Display* /* display */,
  560. Window /* w */,
  561. XTextProperty* /* text_prop */
  562. #endif
  563. );
  564. extern void XSetWMName(
  565. #if NeedFunctionPrototypes
  566. Display* /* display */,
  567. Window /* w */,
  568. XTextProperty* /* text_prop */
  569. #endif
  570. );
  571. extern void XSetWMNormalHints(
  572. #if NeedFunctionPrototypes
  573. Display* /* display */,
  574. Window /* w */,
  575. XSizeHints* /* hints */
  576. #endif
  577. );
  578. extern void XSetWMProperties(
  579. #if NeedFunctionPrototypes
  580. Display* /* display */,
  581. Window /* w */,
  582. XTextProperty* /* window_name */,
  583. XTextProperty* /* icon_name */,
  584. char** /* argv */,
  585. int /* argc */,
  586. XSizeHints* /* normal_hints */,
  587. XWMHints* /* wm_hints */,
  588. XClassHint* /* class_hints */
  589. #endif
  590. );
  591. extern void XmbSetWMProperties(
  592. #if NeedFunctionPrototypes
  593. Display* /* display */,
  594. Window /* w */,
  595. _Xconst char* /* window_name */,
  596. _Xconst char* /* icon_name */,
  597. char** /* argv */,
  598. int /* argc */,
  599. XSizeHints* /* normal_hints */,
  600. XWMHints* /* wm_hints */,
  601. XClassHint* /* class_hints */
  602. #endif
  603. );
  604. extern void XSetWMSizeHints(
  605. #if NeedFunctionPrototypes
  606. Display* /* display */,
  607. Window /* w */,
  608. XSizeHints* /* hints */,
  609. Atom /* property */
  610. #endif
  611. );
  612. extern void XSetRegion(
  613. #if NeedFunctionPrototypes
  614. Display* /* display */,
  615. GC /* gc */,
  616. Region /* r */
  617. #endif
  618. );
  619. extern void XSetStandardColormap(
  620. #if NeedFunctionPrototypes
  621. Display* /* display */,
  622. Window /* w */,
  623. XStandardColormap* /* colormap */,
  624. Atom /* property */
  625. #endif
  626. );
  627. extern void XSetZoomHints(
  628. #if NeedFunctionPrototypes
  629. Display* /* display */,
  630. Window /* w */,
  631. XSizeHints* /* zhints */
  632. #endif
  633. );
  634. extern void XShrinkRegion(
  635. #if NeedFunctionPrototypes
  636. Region /* r */,
  637. int /* dx */,
  638. int /* dy */
  639. #endif
  640. );
  641. extern void XSubtractRegion(
  642. #if NeedFunctionPrototypes
  643. Region /* sra */,
  644. Region /* srb */,
  645. Region /* dr_return */
  646. #endif
  647. );
  648. extern int XmbTextListToTextProperty(
  649. #if NeedFunctionPrototypes
  650. Display* /* display */,
  651. char** /* list */,
  652. int /* count */,
  653. XICCEncodingStyle /* style */,
  654. XTextProperty* /* text_prop_return */
  655. #endif
  656. );
  657. extern int XwcTextListToTextProperty(
  658. #if NeedFunctionPrototypes
  659. Display* /* display */,
  660. wchar_t** /* list */,
  661. int /* count */,
  662. XICCEncodingStyle /* style */,
  663. XTextProperty* /* text_prop_return */
  664. #endif
  665. );
  666. extern void XwcFreeStringList(
  667. #if NeedFunctionPrototypes
  668. wchar_t** /* list */
  669. #endif
  670. );
  671. extern Status XTextPropertyToStringList(
  672. #if NeedFunctionPrototypes
  673. XTextProperty* /* text_prop */,
  674. char*** /* list_return */,
  675. int* /* count_return */
  676. #endif
  677. );
  678. extern int XmbTextPropertyToTextList(
  679. #if NeedFunctionPrototypes
  680. Display* /* display */,
  681. XTextProperty* /* text_prop */,
  682. char*** /* list_return */,
  683. int* /* count_return */
  684. #endif
  685. );
  686. extern int XwcTextPropertyToTextList(
  687. #if NeedFunctionPrototypes
  688. Display* /* display */,
  689. XTextProperty* /* text_prop */,
  690. wchar_t*** /* list_return */,
  691. int* /* count_return */
  692. #endif
  693. );
  694. extern void XUnionRectWithRegion(
  695. #if NeedFunctionPrototypes
  696. XRectangle* /* rectangle */,
  697. Region /* src_region */,
  698. Region /* dest_region_return */
  699. #endif
  700. );
  701. extern void XUnionRegion(
  702. #if NeedFunctionPrototypes
  703. Region /* sra */,
  704. Region /* srb */,
  705. Region /* dr_return */
  706. #endif
  707. );
  708. extern int XWMGeometry(
  709. #if NeedFunctionPrototypes
  710. Display* /* display */,
  711. int /* screen_number */,
  712. _Xconst char* /* user_geometry */,
  713. _Xconst char* /* default_geometry */,
  714. unsigned int /* border_width */,
  715. XSizeHints* /* hints */,
  716. int* /* x_return */,
  717. int* /* y_return */,
  718. int* /* width_return */,
  719. int* /* height_return */,
  720. int* /* gravity_return */
  721. #endif
  722. );
  723. extern void XXorRegion(
  724. #if NeedFunctionPrototypes
  725. Region /* sra */,
  726. Region /* srb */,
  727. Region /* dr_return */
  728. #endif
  729. );
  730. _XFUNCPROTOEND
  731. #ifdef MAC_TCL
  732. # undef Region
  733. #endif
  734. #endif /* _XUTIL_H_ */