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 libraries 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 * Definitions and Macros
50 #define DEFAULT_FILE "/etc/copyright"
53 #define DEFAULT_FONT_LARGE "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*"
54 #define DEFAULT_FONT_MEDIUM "-dt-interface system-medium-r-normal-l*-*-*-*-*-*-*-*-*"
55 #define DEFAULT_FONT_SMALL "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*"
56 #define DEFAULT_FONT "-*-*-*-R-*-*-*-120-*-*-*-*"
58 #define FIXED_FONT "fixed"
59 #define DEFAULT_BG "cornflowerblue"
60 #define DEFAULT_LOW_BG "black"
61 #define DEFAULT_FG "white"
62 #define DEFAULT_LOW_FG "white"
63 #define DEFAULT_TIME "240"
65 #define DEFAULT_XOFFSET_SMALL 25
66 #define DEFAULT_XOFFSET_MEDIUM 50
67 #define DEFAULT_XOFFSET_LARGE 125
69 #define BOX_LINE_WIDTH_SMALL 4
70 #define BOX_LINE_WIDTH_MEDIUM (BOX_LINE_WIDTH_SMALL + 2)
71 #define BOX_LINE_WIDTH_LARGE (BOX_LINE_WIDTH_SMALL * 2)
75 #define MAX_COLUMNS 160
81 #define vNfont "vfont"
82 #define vCFont "Vfont"
83 #define vNxoffset "xoffset"
84 #define vCXoffset "Xoffset"
85 #define vNbackground "vbackground"
86 #define vCBackground "Vbackground"
87 #define vNforeground "vforeground"
88 #define vCForeground "Vforeground"
91 #define vNstring "string"
92 #define vCString "String"
93 #define vNtimeout "timeout"
94 #define vCTimeout "Timeout"
123 /******** Public Function Declarations ********/
131 extern char * GetMessage( int set, int n, char *s);
132 extern unsigned char * SkipWhitespace(
133 unsigned char *pch) ;
134 extern void KillNewlines(
135 unsigned char *pch) ;
136 extern void ReadInTextLines(
139 unsigned int *pMaxWidth) ;
140 extern void SeparateTextLines(
141 unsigned char *pchIn) ;
142 extern void CatchAlarm(
144 extern Cursor GetHourGlass(
146 extern void VhGetResources(
150 VhResourceEntry *res,
153 extern void PaintText( void ) ;
155 extern void DrawBox( void ) ;