Label

Display text.

Header#include "nativeui/label.h"
Namespacenamespace nu
Typeclass (RefCounted)
InheritsView

Constructors

Label(const std::string& text)

Create a new Label with text.

Parameters

Class properties

const char* kClassName

The class name of this view.

Methods

void SetText(const std::string& text)

Set the text to display.

Parameters

std::string GetText() const

Return the text displayed.

Return

std::string