X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fwtimpl.h;fp=src%2Fwtimpl.h;h=d0c2ea49d28b50cd9d11999fb68c82eaf26ef8e8;hb=492a32903dd07d3736bb878e81eb95f351556bac;hp=76e51f105bd2c09c102cb46ba0778d28fd028a16;hpb=526fc352816f21f1cbfa8110262a58224c14d208;p=windtk diff --git a/src/wtimpl.h b/src/wtimpl.h index 76e51f1..d0c2ea4 100644 --- a/src/wtimpl.h +++ b/src/wtimpl.h @@ -23,6 +23,8 @@ enum { 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_rect vp; @@ -32,6 +34,9 @@ struct wt_context { int colors[NUM_COLORS]; wt_widget *focuswin; + + struct wt_rect upd[MAX_UPD_RECTS]; + int num_upd; }; extern struct wt_context *wt_curctx_; @@ -47,4 +52,6 @@ void wt_gfx_fillrect(struct wt_rect *r); 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_ */