Back to index

kdeartwork  4.3.2
Classes | Defines | Functions
xlockmore.h File Reference
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xresource.h>
#include <config-xsavers.h>
#include <math.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "mode.h"

Go to the source code of this file.


struct  perscreen
struct  argtype
struct  OptionStruct
struct  ModeSpecOpt


#define MODE_NONE   0
#define MODE_INSTALL   1
#define MODE_SETUP   2
#define MODE_PREVIEW   3
#define MODE_TEST   4
#define MAXSCREENS   3
#define NUMCOLORS   64
#define MESSAGELINES   40
#define PASSLENGTH   120
#define FALLBACK_FONTNAME   "fixed"
#define DEF_MFONT   "-*-times-*-*-*-*-18-*-*-*-*-*-*-*"
#define DEF_PROGRAM   "fortune -s"
#define DEF_NONE3D   "Black"
#define DEF_RIGHT3D   "Red"
#define DEF_LEFT3D   "Blue"
#define DEF_BOTH3D   "Magenta"
#define DEF_ICONW   64 /* Age old default */
#define DEF_ICONH   64
#define MINICONW   1 /* Will not see much */
#define MINICONH   1
#define MAXICONW   256 /* Want users to know the screen is locked */
#define MAXICONH   256 /* by a particular user */
#define MIN(a, b)   (((a)<(b))?(a):(b))
#define MAX(a, b)   (((a)>(b))?(a):(b))
#define ABS(a)   ((a<0)?(-(a)):(a))
#define M_E   2.7182818284590452354
#define M_PI   3.14159265358979323846
#define M_PI_2   1.57079632679489661923
#define dirent   direct
#define NAMELEN(dirent)   (dirent)->d_namelen
#define MAXNAMLEN   256 /* maximum filename length */
#define DIRBUF   512 /* buffer size for fs-indep. dirs */
#define t_String   0
#define t_Float   1
#define t_Int   2
#define t_Bool   3
#define IS_XBMDONE   1 /* Only need one mono image */
#define IS_XBM   2
#define IS_XBMFILE   3
#define IS_XPM   4
#define IS_XPMFILE   5
#define IS_RASTERFILE   6
#define SINF(n)   ((float)sin((double)(n)))
#define COSF(n)   ((float)cos((double)(n)))
#define FABSF(n)   ((float)fabs((double)(n)))


void getResources (int argc, char **argv)
unsigned long allocPixel (Display *display, Colormap cmap, char *name, char *def)
void setColormap (Display *display, Window window, Colormap map, Bool inwindow)
void reserveColors (ModeInfo *mi, Colormap cmap, unsigned long *blackpix, unsigned long *whitepix)
void fixColormap (Display *display, Window window, int screen, float saturation, Bool mono, Bool install, Bool inroot, Bool inwindow, Bool verbose)
int visualClassFromName (char *name)
void showVisualInfo (XVisualInfo *wantVis)
unsigned long seconds (void)
void finish (void)
void error (char *s1,...)
void warning (char *s1,...)
char * strdup (char *)

Class Documentation

struct perscreen

Definition at line 98 of file xlock.h.

Class Members
unsigned long bgcol
unsigned long bothcol
Colormap cmap
unsigned long fgcol
GC gc
unsigned long leftcol
unsigned long nonecol
int npixels
unsigned long pixels
unsigned long rightcol
struct argtype

Definition at line 112 of file xlock.h.

Class Members
char * arg_class
char * classname
char * def
char * name
int type
caddr_t * var
struct OptionStruct

Definition at line 120 of file xlock.h.

Class Members
char * desc
char * opt
struct ModeSpecOpt

Definition at line 125 of file xlock.h.

Collaboration diagram for ModeSpecOpt:
Class Members
OptionStruct * desc
int numopts
int numvarsdesc
XrmOptionDescRec * opts
argtype * vars

Define Documentation

#define ABS (   a)    ((a<0)?(-(a)):(a))

Definition at line 108 of file xlockmore.h.

#define COSF (   n)    ((float)cos((double)(n)))

Definition at line 255 of file xlockmore.h.

#define DEF_BOTH3D   "Magenta"

Definition at line 79 of file xlockmore.h.

#define DEF_ICONH   64

Definition at line 86 of file xlockmore.h.

#define DEF_ICONW   64 /* Age old default */

Definition at line 83 of file xlockmore.h.

#define DEF_LEFT3D   "Blue"

Definition at line 76 of file xlockmore.h.

