0f2da4b9bf
This commit adds a function called extents() to widgets. In the case of a systray, it takes the systray's screen as its argument to correctly calculate the width. By default, 1 is assumed. For all other widgets, the argument can be ommitted. The function doesn't return the geometry as drawn, instead it returns the geometry the widget _wants_ to be drawn at, for example an imagebox always has (image width, image height) as the return values even if it's drawn with a smaller width and height on a smaller wibox. Signed-off-by: Gregor Best <farhaven@googlemail.com> Signed-off-by: Julien Danjou <julien@danjou.info> |
||
---|---|---|
.. | ||
graph.c | ||
imagebox.c | ||
progressbar.c | ||
systray.c | ||
textbox.c |