19 #include <xtd/drawing/icon> 20 #include <xtd/io/path> 29 class application_context;
85 std::optional<ibutton_control_ref> accept_button() const noexcept;
93 form& accept_button(std::nullptr_t);
97 static std::optional<
form_ref> active_form() noexcept;
117 form& cancel_button(std::nullptr_t);
121 virtual
bool close_box() const noexcept;
125 virtual
form& close_box(
bool value);
129 virtual
bool control_box() const noexcept;
133 virtual
form& control_box(
bool value);
145 control& font(std::nullptr_t) override;
158 virtual
bool help_button() const;
162 virtual
form& help_button(
bool value);
166 virtual const
xtd::drawing::icon& icon() const noexcept;
170 virtual
form& icon(const
xtd::drawing::icon& value);
174 virtual
bool maximize_box() const noexcept;
178 virtual
form& maximize_box(
bool value);
194 virtual
bool minimize_box() const noexcept;
198 virtual
form& minimize_box(
bool value);
202 bool modal() const noexcept;
206 virtual
double opacity() const noexcept;
209 virtual
form& opacity(
double opacity);
213 virtual std::optional<
control_ref> owner() const noexcept;
221 virtual
form& owner(std::nullptr_t);
230 virtual
bool show_icon() const noexcept;
234 virtual
form& show_icon(
bool value);
241 virtual
bool show_in_taskbar() const noexcept;
248 virtual
form& show_in_taskbar(
bool value);
286 virtual
bool top_level() const noexcept;
291 virtual
form& top_level(
bool top_level);
295 virtual
bool top_most() const noexcept;
299 virtual
form& top_most(
bool value);
305 control& visible(
bool visible) override;
323 void bring_to_front() override;
328 void center_to_screen();
417 drawing::
size default_size() const noexcept override;
429 virtual
void on_deactivate(const
event_args& e);
431 void on_handle_created(const
event_args& e) override;
432 void on_handle_destroyed(const
event_args& e) override;
443 void on_location_changed(const
event_args& e) override;
445 void on_region_changed(const
event_args& e) override;
449 virtual
void on_system_colors_changed(const
event_args& e);
457 bool closed_() const noexcept;
458 void internal_set_window_state();
460 void create_system_menu();
461 void destroy_system_menu();
469 void wm_close(message& message);
470 void wm_recreate(message& message);
471 void wm_syscolor_change(message& message);
473 std::shared_ptr<data> data_;
474 static std::optional<
form_ref> active_form_;
Specifies the contextual information about an application thread.
Definition: application_context.h:24
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
Contains xtd::forms::screen component.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Represents an event.
Definition: event.h:21
Contains xtd::forms::container_control class.
Contains xtd::forms::status_bar container.
Contains xtd::forms::dialog_result enum class.
xtd::forms::style_sheets::control form
The form data allows you to specify the box of a form control.
Definition: form.h:21
static const ustring empty_string
Represents the empty string.
Definition: ustring.h:53
Represents the menu structure of a form.
Definition: main_menu.h:38
Contains xtd::forms::main_menu menu.
size_t size
Represents a size of any object in bytes.
Definition: types.h:195