summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GLayout.h
AgeCommit message (Collapse)Author
2019-11-05LibCore+LibGUI: Allow inserting a CObject/GWidget before anotherAndreas Kling
When adding a widget to a parent, you don't always want to append it to the set of existing children, but instead insert it before one of them. This patch makes that possible by adding CObject::insert_child_before() which also produces a ChildAdded event with an additional before_child pointer. This pointer is then used by GWidget to make sure that any layout present maintains the correct order. (Without doing that, newly added children would still be appended into the layout order, despite having a different widget sibling order.)
2019-09-04GLayout: Change default spacing to 3 pixelsAndreas Kling
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.