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: dtscreen.h /main/5 1996/05/13 16:54:19 rswiston $ */
27 * (c) Copyright 1993, 1994 Hewlett-Packard Company *
28 * (c) Copyright 1993, 1994 International Business Machines Corp. *
29 * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
30 * (c) Copyright 1993, 1994 Novell, Inc. *
34 * xlock.h - external interfaces for new modes and SYSV OS defines.
36 * Copyright (c) 1991 by Patrick J. Naughton.
41 #include <X11/Xutil.h>
51 int npixels; /* number of valid entries in pixels */
52 u_long pixels[NUMCOLORS]; /* pixel values in the colormap */
56 Window w; /* window id */
57 GC gc; /* graphics context for animation */
58 perscreen *perscreen; /* screen info for this window */
59 void *data; /* mode data */
64 extern char *ProgramName;
67 extern float saturation;
70 extern int batchcount;
71 extern int reinittime;
75 extern void (*callback) ();
76 extern void (*init) ();
78 extern void GetResources();
79 extern void CheckResources();
80 extern void hsbramp();
82 extern long seconds();
84 extern void hide_hft_ring();
85 extern void unhide_hft_ring();
88 /* System V Release 4 redefinitions of BSD functions and structures */
90 #if defined (SYSV) || defined (SVR4)
94 #define pw_passwd sp_pwdp
95 #if defined(AIXV3) || defined(hpux)
112 #define getpwnam getspnam
114 #if !(defined(_AIX) || defined(hpux) || defined(sun))
115 # define srandom srand
117 # define MAXRAND (32767.0)
119 # define MAXRAND (2147483648.0)
124 #define MAXRAND (2147483648.0)