summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/AbstractScrollableWidget.cpp
AgeCommit message (Collapse)Author
2022-07-01LibGUI: Fix scrollbars not showing after updating content sizeMacDue
This fixes the scrollbars in not showing till after a resize in Browser :^)
2022-06-30LibGUI: Add min_content_size debug property to AbstractScrollableWidgetFrHun
This helps with debugging subclasses of AbstractScrollableWidget
2022-06-30LibGUI: Fix flickering scrollbars in AbstractScrollableWidgetFrHun
The new min_content_size value is to be set by the subclasses, it is then used to determine if the scrollbars should be shown after a resize, but before the content size will be calculated by the following layout pass.
2022-06-28LibGUI: Remove temporary compatibility measures for new layout systemFrHun
2022-06-28LibGUI: Use new layout system in scrollable widgetsFrHun
These changes are mainly nessecairy to remove dependence on the temporary implicit conversions currently still in place.
2022-06-28LibGUI: Add UIDimension and UISize typesFrHun
These types are used to represent size information for layouts. They can hold integer (int) values ≥0 or special values like shrink and fit.
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-12Libraries: Use default constructors/destructors in LibGUILenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2022-01-20Userland: Add horizontal mouse scroll supportDmitry Petrov
2021-12-30Everywhere: Use 'increase_slider_by()' method from AbstractSliderElyse
This method help us to avoid repeating the pattern 'set_value(value() + delta)'.
2021-11-03LibGUI: Margins for AbstractScrollableWidgetFrHun
Implement, and use internally, content_margins() from Widget. Since AbstractScrollableWidget already has a method called content_size, the convenience method, with the same name, in Widget has to be explicitly called.
2021-09-29LibGUI: Account for scrollbar width when calculating autoscroll deltaMarcus Nilsson
2021-09-16LibGUI: Add a AutoScroll timer to AbstractScrollableWidgetMarcus Nilsson
This commit adds a timer to AbstractScrollableWidget that can be used when implementing automatic scrolling. By overriding on_automatic_scrolling_timer_fired() we can calculate the scrolling delta when dragging objects, and redraw as needed. A helper function, automatic_scroll_delta_from_position() gives us a delta that we can use to calculate speed and direction. By default m_autoscroll_threshold is 20 pixels from the edge, and gives a linear change in scroll delta.
2021-05-04LibGUI: Rename ScrollableWidget.cpp => AbstractScrollableWidget.cppAndreas Kling