xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
label.cpp

The following code example demonstrate the use of label control.

Windows
label_w.png

label_wd.png
macOS
label_m.png

label_md.png
Gnome
label_g.png

label_gd.png
#include <xtd/xtd>
using namespace xtd::forms;
namespace examples {
class form1 : public form {
public:
form1() {
text("Label example");
label1.parent(*this);
label1.text("Label 1");
label1.location({10, 10});
}
private:
label label1;
};
}
int main() {
application::run(examples::form1());
}