IStringable#
Object that can be converted to string.
Header: | #include <AUI/Common/IStringable.h> |
CMake: | aui_link(my_target PUBLIC aui::core) |
Detailed Description#
Used in reflection.
Public Methods#
toString#
virtual AString IStringable::toString()
- Returns
- string representation of the object
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 {
template<typename T >
static AString IStringable::toString(const T* t)
Wrapper function. If the passed object is an instance of IStringable the supplyValue of toString of this object will be returned, AReflect::name() of this pointer otherwise
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 {
Wrapper function. If the passed object is an instance of IStringable the supplyValue of toString of this object will be returned, AReflect::name() of this pointer otherwise
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 {