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

The classic first application "Hello, World!" with xtd::forms::emoticon control.

Windows

macOS

Gnome

#include <xtd/xtd>
using namespace xtd;
using namespace xtd::forms;
namespace hello_world_emoticons_example {
class main_form : public form {
public:
main_form() {
text("Hello world (emoticons)");
auto_size_mode(forms::auto_size_mode::grow_and_shrink);
auto_size(true);
label.parent(*this);
label.text(emoticons::waving_hand_sign + ", " + emoticons::earth_globe_americas + emoticons::heavy_exclamation_mark_symbol);
}
private:
};
}
auto main() -> int {
application::run(hello_world_emoticons_example::main_form {});
}
Defines a particular format for text, including font face, size, and style attributes....
Definition font.h:45
virtual drawing::font font() const noexcept
Gets the font of the text displayed by the control.
virtual const xtd::string & text() const noexcept
Gets the text associated with this control.
virtual bool auto_size() const noexcept
Gets a value that indicates whether the control resizes based on its contents.
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
Represents a window or dialog box that makes up an application's user interface.
Definition form.h:54
Represents a standard Windows label.
Definition label.h:38
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition auto_size_mode.h:22
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10