]> icculus.org git repositories - dana/openbox.git/blob - render2/planar.h
obsolete
[dana/openbox.git] / render2 / planar.h
1 #ifndef __render_planar_h
2 #define __render_planar_h
3
4 #include "render.h"
5
6 struct RrPlanarSurface {
7     enum RrSurfaceColorType colortype;
8     enum RrBevelType bevel;
9
10     struct RrColor primary;
11     struct RrColor secondary;
12
13     int borderwidth;
14     struct RrColor border;
15 };
16
17 #define RrPlanarColorType(sur) ((sur)->data.planar.colortype)
18 #define RrPlanarPrimaryColor(sur) ((sur)->data.planar.primary)
19 #define RrPlanarSecondaryColor(sur) ((sur)->data.planar.secondary)
20 #define RrPlanarBevelType(sur) ((sur)->data.planar.bevel)
21 #define RrPlanarBorderWidth(sur) ((sur)->data.planar.borderwidth)
22 #define RrPlanarBorderColor(sur) ((sur)->data.planar.border)
23
24 int RrPlanarHasAlpha(struct RrSurface *sur);
25
26 void RrPlanarPaint(struct RrSurface *sur, int absx, int absy);
27
28 void RrPlanarMinSize(struct RrSurface *sur, int *w, int *h);
29
30 #endif