xtd 0.2.0
hello_world_label.cpp

The classic first application "Hello, World!" with xtd::forms::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/forms/application>
#include <xtd/forms/form>
#include <xtd/forms/label>
using namespace xtd;
using namespace xtd::drawing;
using namespace xtd::forms;
namespace hello_world_label_example {
class main_form : public form {
public:
main_form() {
text("Hello world (label)");
controls().push_back(label);
label.dock(dock_style::fill);
label.shadow(true);
label.text("Hello, World!");
}
private:
};
}
auto main()->int {
application::run(hello_world_label_example::main_form {});
}