awesome | 5 Mar 21:13 2011

[awesome bugs] #873 - get widgets geometry from layout


A new Flyspray task has been opened.  Details are below. 

User who did this - dodo (dodo) 

Attached to Project - awesome
Summary - get widgets geometry from layout
Task Type - Feature Request
Category - Wibox
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Medium
Priority - Normal
Reported Version - git/master
Due in Version - Undecided
Due Date - Undecided
Details - i noticed some missing layout features while rewriting

firstly i wanted to set the size of a wibox containing a layout without knowing the exact size of the specific
layouted content.
the problem: getting a preferred size from the layout regardless in which direction the layout is going.
a solution: the method fit in every layout returns the preferred size when filled with invalid size (e.g.
-1, -1) (for example wibox.layout.fixed.vertical:fit(-1, -1) returns the sum of all item.height as
height and the max item.width as width )

secondly i need the position of widget inside a layout.
the problem: same as above. getting the position and size of a widget inside a layout without handling the
exact type of layout.
(Continue reading)