AUI Framework
develop
Cross-platform base for C++ UI apps
|
A scrollable container with vertical and horizontal scrollbars. More...
#include <AUI/View/AScrollArea.h>
AScrollArea should have expanding, or fixed size, or max size to be set in order to define it's sizing rules, as it's size cannot be defined by it's contents for obvious reasons.
FixedSize and Expanding stylesheet properties would work as expected. If neither of them is set, AScrollArea would occupy size by minimum size of it's contents, as a AViewContainer would do. In such case, you may restrict maximum size of AScrollArea with MaxSize property. AScrollArea will not exceed MaxSize, but also become actual scroll area, involving displaying scroll bars and handling scroll events. This behaviour is similar to Text.
Expanding is enabled by default. It can be disabled with ass::Expanding(0) property.
> All members, including inherited
|
overridevirtual |
Reimplemented from AView.
|
overridevirtual |
Reimplemented from AView.
|
overridevirtual |
Handles touch screen gesture event.
origin | position where the event(s) started to occur from. |
event | gesture event. |
AView::onGesture
emulates desktop events such as right click and scroll. Reimplemented from AView.
|
overridevirtual |
event | event |
Reimplemented from AView.
|
overridevirtual |
event | event |
Reimplemented from AView.
|
overridevirtual |
void AScrollArea::scrollTo | ( | ARect< int > | target, |
bool | nearestBorder = true ) |
target | target rectangle area in coordinate space of the window. |
nearestBorder | if true, the scroll is performed up to the nearest border of scroll area, and if the target is already fully visible, then scrollTo does not take effect. If false, the scroll is performed up to the top border of the target view. |
target | target view to scroll to. Must be direct or indirect child. |
nearestBorder | if true, the scroll is performed up to the nearest border of scroll area, and if the target is already fully visible, then scrollTo does not take effect. If false, the scroll is performed up to the top border of the target view. |
|
overridevirtual |
Reimplemented from AView.
|
inline |
|
inline |
Contents