home *** CD-ROM | disk | FTP | other *** search
- /* xloadimage.h:
- *
- * jim frost 06.21.89
- *
- * Copyright 1989 Jim Frost. See included file "copyright.h" for complete
- * copyright information.
- */
-
- #include "copyright.h"
- #include <stdio.h>
- #include <X11/X.h>
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
-
- #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
- */
-
- 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();
-
- unsigned int sendImageToX(); /* send.c */
-
- Visual *getBestVisual(); /* visual.c */
-