23 enum { FRM_OUT, FRM_IN, FRM_NOFILL = 0x8000 };
24 #define FRMSTYLE(x) ((x) & 0xff)
26 #define MAX_UPD_RECTS 16
29 struct wt_graphics gfx;
32 struct wt_theme *theme;
34 int colors[NUM_COLORS];
38 struct wt_rect upd[MAX_UPD_RECTS];
42 extern struct wt_context *wt_curctx_;
45 extern void *(*wt_alloc)(size_t sz);
46 extern void (*wt_free)(void *p);
48 void *wt_zalloc(size_t sz);
50 void wt_gfx_color(int cidx);
51 void wt_gfx_fillrect(struct wt_rect *r);
52 void wt_gfx_frame(struct wt_rect *r, int style, int basecol);
53 void wt_gfx_line(int x0, int y0, int x1, int y1);
55 void calc_window_rect(struct wt_rect *r, wt_widget *w);
57 #endif /* WTIMPL_H_ */