28class API_AUI_VIEWS AScrollAreaViewport:
public AViewContainerBase {
30 AScrollAreaViewport();
31 ~AScrollAreaViewport()
override;
36 const _<AView>& contents()
const noexcept {
40 void applyGeometryToChildren()
override;
42 void setScroll(glm::uvec2 scroll) {
43 if (mScroll == scroll) [[unlikely]] {
47 updateContentsScroll();
50 void setScrollX(
unsigned scroll) {
51 if (mScroll.x == scroll) [[unlikely]] {
55 updateContentsScroll();
58 void setScrollY(
unsigned scroll) {
59 if (mScroll.y == scroll) [[unlikely]] {
63 updateContentsScroll();
67 glm::uvec2 scroll()
const noexcept {
76 glm::uvec2 mScroll = {0, 0};
78 void updateContentsScroll();
void setContents(const _< AViewContainer > &container)
Moves (like via std::move) all children and layout of the specified container to this container.
Definition AViewContainerBase.cpp:515