1 #ifndef __render_planar_h
2 #define __render_planar_h
6 struct RrPlanarSurface {
7 enum RrSurfaceColorType colortype;
8 enum RrBevelType bevel;
10 struct RrColor primary;
11 struct RrColor secondary;
14 struct RrColor border;
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)
24 int RrPlanarHasAlpha(struct RrSurface *sur);
26 void RrPlanarPaint(struct RrSurface *sur, int absx, int absy);
28 void RrPlanarMinSize(struct RrSurface *sur, int *w, int *h);
30 int RrPlanarEdgeWidth(struct RrSurface *sur);