xtd 0.2.0
Loading...
Searching...
No Matches
form_background_image.cpp

demonstrates how to use of xtd::forms::form control with background_image.

Windows

macOS

Gnome

#include <xtd/xtd>
namespace form_background_image_example {
class form_main : public form {
public:
static auto main() {
application::run(form_main());
}
form_main() {
double_buffered(true);
background_image(images::from_name("xtd", drawing::size(64, 64)));
text("form with background image example");
button.parent(*this);
button.text("Close");
button.location({10, 10});
button.click += event_handler(*this, &form::close);
}
private:
forms::button button;
};
}
startup_(form_background_image_example::form_main::main);
#define startup_(main_method)
Defines the entry point to be called when the application loads. Generally this is set either to the ...
Definition startup.hpp:168