NUM_COLORS
};
-enum { FRM_OUT, FRM_IN };
+enum { FRM_OUT, FRM_IN, FRM_NOFILL = 0x8000 };
+#define FRMSTYLE(x) ((x) & 0xff)
+
+#define MAX_UPD_RECTS 16
struct wt_context {
struct wt_graphics gfx;
struct wt_theme *theme;
int colors[NUM_COLORS];
+
+ wt_widget *focuswin;
+
+ struct wt_rect upd[MAX_UPD_RECTS];
+ int num_upd;
};
extern struct wt_context *wt_curctx_;
void wt_gfx_frame(struct wt_rect *r, int style, int basecol);
void wt_gfx_line(int x0, int y0, int x1, int y1);
+void calc_window_rect(struct wt_rect *r, wt_widget *w);
+
#endif /* WTIMPL_H_ */