AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AViewContainer Class Reference

A trivial modifiable view that represents a set of views. More...

#include <AUI/View/AViewContainer.h>

Detailed Description

AViewContainer can store, render, resize, provide events to and handle the child views.

AViewContainer does not control the position and size of the child views by itself; instead, it delegates that responsibility to it's layout manager.

Since AViewContainer is an instance of AView, AViewContainer can handle AViewContainers recursively, thus, making possible complex UI by nested AViewContainers with different layout managers.

Note
Consider using AViewContainerBase as a base class when possible. Use AViewContainer if you want to expose view modifying methods such as addView, removeView, setContents, setLayout, etc. Use AViewContainerBase if these methods might cause unwanted interference with implementation details of your view.
Examples
/home/runner/work/aui/aui/aui.views/src/AUI/View/AView.h, and examples/7guis/cells/src/main.cpp.

Member Function Documentation

> All members, including inherited

◆ addViewCustomLayout()

void AViewContainerBase::addViewCustomLayout ( const _< AView > & view)

User is obligated to manage view's layout by themselves. Implement applyGeometryToChildren() to do so.

View is not visible until it's layout is determined.

See also
AView::mSkipUntilLayoutUpdate

◆ setContents()