Use C++ linker
[oweals/cde.git] / cde / programs / dtwm / WmGraphics.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* 
24  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
25  * ALL RIGHTS RESERVED 
26 */ 
27 /* 
28  * Motif Release 1.2
29 */ 
30 /*   $XConsortium: WmGraphics.h /main/4 1995/11/01 11:39:06 rswiston $ */
31 /*
32  * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
33
34
35 extern RList *AllocateRList (unsigned int amt);
36 extern void BevelDepressedRectangle (RList *prTop, RList *prBot, int x, 
37                                      int y, unsigned int width, 
38                                      unsigned int height, unsigned int top_wid,
39                                      unsigned int right_wid, 
40                                      unsigned int bot_wid, 
41                                      unsigned int left_wid, 
42                                      unsigned int in_wid);
43 extern void BevelRectangle (RList *prTop, RList *prBot, int x, int y, 
44                             unsigned int width, unsigned int height, 
45                             unsigned int top_wid, unsigned int right_wid, 
46                             unsigned int bot_wid, unsigned int left_wid);
47 extern void DrawStringInBox (Display *dpy, Window win, GC gc, 
48                              XFontStruct *pfs, XRectangle *pbox, String str);
49 extern Boolean ExtendRList (RList *prl, unsigned int amt);
50 extern void FreeRList (RList *prl);
51 extern void StretcherCorner (RList *prTop, RList *prBot, int x, int y, 
52                              int cnum, unsigned int swidth, 
53                              unsigned int cwidth, unsigned int cheight);
54 extern void WmDrawString (Display *dpy, Drawable d, GC gc, int x, int y, 
55                           char *string, unsigned int length);
56 #ifdef WSM
57 extern void WmDrawXmString (Display *dpy, Window w, XmFontList xmfontlist, 
58                             XmString xmstring, GC gc, Position x, Position y, 
59                             Dimension width, XRectangle *pbox,
60                             Boolean bCenter);
61 #else /* WSM */
62 extern void WmDrawXmString (Display *dpy, Window w, XmFontList xmfontlist, 
63                             XmString xmstring, GC gc, Position x, Position y, 
64                             Dimension width, XRectangle *pbox);
65 #endif /* WSM */
66
67 extern GC WmGetGC (WmScreenData *pSD, unsigned long gc_mask, XGCValues *pGcv);
68
69