xtd 0.2.0
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(true);
label.parent(*this);
}
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.hpp:45
static void run()
Begins running a standard application message loop on the current thread, without a form.
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.
static const xtd::forms::emoticon heavy_exclamation_mark_symbol
Gets a system-defined xtd::forms::emoticon that has a string value of 0x00002757. This field is const...
Definition emoticons.hpp:352
static const xtd::forms::emoticon waving_hand_sign
Gets a system-defined xtd::forms::emoticon that has a string value of 0x0001F44B. This field is const...
Definition emoticons.hpp:1134
static const xtd::forms::emoticon earth_globe_americas
Gets a system-defined xtd::forms::emoticon that has a string value of 0x0001F30E. This field is const...
Definition emoticons.hpp:520
Represents a window or dialog box that makes up an application's user interface.
Definition form.hpp:54
Represents a standard Windows label.
Definition label.hpp:38
auto_size_mode
Specifies how a control will behave when its auto_size property is enabled.
Definition auto_size_mode.hpp:22
@ auto_size
The picture_box is sized equal to the size of the image that it contains.
Definition picture_box_size_mode.hpp:28
@ grow_and_shrink
The control grows or shrinks to fit its contents. The control cannot be resized manually.
Definition auto_size_mode.hpp:24
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:217
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