home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gwm18a.zip / wl_pixmap.h < prev    next >
C/C++ Source or Header  |  1995-07-03  |  2KB  |  80 lines

  1. /* Copyright 1989 GROUPE BULL -- See license conditions in file COPYRIGHT
  2.  * Copyright 1989 Massachusetts Institute of Technology
  3.  */
  4. /*************************\
  5. *               *
  6. *  WOOL_OBJECT: WLPixmap  *
  7. *  DEFINITIONS          *
  8. *               *
  9. \*************************/
  10.  
  11. #ifndef INCLUDE_WL_BITMAP_H
  12. #define INCLUDE_WL_BITMAP_H
  13.  
  14. /* type */
  15.  
  16. typedef struct _WOOL_Pixmap {
  17.     WOOL_HEADER;
  18.     Pixmap    pixmap;    
  19.     int x_hot, y_hot;
  20.     unsigned int width, height;
  21.     Pixmap      mask;            /* or 0 if no shape */
  22. #ifdef DEBUG
  23.     int screen;
  24. #endif
  25. }              *WOOL_Pixmap;
  26.  
  27. /* useful construct */
  28.  
  29. typedef struct{
  30.     int width, height;
  31.     int is_bitmap;
  32. } Graphic_desc;
  33.  
  34. #define BITMAP_EXTENSION ".xbm"
  35. #define PIXMAP_EXTENSION ".xpm"
  36.  
  37. /* exported functions */
  38.  
  39. EXT WOOL_Pixmap WLPixmap_make();
  40. EXT WOOL_Pixmap wool_layered_bitmap_make();
  41. EXT WOOL_OBJECT wool_raw_bitmap_make();
  42. EXT WOOL_OBJECT wool_stamp_make();
  43. EXT WOOL_OBJECT WLPixmap_print();
  44. EXT WOOL_OBJECT WLPixmap_free();
  45. EXT WOOL_OBJECT WLPixmap_get_dimensions();
  46. EXT WOOL_OBJECT WLPixmap_draw();
  47. EXT WOOL_OBJECT WLPixmap_open();
  48. EXT WOOL_Pixmap wool_make_blank_bitmap();
  49.  
  50. /* methods */
  51.  
  52. EXT WOOL_METHOD WLPixmap[]
  53. #ifdef DO_INIT
  54. = {
  55.    (WOOL_METHOD) 0,        /* METHODS_ARRAY */
  56.    WLNumber_eval,        /* WOOL_eval 1 */
  57.    WLPixmap_print,        /* WOOL_print 2 */
  58.    WLPixmap_free,        /* WOOL_free 3 */
  59.    wool_undefined_method_2,        /* WOOL_execute 4 */
  60.    wool_undefined_method_2,        /* WOOL_set 5 */
  61.    wool_undefined_method_1,    /* WOOL_get_C_value 6 */
  62.    WLPixmap_open,        /* WOOL_open 7 */
  63.    wool_undefined_method_1,    /* WOOL_close 8 */
  64.    wool_undefined_method_2,    /* WOOL_process_event 9 */
  65.    wool_undefined_method_1,    /* WOOL_copy 10 */
  66.    WLPixmap_get_dimensions,    /* WOOL_get_dimensions 11 */
  67.    WLPixmap_draw,        /* WOOL_draw 12 */
  68.    wool_undefined_method_2,    /* WOOL_equal 13 */
  69.    wool_undefined_method_2,
  70.    wool_undefined_method_2,
  71.    wool_undefined_method_1,
  72.    wool_undefined_method_1,
  73.    wool_undefined_method_1,
  74.    wool_undefined_method_1,
  75.    wool_undefined_method_1
  76. }
  77. #endif /* DO_INIT */
  78.                ;
  79. #endif /* INCLUDE_WL_BITMAP_H */
  80.