1 /*****************************************************************************/
2 /** Copyright 1988 by Evans & Sutherland Computer Corporation, **/
3 /** Salt Lake City, Utah **/
4 /** Portions Copyright 1989 by the Massachusetts Institute of Technology **/
5 /** Cambridge, Massachusetts **/
7 /** All Rights Reserved **/
9 /** Permission to use, copy, modify, and distribute this software and **/
10 /** its documentation for any purpose and without fee is hereby **/
11 /** granted, provided that the above copyright notice appear in all **/
12 /** copies and that both that copyright notice and this permis- **/
13 /** sion notice appear in supporting documentation, and that the **/
14 /** names of Evans & Sutherland and M.I.T. not be used in advertising **/
15 /** in publicity pertaining to distribution of the software without **/
16 /** specific, written prior permission. **/
18 /** EVANS & SUTHERLAND AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD **/
19 /** TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- **/
20 /** ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND OR **/
21 /** M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM- **/
22 /** AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA **/
23 /** OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER **/
24 /** TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE **/
25 /** OR PERFORMANCE OF THIS SOFTWARE. **/
26 /*****************************************************************************/
29 /***********************************************************************
31 * $XConsortium: util.h,v 1.10 89/12/10 17:47:04 jim Exp $
33 * utility routines header file
35 * 28-Oct-87 Thomas E. LaStrange File created
37 ***********************************************************************/
42 typedef struct _Image {
51 extern void MoveOutline();
52 extern Pixmap GetBitmap(), FindBitmap();
53 #ifndef NO_XPM_SUPPORT
54 extern Image *FindImage();
56 extern void GetUnknownIcon();
57 extern char *ExpandFilename();
58 extern void GetColor();
59 extern Cursor NoCursor();
61 extern Image *GetImage ();
62 extern void Draw3DBorder();
63 extern void GetShadeColors();
64 extern void PaintBorders();
65 extern void PaintIcon();
66 extern void PaintTitle();
67 extern void PaintTitleButton();
68 extern void InsertRGBColormap();
69 extern void RemoveRGBColormap();
70 extern void SetFocus();
71 extern void LocateStandardColormaps();
72 extern void GetFont();
74 #ifndef NO_I18N_SUPPORT
75 extern int MyFont_TextWidth();
76 extern void MyFont_DrawImageString();
77 extern void MyFont_DrawString();
78 extern void MyFont_ChangeGC();
79 extern Status I18N_FetchName();
80 extern Status I18N_GetIconName();
85 #ifdef USE_ORIGINAL_CORNERS
93 void PaintTitleHighlight();
96 int ComputeHighlightWindowWidth();
99 extern Image *SetPixmapsPixmap();
101 /* djhjr - 5/23/98 */
102 #ifndef NO_XPM_SUPPORT
103 extern int SetPixmapsBackground();
106 extern int HotX, HotY;