/* * CDE - Common Desktop Environment * * Copyright (c) 1993-2012, The Open Group. All rights reserved. * * These libraries and programs are free software; you can * redistribute them and/or modify them under the terms of the GNU * Lesser General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) * any later version. * * These libraries and programs are distributed in the hope that * they will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public * License along with these libraries and programs; if not, write * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth * Floor, Boston, MA 02110-1301 USA */ /* $XConsortium: dthello.h /main/6 1996/10/30 18:19:18 mgreess $ */ /* * * (c) Copyright 1993, 1994 Hewlett-Packard Company * * (c) Copyright 1993, 1994 International Business Machines Corp. * * (c) Copyright 1993, 1994 Sun Microsystems, Inc. * * (c) Copyright 1993, 1994 Novell, Inc. * */ #define DTHELLO_ID 0 #define DTCOLOR_ID 1 #define DTCOLOR_PROGNAME "dtcolor" #define DTHELLO_PROGNAME "dthello" #define DTHELLO_RES_NAME "dthello" #define DTHELLO_CLASS_NAME "Dthello" #define DTHELLO_CLASS "Dthello" struct globalStruct { char resname [80]; char classname [80]; }; /* * Definitions and Macros */ #if 0 #define DEFAULT_FILE "/etc/copyright" #endif #define DEFAULT_FONT_LARGE "-dt-interface system-medium-r-normal-xl*-*-*-*-*-*-*-*-*" #define DEFAULT_FONT_MEDIUM "-dt-interface system-medium-r-normal-l*-*-*-*-*-*-*-*-*" #define DEFAULT_FONT_SMALL "-dt-interface system-medium-r-normal-m*-*-*-*-*-*-*-*-*" #define DEFAULT_FONT "-*-*-*-R-*-*-*-120-*-*-*-*" #define FIXED_FONT "fixed" #define DEFAULT_BG "cornflowerblue" #define DEFAULT_LOW_BG "black" #define DEFAULT_FG "white" #define DEFAULT_LOW_FG "white" #define DEFAULT_TIME "240" #define DEFAULT_XOFFSET_SMALL 25 #define DEFAULT_XOFFSET_MEDIUM 50 #define DEFAULT_XOFFSET_LARGE 125 #define BOX_LINE_WIDTH_SMALL 4 #define BOX_LINE_WIDTH_MEDIUM (BOX_LINE_WIDTH_SMALL + 2) #define BOX_LINE_WIDTH_LARGE (BOX_LINE_WIDTH_SMALL * 2) #define MAX_FILES 5 #define MAX_LINES 100 #define MAX_COLUMNS 160 /* * My resources */ #define vNfont "vfont" #define vCFont "Vfont" #define vNxoffset "xoffset" #define vCXoffset "Xoffset" #define vNbackground "vbackground" #define vCBackground "Vbackground" #define vNforeground "vforeground" #define vCForeground "Vforeground" #define vNfile "file" #define vCFile "File" #define vNstring "string" #define vCString "String" #define vNtimeout "timeout" #define vCTimeout "Timeout" #ifndef True #define True 1 #endif #ifndef False #define False 0 #endif /* * Data definitions */ typedef struct { char *name; int len; } ArgSpec; typedef struct { char *resname; char *resclass; char **ppvalue; int *size; } VhResourceEntry; /******** Public Function Declarations ********/ extern int main( int argc, char **argv) ; extern int ArgMatch( char *pch, int arn) ; extern char * GetMessage( int set, int n, char *s); extern unsigned char * SkipWhitespace( unsigned char *pch) ; extern void KillNewlines( unsigned char *pch) ; extern void ReadInTextLines( FILE *fp, XFontSet fontset, unsigned int *pMaxWidth) ; extern void SeparateTextLines( unsigned char *pchIn) ; extern void CatchAlarm( int sig) ; extern void VhGetResources( Display *dpy, char *name, char *class, VhResourceEntry *res, int num) ; extern void PaintText( void ) ; extern void DrawBox( void ) ;