Age | Commit message (Collapse) | Author |
|
This fixes the scrollbars in not showing till after a resize in Browser
:^)
|
|
This helps with debugging subclasses of AbstractScrollableWidget
|
|
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.
|
|
|
|
These changes are mainly nessecairy to remove dependence on the
temporary implicit conversions currently still in place.
|
|
These types are used to represent size information for layouts.
They can hold integer (int) values ≥0 or special values like shrink
and fit.
|
|
|
|
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."
|
|
|
|
This method help us to avoid repeating the pattern
'set_value(value() + delta)'.
|
|
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.
|
|
|
|
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.
|
|
|