Andreas Kling
33043941f9
LibGUI: Add GScrollableWidget::to_widget_position()
...
This is a complement to to_content_position() :^)
2019-10-09 21:16:49 +02:00
Andreas Kling
a181cae3e0
GScrollableWidget: Add to_content_position(Point)
...
A handy helper function for converting a widget space coordinate into a
content space coordinate.
2019-10-03 09:15:57 +02:00
Andreas Kling
ff6ce422dd
LibGUI: Convert GWidget to ObjectPtr
2019-09-21 17:05:35 +02:00
Andreas Kling
bce58bbbca
LibGUI: Convert GScrollBar to ObjectPtr
2019-09-21 15:25:08 +02:00
Andreas Kling
7a906ab539
LibGUI: Teach GScrollableWidget how to hide unnecessary scrollbars
...
This is now an opt-in mode enabled by calling:
should_hide_unnecessary_scrollbars(true)
This patch enables the mode for GTreeView and GTableView. :^)
2019-09-05 21:37:15 +02:00
Andreas Kling
b615a5c780
LibGUI: Add a way for GWidgets to do custom layout on child hide/show
...
This solves an issue in GScrollableWidget where hiding one of the two
scrollbars needs to trigger a relayout since the other one should grow
into the "shared space" in the bottom right corner.
A GWidget can now override custom_layout() which will be called at any
time we would normally delegate work to the GLayout, e.g on resize
or child visibility changes, size policy changes, etc.
2019-09-01 20:51:20 +02:00
Andreas Kling
04b9dc2d30
Libraries: Create top level directory for libraries.
...
Things were getting a little crowded in the project root, so this patch
moves the Lib*/ directories into Libraries/.
2019-07-04 16:16:50 +02:00