xtd.forms - Reference Guide  0.1.0
Modern c++17 library containing classes for creating Windows-based applications that take full advantage of the rich user interface features available in the Microsoft Windows, Apple macOS and Linux like Ubuntu operating system.
xtd.forms - Reference Guide Documentation

Notes

xtd.forms is under development.

Features

  • Contains common controls, containers, menu, toolbar, components, various dialogs, ...
  • Easy catch control events by using event and delegates classes.
  • All controls are natives (win32 on windows, cocoa on macOS, gtk+3 on linux).
  • ...

For more information see xtd.foms website (or markdown documentations) and Reference Guide).

Examples

The following examples "Hello, world!" show how use form and button control, catch event click and show a message box.

forms_hello_world.cpp:

#include <xtd/xtd.forms>
using namespace xtd::forms;
int main() {
button1.text("Click me");
button1.location({10, 10});
button1.click += [] {
message_box::show("Hello, World!");
};
form form1;
form1.text("Hello World Form");
form1.controls().push_back(button1);
application::run(form1);
}

For more examples see examples.

Download and install

Before running examples you must download and install xtd.forms. To download and install it read Downloads.md file.