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.
hello_world_label.cpp

The following code example demonstrate the use of label control.

Windows
hello_world_label_w.png

hello_world_label_wd.png
macOS
hello_world_label_m.png

hello_world_label_md.png
Gnome
hello_world_label_g.png

hello_world_label_gd.png
#include <xtd/xtd>
using namespace xtd;
using namespace xtd::drawing;
using namespace xtd::forms;
namespace examples {
class main_form : public form {
public:
main_form() {
text("Hello world (label)");
controls().push_back(label);
label.dock(dock_style::fill);
label.text("Hello, World!");
}
private:
};
}
int main() {
application::run(examples::main_form());
}