grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / c / Decoration / windowdecorclass.h
blobbe8ec740fc6888c62e12368694f4051383f2c880
1 /*
2 Copyright 2011, The AROS Development Team.
3 $Id$
4 */
6 #ifndef WINDOWDECORCLASS_H
7 #define WINDOWDECORCLASS_H
9 #include <exec/types.h>
10 #include <intuition/intuition.h>
11 #include <intuition/classes.h>
13 #include "newimage.h"
15 struct CachedPropGadget
17 /* This is pregenerate bitmap matching state saved in rest of fields */
18 struct BitMap *bm;
20 UWORD width;
21 UWORD height;
22 UWORD knobwidth;
23 UWORD knobheight;
24 UWORD knobx;
25 UWORD knoby;
26 ULONG windowflags;
27 ULONG gadgetflags;
30 struct CachedTitleBar
32 /* This is pregenerate bitmap matching state saved in rest of fields */
33 struct BitMap *bm;
35 UWORD width;
36 UWORD height;
37 ULONG windowflags;
38 STRPTR title;
39 ULONG titlelen;
42 struct CachedTitleBarShape
44 /* This is pregenerated Region shape matching state saved in rest of fields */
45 struct Region *shape;
47 UWORD width;
48 UWORD height;
49 ULONG windowflags;
52 struct WindowData
54 struct NewImage *ni;
56 struct NewImage *img_size;
57 struct NewImage *img_close;
58 struct NewImage *img_depth;
59 struct NewImage *img_zoom;
60 struct NewImage *img_up;
61 struct NewImage *img_down;
62 struct NewImage *img_left;
63 struct NewImage *img_right;
64 struct NewImage *img_mui;
65 struct NewImage *img_popup;
66 struct NewImage *img_snapshot;
67 struct NewImage *img_iconify;
68 struct NewImage *img_lock;
69 struct NewImage *img_winbar_normal;
70 struct NewImage *img_border_normal;
71 struct NewImage *img_border_deactivated;
72 struct NewImage *img_verticalcontainer;
73 struct NewImage *img_verticalknob;
74 struct NewImage *img_horizontalcontainer;
75 struct NewImage *img_horizontalknob;
77 LONG ActivePen;
78 LONG DeactivePen;
80 WORD closewidth, depthwidth, zoomwidth;
81 BOOL truecolor;
83 /* Cached bitmaps used to improve speed of redrawing of decorated window */
84 struct CachedPropGadget vert;
85 struct CachedPropGadget horiz;
86 struct CachedTitleBar tbar;
87 struct CachedTitleBarShape tbarshape;
90 #define WDA_DecorImages 0x30003
91 #define WDA_DecorConfig 0x30004
93 struct IClass * MakeWindowDecorClass();
94 #endif