The classic first application "Hello, World!" with GDI+ drawing objects.
#include <xtd/xtd>
namespace hello_world_paint_example {
class main_form :
public form {
public:
main_form() {
text(
"Hello world (paint)");
client_size({300, 300});
};
}
};
}
auto main() -> int {
}
static xtd::drawing::solid_brush dark_blue()
A system-defined brush object.
static const xtd::drawing::color light_blue
Gets a system-defined color that has an ARGB value of 0xFFADD8E6. This field is constant.
Definition color.hpp:248
Defines a xtd::drawing::brush of a single color. Brushes are used to fill graphics shapes,...
Definition solid_brush.hpp:29
static xtd::drawing::font default_font()
Gets the default font that applications can use for dialog boxes and forms.
@ italic
Italic text.
Definition font_style.hpp:23
@ bold
Bold text.
Definition font_style.hpp:21
@ center
Specifies that text is aligned in the center of the layout rectangle.
Definition string_alignment.hpp:27
@ e
The E key.
Definition console_key.hpp:96
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:16
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
void inflate(const drawing::size &sz) noexcept
Enlarges this xtd::drawing::rectangle by the specified amount.
void offset(const point &pos) noexcept
Adjusts the location of this rectangle by the specified amount.