/* xloadimage.h: * * jim frost 06.21.89 * * Copyright 1989 Jim Frost. See included file "copyright.h" for complete * copyright information. */ /* @(#)xloadimage.h 1.1 10/13/90 */ #include "copyright.h" #include #include #include #include #include "image.h" #include "options.h" /* image name and option structure used when processing arguments */ typedef struct { char *name; /* name of image */ int atx, aty; /* location to load image at */ unsigned int bright; /* brightness multiplier */ unsigned int center; /* true if image is to be centered */ unsigned int clipx, clipy; /* area of image to be used */ unsigned int clipw, cliph; unsigned int dither; /* true if image is to be dithered */ unsigned int colors; /* max # of colors to use for this image */ char *fg, *bg; /* foreground/background colors if mono image */ unsigned int xzoom, yzoom; /* zoom percentages */ } ImageOptions; #ifndef MAXIMAGES #define MAXIMAGES BUFSIZ /* max # of images we'll try to load at once */ #endif /* function declarations */ void supportedImageTypes(); /* imagetypes.c */ ZFILE *zopen(); /* io.c */ int zread(); int zgetc(); char *zgets(); void zclose(); char *tail(); /* misc.c */ void usage(); void goodImage(); Image *processImage(); int ioErrorHandler(); int findImage(); /* path.c */ void listImages(); void loadPathsAndExts(); void showPath(); void imageOnRoot(); /* root.c */ unsigned int sendImageToX(); /* send.c */ Visual *getBestVisual(); /* visual.c */ void cleanUpWindow(); /* window.c */ char imageInWindow();