Label¶
A read-only text label.
Declaration¶
namespace bdn::ui {
class Label : public View
}
Example¶
#include <bdn/ui/Label.h>
// ...
auto label = std::make_shared<Label>();
label->text = "Hello World";
Properties¶
-
The label's text.
-
Property<bool> wrap
If true, the text will wrap if it exceeds the available width.
Defaults to
false
-
Property<TextOverflow> textOverflow
Specifies the way text is cut if it does not fit inside the view. Defaults to
TextOverflow::EllipsisTail
.
Events¶
-
Notifier<const std::string &> &onLinkClick()
A notifier that is triggered when the user clicks a link.
Relationships¶
Inherits from: View