#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/form>
#include <xtd/forms/images>
#include <xtd/startup>
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");
}
private:
};
}
startup_(form_background_image_example::form_main::main);
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:32
#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:175
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition brush.hpp:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10