home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Enlightenment / enl_BETA-0.13.src.tar.gz / enl_BETA-0.13.src.tar / enl-0.13 / desktops.h < prev    next >
C/C++ Source or Header  |  1997-10-29  |  1KB  |  53 lines

  1. #define MAX_DESKS 32
  2.  
  3. struct deskinfo
  4. {
  5.    int x;
  6.    int y;
  7.    int width;
  8.    int height;
  9.    int root_x;
  10.    int root_y;
  11.    int root_width;
  12.    int root_height;
  13.    int above;
  14.    Window win;
  15.    Window root_win;
  16.    Pixmap bg_pmap;
  17.    Pixmap bg_mask;
  18.    Pixmap hl_pmap;
  19.    Pixmap hl_mask;
  20.    Pixmap root_pmap;
  21. };
  22.  
  23. struct _desk
  24. {
  25.    int num_desks;
  26.    int current;
  27.    Image *im_sel;
  28.    Image *im_unsel;
  29.    Pixmap icon_pmap;
  30.    Pixmap icon_mask;
  31.    int icon_width;
  32.    int icon_height;
  33.    Window icon_win;
  34.    int snapshotpager;
  35.    char background[MAX_DESKS][1024];
  36.    int bg_width[MAX_DESKS];
  37.    int bg_height[MAX_DESKS];
  38.    Pixmap bg_pmap[MAX_DESKS];
  39.    struct deskinfo di[MAX_DESKS];
  40. };
  41.  
  42. void InitDesks();
  43. void ChangeToDesk(int dsk);
  44. void MapDesk(int dsk, int map);
  45. void MoveEwinToDesk(EWin *ewin, int dsk);
  46. void CreateDeskInfo(int dsk, int x, int y, int w, int h, int bx, int by, int bw, int bh, char *bg, ImColor *bicl, char *hl, ImColor *hicl, int above);
  47. void MapDeskInfo();
  48. void HighlightDeskInfo(int dsk,int onoff);
  49. void MimickEwin(EWin *ewin);
  50. int WindowIsDeskInfo(Window win);
  51. EWin *WindowIsDeskInfoWin(Window win);
  52. void StartIconDrag(EWin *ewin);
  53.