xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
tutorial_simple_application.cpp
First we create the very basic xtd_forms program.
Windows
macOS
Gnome
#include <xtd/xtd>
namespace
tutorial {
class
simple :
public
xtd::forms::form
{
public
:
simple() {
text(
"Simple"
);
start_position(
xtd::forms::form_start_position::center_screen
);
}
static
auto
main() {
xtd::forms::application::run
(simple());
}
};
}
startup_
(tutorial::simple::main);
xtd::forms::application::run
static auto run() -> void
Begins running a standard application message loop on the current thread, without a form.
xtd::forms::form
Represents a window or dialog box that makes up an application's user interface.
Definition
form.hpp:54
startup_
#define startup_(...)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition
startup.hpp:284
xtd::forms::form_start_position::center_screen
@ center_screen
The form is centered on the current display, and has the dimensions specified in the form's size.
Definition
form_start_position.hpp:26
Generated on
for xtd by
Gammasoft
. All rights reserved.