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

Imitates behaviour of word wrapping, but uses views instead words. More...

#include <AUI/Layout/AWordWrappingLayout.h>

Public Member Functions

void onResize (int x, int y, int width, int height) override
 
int getMinimumWidth () override
 
int getMinimumHeight () override
 
void addView (const _< AView > &view, AOptional< size_t > index) override
 Attaches view to the layout.
 
void removeView (aui::no_escape< AView > view, size_t index) override
 Detaches view from the layout.
 

Detailed Description

Imitates behaviour of word wrapping, but uses views instead words.

Member Function Documentation

◆ addView()

void AWordWrappingLayout::addView ( const _< AView > & view,
AOptional< size_t > index )
overridevirtual

Attaches view to the layout.

Parameters
viewview to attach.
indexindex 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

Implements ALayout.

◆ getMinimumWidth()

int AWordWrappingLayout::getMinimumWidth ( )
overridevirtual

Implements ALayout.

◆ onResize()

void AWordWrappingLayout::onResize ( int x,
int y,
int width,
int height )
overridevirtual

Implements ALayout.

◆ removeView()

void AWordWrappingLayout::removeView ( aui::no_escape< AView > view,
size_t index )
overridevirtual

Detaches view from the layout.

Parameters
viewview to detach.
indexindex 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.


The documentation for this class was generated from the following files:
Inheritance diagram for AWordWrappingLayout:
Collaboration diagram for AWordWrappingLayout: