home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl_DR-0.10.tar.gz / enl_DR-0.10.tar / enl / buttons.h < prev    next >
C/C++ Source or Header  |  1997-05-25  |  581b  |  42 lines

  1. #define BTN_NORM  0
  2. #define BTN_SEL   1
  3. #define BTN_CLICK 2
  4.  
  5. typedef struct _BWin
  6. {
  7.    Window win;
  8.    Pixmap unsel_pmap;
  9.    Pixmap unsel_mask;
  10.    Pixmap sel_pmap;
  11.    Pixmap sel_mask;
  12.    Pixmap click_pmap;
  13.    Pixmap click_mask;
  14.    int above;
  15.    int state;
  16.    Action action[3][4];
  17. } BWin;
  18.  
  19. struct blist
  20. {
  21.    struct blist *next;
  22.    BWin *bwin;
  23. };
  24.  
  25. struct _bl
  26. {
  27.    struct blist *first;
  28. };
  29.  
  30. struct _btmd
  31. {
  32.    BWin *bwin;
  33. };
  34.  
  35. BWin *GetButtonWinID(Window w);
  36. void AddButton(BWin *bwin);
  37. void DelButton(Window w);
  38. void ButtonDraw(BWin *bwin);
  39. void MapButtons();
  40. void RaiseLowerButtons();
  41.  
  42.