3 # (c)Copyright 2020-2021, Matthew Dillon, All Rights Reserved.
4 # See the COPYRIGHT file at the base of the Rune distribution.
8 Frame.fillRect(int sx, int sy, int w, int h)
10 this->xFillRect(this->xid, this->pen->gcid,
11 this->wpos.x + sx, this->wpos.y + sy,
13 this->last_draw.x = sx + w;
14 this->last_draw.y = sy + h;
19 Frame.fillText(int x, int y, int w, string_p buf, int len)
24 this->xDrawImageString(this->xid, this->pen->gcid,
25 this->wpos.x + x, this->wpos.y + y,
27 tw = this->xTextWidth(this->pen->fontid, buf, len);
31 th = this->pen->textHeight();
33 # XXX th + decent, not th + 2
36 this->xFillRect(this->xid, this->pen->gcid,
37 this->wpos.x + x + tw, this->wpos.y + y - th + 2,
41 # XXX height does not match th, center button?
43 this->last_draw.x = x + w;
44 this->last_draw.y = y;
47 # Clear area to background and generate exposures
51 Frame.clearArea(int sx, int sy, int w, int h)
53 this->xClearArea(this->xid, this->wpos.x + sx, this->wpos.y + sy, w, h);