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

Static Public Member Functions#

static void inflate (aui::no_escape< AViewContainer > root, const _< AView > &view)
 Wraps view with root using Stacked layout and expanding.
 

Member Function Documentation#

◆ inflate()#

static void ALayoutInflater::inflate ( aui::no_escape< AViewContainer > root,
const _< AView > & view )
static

Used when usage of AViewContainer::setContents is not possible (see AViewContainer::setContents)

Parameters
rootcontainer to wrap with
viewview to be wrapped
Note
Clears contents of root.
Stolen from Android.
Examples
examples/7guis/cells/src/main.cpp, and examples/ui/views/src/ExampleWindow.cpp.