#define DEF_MFONT   "-*-times-*-*-*-*-18-*-*-*-*-*-*-*"

Definition at line 63 of file xlockmore.h.

#define DEF_NONE3D   "Black"

Definition at line 70 of file xlockmore.h.

#define DEF_PROGRAM   "fortune -s"

Definition at line 66 of file xlockmore.h.

#define DEF_RIGHT3D   "Red"

Definition at line 73 of file xlockmore.h.

#define DIRBUF   512 /* buffer size for fs-indep. dirs */

Definition at line 175 of file xlockmore.h.

#define dirent   direct

Definition at line 159 of file xlockmore.h.

#define FABSF (   n)    ((float)fabs((double)(n)))

Definition at line 256 of file xlockmore.h.

#define FALLBACK_FONTNAME   "fixed"

Definition at line 61 of file xlockmore.h.

#define IS_RASTERFILE   6

Definition at line 222 of file xlockmore.h.

#define IS_XBM   2

Definition at line 218 of file xlockmore.h.

#define IS_XBMDONE   1 /* Only need one mono image */

Definition at line 217 of file xlockmore.h.

#define IS_XBMFILE   3

Definition at line 219 of file xlockmore.h.

#define IS_XPM   4

Definition at line 220 of file xlockmore.h.

#define IS_XPMFILE   5

Definition at line 221 of file xlockmore.h.

#define M_E   2.7182818284590452354

Definition at line 113 of file xlockmore.h.

#define M_PI   3.14159265358979323846

Definition at line 116 of file xlockmore.h.

#define M_PI_2   1.57079632679489661923

Definition at line 119 of file xlockmore.h.

#define MAX (   a,
)    (((a)>(b))?(a):(b))

Definition at line 104 of file xlockmore.h.

#define MAXICONH   256 /* by a particular user */

Definition at line 96 of file xlockmore.h.

#define MAXICONW   256 /* Want users to know the screen is locked */

Definition at line 93 of file xlockmore.h.

#define MAXNAMLEN   256 /* maximum filename length */

Definition at line 172 of file xlockmore.h.

#define MAXSCREENS   3

Definition at line 52 of file xlockmore.h.

#define MESSAGELINES   40

Definition at line 58 of file xlockmore.h.

#define MIN (   a,
)    (((a)<(b))?(a):(b))

Definition at line 100 of file xlockmore.h.

#define MINICONH   1

Definition at line 90 of file xlockmore.h.

#define MINICONW   1 /* Will not see much */

Definition at line 89 of file xlockmore.h.

#define MODE_INSTALL   1

Definition at line 45 of file xlockmore.h.

#define MODE_NONE   0

Definition at line 44 of file xlockmore.h.

#define MODE_PREVIEW   3

Definition at line 47 of file xlockmore.h.

#define MODE_SETUP   2

Definition at line 46 of file xlockmore.h.

#define MODE_TEST   4

Definition at line 48 of file xlockmore.h.

#define NAMELEN (   dirent)    (dirent)->d_namelen

Definition at line 160 of file xlockmore.h.

#define NUMCOLORS   64

Definition at line 55 of file xlockmore.h.

#define PASSLENGTH   120

Definition at line 60 of file xlockmore.h.

#define SINF (   n)    ((float)sin((double)(n)))

Definition at line 254 of file xlockmore.h.

#define t_Bool   3

Definition at line 191 of file xlockmore.h.

#define t_Float   1

Definition at line 189 of file xlockmore.h.

#define t_Int   2

Definition at line 190 of file xlockmore.h.

#define t_String   0

Definition at line 188 of file xlockmore.h.

Function Documentation

unsigned long allocPixel ( Display *  display,
Colormap  cmap,
char *  name,
char *  def 
void error ( char *  s1,
void finish ( void  )
void fixColormap ( Display *  display,
Window  window,
int  screen,
float  saturation,
Bool  mono,
Bool  install,
Bool  inroot,
Bool  inwindow,
Bool  verbose 
void getResources ( int  argc,
char **  argv 
void reserveColors ( ModeInfo mi,
Colormap  cmap,
unsigned long *  blackpix,
unsigned long *  whitepix 
unsigned long seconds ( void  )
void setColormap ( Display *  display,
Window  window,
Colormap  map,
Bool  inwindow 
void showVisualInfo ( XVisualInfo *  wantVis)
char* strdup ( char *  )

Here is the caller graph for this function:

int visualClassFromName ( char *  name)
void warning ( char *  s1,