2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
24 * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC.
30 /* $TOG: WmResource.h /main/6 1997/04/14 12:52:19 dbl $ */
32 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
34 #ifndef NO_MESSAGE_CATALOG
35 extern void InitBuiltinSystemMenu(void);
37 extern void GetAppearanceGCs (WmScreenData *pSD, Pixel fg, Pixel bg, XFontStruct *font, Pixmap bg_pixmap, Pixel ts_color, Pixmap ts_pixmap, Pixel bs_color, Pixmap bs_pixmap, GC *pGC, GC *ptsGC, GC *pbsGC);
38 extern GC GetHighlightGC (WmScreenData *pSD, Pixel fg, Pixel bg, Pixmap pixmap);
39 extern void MakeAppearanceResources (WmScreenData *pSD, AppearanceData *pAData, Boolean makeActiveResources);
41 extern Boolean Monochrome (Screen *screen);
42 extern void ProcessWmColors (WmScreenData *pSD);
44 extern void ProcessWmResources (void);
45 extern void SetStdGlobalResourceValues (void);
46 extern void ProcessScreenListResource (void);
47 extern void ProcessAppearanceResources (WmScreenData *pSD);
48 extern void ProcessGlobalScreenResources (void);
49 extern void ProcessPresenceResources (WmScreenData *pSD);
50 extern void ProcessScreenResources (WmScreenData *pSD, unsigned char *screenName);
52 extern void ProcessWorkspaceList (WmScreenData *pSD);
54 extern void ProcessWorkspaceResources (WmWorkspaceData *pWS);
55 extern void ProcessClientResources (ClientData *pCD);
56 extern void SetStdClientResourceValues (ClientData *pCD);
57 extern void SetStdScreenResourceValues (WmScreenData *pSD);
58 extern char *WmRealloc (char *ptr, unsigned size);
59 extern char *WmMalloc (char *ptr, unsigned size);
60 extern void SetupDefaultResources (WmScreenData *pSD);
61 extern Boolean SimilarAppearanceData (AppearanceData *pAD1, AppearanceData *pAD2);
63 extern String ResCat (String s1, String s2, String s3, String s4);
64 void CheckForNoDither (AppearanceData *pAD);
67 #ifndef NO_MESSAGE_CATALOG
68 extern char *builtinSystemMenu;
70 extern char builtinSystemMenu[];
72 extern char builtinKeyBindings[];
73 extern char builtinRootMenu[];
74 extern char builtinSystemMenuName[];
77 #define Monochrome(screen) ( DefaultDepthOfScreen(screen) == 1 )