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
23 /* $XConsortium: dthello.h /main/6 1996/10/30 18:19:18 mgreess $ */
25 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
26 * (c) Copyright 1993, 1994 International Business Machines Corp. *
27 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
28 * (c) Copyright 1993, 1994 Novell, Inc. *
34 #define DTCOLOR_PROGNAME "dtcolor"
35 #define DTHELLO_PROGNAME "dthello"
37 #define DTHELLO_RES_NAME "dthello"
38 #define DTHELLO_CLASS_NAME "Dthello"
39 #define DTHELLO_CLASS "Dthello"
47 * Defintions and Macros
50 #define DEFAULT_FILE "/etc/copyright"
53 #define DEFAULT_FONT_LARGE "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*"
55 #define DEFAULT_FONT_MEDIUM "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*"
57 #define DEFAULT_FONT_MEDIUM "-dt-interface system-medium-r-normal-l*-*-*-*-*-*-*-*-*"
59 #define DEFAULT_FONT_SMALL "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*"
60 #define DEFAULT_FONT "-*-*-*-R-*-*-*-120-*-*-*-*"
62 #define FIXED_FONT "fixed"
63 #define DEFAULT_BG "cornflowerblue"
64 #define DEFAULT_LOW_BG "black"
65 #define DEFAULT_FG "white"
66 #define DEFAULT_LOW_FG "white"
67 #define DEFAULT_TIME "240"
69 #define DEFAULT_XOFFSET_SMALL 25
70 #define DEFAULT_XOFFSET_MEDIUM 50
71 #define DEFAULT_XOFFSET_LARGE 125
73 #define BOX_LINE_WIDTH_SMALL 4
74 #define BOX_LINE_WIDTH_MEDIUM (BOX_LINE_WIDTH_SMALL + 2)
75 #define BOX_LINE_WIDTH_LARGE (BOX_LINE_WIDTH_SMALL * 2)
79 #define MAX_COLUMNS 160
85 #define vNfont "vfont"
86 #define vCFont "Vfont"
87 #define vNxoffset "xoffset"
88 #define vCXoffset "Xoffset"
89 #define vNbackground "vbackground"
90 #define vCBackground "Vbackground"
91 #define vNforeground "vforeground"
92 #define vCForeground "Vforeground"
95 #define vNstring "string"
96 #define vCString "String"
97 #define vNtimeout "timeout"
98 #define vCTimeout "Timeout"
127 /******** Public Function Declarations ********/
135 extern char * GetMessage( int set, int n, char *s);
136 extern unsigned char * SkipWhitespace(
137 unsigned char *pch) ;
138 extern void KillNewlines(
139 unsigned char *pch) ;
140 extern void ReadInTextLines(
143 unsigned int *pMaxWidth) ;
144 extern void SeparateTextLines(
145 unsigned char *pchIn) ;
146 extern void CatchAlarm(
148 extern Cursor GetHourGlass(
150 extern void VhGetResources(
154 VhResourceEntry *res,
157 extern void PaintText( void ) ;
159 extern void DrawBox( void ) ;