Imitates behaviour of word wrapping, but uses views instead words.
More...
#include <AUI/Layout/AWordWrappingLayout.h>
- Examples
- examples/ui/views/src/ExampleWindow.cpp.
◆ addView()#
void AWordWrappingLayout::addView |
( |
const _< AView > & | view, |
|
|
AOptional< size_t > | index ) |
|
overridevirtual |
- Parameters
-
view | view to attach. |
index | index to insert at. If not specified, when the view is inserted at the end. |
See ABasicLayout for basic implementation of this method.
Implements ALayout.
◆ getMinimumHeight()#
int AWordWrappingLayout::getMinimumHeight |
( |
| ) |
|
|
overridevirtual |
◆ getMinimumWidth()#
int AWordWrappingLayout::getMinimumWidth |
( |
| ) |
|
|
overridevirtual |
◆ onResize()#
void AWordWrappingLayout::onResize |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
|
overridevirtual |
◆ removeView()#
- Parameters
-
view | view to detach. |
index | index of the view in the container. This value is indented for optimization purposes in most cases; the value may be ignored safely. |
See ABasicLayout for basic implementation of this method.
Implements ALayout.