home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / xloadimg.zip / xloadimage.4.1 / xloadimage.h < prev    next >
C/C++ Source or Header  |  1993-10-28  |  2KB  |  69 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. /* This struct holds the X-client side bits for a rendered image.
  19.  */
  20.  
  21. typedef struct {
  22.   Display  *disp;       /* destination display */
  23.   int       scrn;       /* destination screen */
  24.   int       depth;      /* depth of drawable we want/have */
  25.   Drawable  drawable;   /* drawable to send image to */
  26.   Pixel     foreground; /* foreground and background pixels for mono images */
  27.   Pixel     background;
  28.   Colormap  cmap;       /* colormap used for image */
  29.   GC        gc;         /* cached gc for sending image */
  30.   XImage   *ximage;     /* ximage structure */
  31. } XImageInfo;
  32.  
  33. #ifndef MAXIMAGES
  34. #define MAXIMAGES BUFSIZ /* max # of images we'll try to load at once */
  35. #endif
  36.  
  37. /* function declarations
  38.  */
  39.  
  40. void supportedImageTypes(); /* imagetypes.c */
  41.  
  42. char *tail(); /* misc.c */
  43. void memoryExhausted();
  44. void internalError();
  45. void version();
  46. void usage();
  47. void goodImage();
  48. int errorHandler();
  49.  
  50. char *expandPath(); /* path.c */
  51. int findImage();
  52. void listImages();
  53. void loadPathsAndExts();
  54. void showPath();
  55.  
  56. void imageOnRoot(); /* root.c */
  57.  
  58. void        sendXImage(); /* send.c */
  59. XImageInfo *imageToXImage();
  60. Pixmap      ximageToPixmap();
  61. void        freeXImage();
  62.  
  63. Visual *getBestVisual(); /* visual.c */
  64.  
  65. int   visualClassFromName(); /* window.c */
  66. char *nameOfVisualClass();
  67. void cleanUpWindow();
  68. char imageInWindow();
  69.