awesome/widgets
Gregor Best 0f2da4b9bf widgets: export extents() function
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>
2009-06-04 17:23:29 +02:00
..
graph.c widgets: export extents() function 2009-06-04 17:23:29 +02:00
imagebox.c widgets: export extents() function 2009-06-04 17:23:29 +02:00
progressbar.c widgets: export extents() function 2009-06-04 17:23:29 +02:00
systray.c widgets: export extents() function 2009-06-04 17:23:29 +02:00
textbox.c widgets: export extents() function 2009-06-04 17:23:29 +02:00