19#include <xtd/drawing/icon>
29 class application_context;
93 form& accept_button(std::nullptr_t);
113 form& cancel_button(std::nullptr_t);
117 virtual
bool close_box() const noexcept;
121 virtual
form& close_box(
bool value);
125 virtual
bool control_box() const noexcept;
129 virtual
form& control_box(
bool value);
141 control& font(std::nullptr_t) override;
154 virtual
bool help_button() const;
158 virtual
form& help_button(
bool value);
162 virtual const
xtd::drawing::icon& icon() const noexcept;
166 virtual
form& icon(const
xtd::drawing::icon& value);
170 virtual
bool maximize_box() const noexcept;
174 virtual
form& maximize_box(
bool value);
190 virtual
bool minimize_box() const noexcept;
194 virtual
form& minimize_box(
bool value);
198 bool modal() const noexcept;
202 virtual
double opacity() const noexcept;
205 virtual
form& opacity(
double opacity);
217 virtual
form& owner(std::nullptr_t);
226 virtual
bool show_icon() const noexcept;
230 virtual
form& show_icon(
bool value);
237 virtual
bool show_in_taskbar() const noexcept;
244 virtual
form& show_in_taskbar(
bool value);
282 virtual
bool top_level() const noexcept;
287 virtual
form& top_level(
bool top_level);
291 virtual
bool top_most() const noexcept;
295 virtual
form& top_most(
bool value);
317 static std::optional<
form_ref> active_form() noexcept;
327 void bring_to_front() override;
332 void center_to_screen();
466 drawing::
size default_size() const noexcept override;
476 std::unique_ptr<
xtd::
object> clone() const override;
508 bool closed_() const noexcept;
509 void internal_set_window_state();
511 void create_system_menu();
512 void destroy_system_menu();
524 std::shared_ptr<data> data_;
525 static std::optional<
form_ref> active_form_;
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 event.
Definition event.h:21
Specifies the contextual information about an application thread.
Definition application_context.h:24
Represents the menu structure of a form.
Definition main_menu.h:39
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::container_control class.
Contains xtd::forms::dialog_result enum class.
generic_event_handler<> event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.h:32
delegate< void(object &sender, form_closing_event_args &e)> form_closing_event_handler
Represents the method that handles a form_closing event.
Definition form_closing_event_handler.h:22
delegate< void(object &sender, const form_closed_event_args &e)> form_closed_event_handler
Represents the method that handles a form_closed event.
Definition form_closed_event_handler.h:23
#define forms_export_
Define shared library export.
Definition forms_export.h:13
xtd::forms::style_sheets::control form
The form data allows you to specify the box of a form control.
Definition form.h:21
size_t size
Represents a size of any object in bytes.
Definition types.h:197
Contains xtd::forms::main_menu menu.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::screen component.
Contains xtd::forms::style_sheets::status_bar class.