chiark / gitweb /
debian/changelog: start -4~
[vtwm.git] / util.h
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                         **/
6 /**                                                                         **/
7 /**                           All Rights Reserved                           **/
8 /**                                                                         **/
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.                                  **/
17 /**                                                                         **/
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 /*****************************************************************************/
27
28
29 /***********************************************************************
30  *
31  * $XConsortium: util.h,v 1.10 89/12/10 17:47:04 jim Exp $
32  *
33  * utility routines header file
34  *
35  * 28-Oct-87 Thomas E. LaStrange                File created
36  *
37  ***********************************************************************/
38
39 #ifndef _UTIL_
40 #define _UTIL_
41
42 typedef struct _Image {
43     Pixmap pixmap;
44     Pixmap mask;
45     int    width;
46     int    height;
47     struct _Image *next;
48 } Image;
49
50 extern void     Zoom();
51 extern void     MoveOutline();
52 extern Pixmap   GetBitmap(), FindBitmap();
53 #ifndef NO_XPM_SUPPORT
54 extern Image *FindImage();
55 #endif
56 extern void     GetUnknownIcon();
57 extern char     *ExpandFilename();
58 extern void             GetColor();
59 extern Cursor   NoCursor();
60
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();
73 /* djhjr - 9/14/03 */
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();
81 #endif
82
83 /* djhjr - 1/13/98 */
84 void setBorderGC();
85 #ifdef USE_ORIGINAL_CORNERS
86 void Draw3DCorner();
87 #else
88 GC setBevelGC();
89 void Draw3DBevel();
90 #endif
91
92 /* djhjr - 4/25/96 */
93 void PaintTitleHighlight();
94
95 /* djhjr - 4/2/98 */
96 int ComputeHighlightWindowWidth();
97
98 /* djhjr - 5/17/98 */
99 extern Image *SetPixmapsPixmap();
100
101 /* djhjr - 5/23/98 */
102 #ifndef NO_XPM_SUPPORT
103 extern int SetPixmapsBackground();
104 #endif
105
106 extern int HotX, HotY;
107
108 #endif /* _UTIL_ */