home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / x / volume5 / xldimage / part02 / xloadimage.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-11-13  |  1.5 KB  |  61 lines

  1. /* xloadimage.h:
  2.  *
  3.  * jim frost 06.21.89
  4.  *
  5.  * Copyright 1989 Jim Frost.  See included file "copyright.h" for complete
  6.  * copyright information.
  7.  */
  8.  
  9. #include "copyright.h"
  10. #include <stdio.h>
  11. #include <X11/X.h>
  12. #include <X11/Xlib.h>
  13. #include <X11/Xutil.h>
  14.  
  15. #include "image.h"
  16. #include "options.h"
  17.  
  18. /* image name and option structure used when processing arguments
  19.  */
  20.  
  21. typedef struct {
  22.   char         *name;         /* name of image */
  23.   int           atx, aty;     /* location to load image at */
  24.   unsigned int  bright;       /* brightness multiplier */
  25.   unsigned int  center;       /* true if image is to be centered */
  26.   unsigned int  clipx, clipy; /* area of image to be used */
  27.   unsigned int  clipw, cliph;
  28.   unsigned int  dither;       /* true if image is to be dithered */
  29.   unsigned int  colors;       /* max # of colors to use for this image */
  30.   char         *fg, *bg;      /* foreground/background colors if mono image */
  31.   unsigned int  xzoom, yzoom; /* zoom percentages */
  32. } ImageOptions;
  33.  
  34. #ifndef MAXIMAGES
  35. #define MAXIMAGES BUFSIZ /* max # of images we'll try to load at once */
  36. #endif
  37.  
  38. /* function declarations
  39.  */
  40.  
  41. ZFILE *zopen(); /* io.c */
  42. int    zread();
  43. int    zgetc();
  44. char  *zgets();
  45. void   zclose();
  46.  
  47. char *tail(); /* misc.c */
  48. void usage();
  49. void goodImage();
  50. Image *processImage();
  51. int ioErrorHandler();
  52.  
  53. int findImage(); /* path.c */
  54. void listImages();
  55. void loadPathsAndExts();
  56. void showPath();
  57.  
  58. unsigned int sendImageToX(); /* send.c */
  59.  
  60. Visual *getBestVisual(); /* visual.c */
  61.