1 /* 2 * xtrojka (c) 1994,1995,1996 Maarten Los 3 * 4 * #include "COPYRIGHT" 5 * 6 * created: 26.xi.1995 7 * modified: 27.xii.1995 8 * 9 * header file for screen_sys 10 */ 11 12 #ifndef _pics_h_ 13 #define _pics_h_ 14 15 /* 16 * dimensions of the various windows (those are fixed!) 17 */ 18 19 #define MkBitmap(bits, w, h) XCreateBitmapFromData( \ 20 XtDisplay(main_screen), \ 21 RootWindowOfScreen(XtScreen(main_screen)), \ 22 bits, w, h); 23 24 25 #define MkBitPixmap(bits, w, h, fg, bg) XCreatePixmapFromBitmapData( \ 26 XtDisplay(main_screen), \ 27 RootWindowOfScreen(XtScreen(main_screen)), \ 28 bits, w, h, fg, bg, 1); 29 #ifdef XPM 30 #define MkXpmPixmap(name, pic_st) \ 31 (pic_st).attr.valuemask = 0L; \ 32 (pic_st).attr.valuemask |= XpmReturnPixels; \ 33 (pic_st).attr.valuemask |= XpmColormap; \ 34 (pic_st).attr.valuemask |= XpmCloseness; \ 35 (pic_st).attr.valuemask |= XpmDepth; \ 36 (pic_st).attr.depth = the_depth; \ 37 (pic_st).attr.colormap = the_colormap; \ 38 (pic_st).attr.closeness = 0xFFFF; \ 39 XpmCreatePixmapFromData( \ 40 XtDisplay(main_screen), \ 41 RootWindowOfScreen(XtScreen(main_screen)), \ 42 (name), &((pic_st).pic), &((pic_st).picMask), \ 43 &((pic_st).attr)); 44 #endif 45 46 47 48 /* 49 * function prototypes 50 */ 51 void init_bitmaps(void); 52 void set_icons(void); 53 54 #endif /* _pics_h_ */ 55