Skip to content

AWordWrappingLayout#

Imitates behaviour of word wrapping, but uses views instead words

Header:#include <AUI/Layout/AWordWrappingLayout.h>
CMake:aui_link(my_target PUBLIC aui::views)

Examples#

examples/ui/views/src/ExampleWindow.cpp

Views Example - All-in-one views building example.

                                    }
                                }),
                            _new<ASpacerExpanding>(),
                          },
                          AUI_DECLARATIVE_FOR(i, *state->colors, AWordWrappingLayout) {
                              return Horizontal {
                                  _new<ALabel>(i.toString()) AUI_WITH_STYLE {
                                      TextColor { i.readableBlackOrWhite() },
                                  }
                              } AUI_WITH_STYLE {