23 enum { FRM_OUT, FRM_IN, FRM_NOFILL = 0x8000 };
24 #define FRMSTYLE(x) ((x) & 0xff)
26 #define MAX_UPD_RECTS 16
29 struct ag_graphics gfx;
32 struct ag_theme *theme;
34 unsigned int colors[NUM_COLORS];
39 extern struct ag_context *ag_curctx_;
42 extern void *(*ag_alloc)(size_t sz);
43 extern void (*ag_free)(void *p);
45 void *ag_zalloc(size_t sz);
47 void ag_gfx_color(int cidx);
48 void ag_gfx_fillrect(struct ag_rect *r);
49 void ag_gfx_frame(struct ag_rect *r, int style, int basecol);
50 void ag_gfx_line(int x0, int y0, int x1, int y1);
52 void ag_calc_window_rect(struct ag_rect *r, ag_widget *w);
54 #endif /* AGIMPL_H_ */