/* get_context */
typedef Context EngineGetContext(Client *client, Window win);
-typedef void EngineRenderLabel(Window win, Rect *area, char *text,
+typedef void EngineRenderLabel(Window win, Size *sz, char *text,
gboolean hilight, gboolean toplevel);
typedef void EngineSizeLabel(char *text, gboolean hilight, gboolean toplevel,
paint(self->close, a);
}
-void render_label(Window win, Rect *area, char *text,
+void render_label(Window win, Size *sz, char *text,
gboolean hilight, gboolean toplevel)
{
Appearance *a;
a = hilight ? ob_app_hilite_label : ob_app_unhilite_label;
a->texture[0].data.text.string = text;
- RECT_SET(a->area, 0, 0, area->width, area->height);
+ RECT_SET(a->area, 0, 0, sz->width, sz->height);
a->texture[0].position = a->area;
if (toplevel) {