19#include <xtd/drawing/icon>
29 class application_context;
95 form& accept_button(std::nullptr_t);
115 form& cancel_button(std::nullptr_t);
119 virtual
bool close_box() const noexcept;
123 virtual
form& close_box(
bool value);
127 virtual
bool control_box() const noexcept;
131 virtual
form& control_box(
bool value);
143 control& font(std::nullptr_t) override;
156 virtual
bool help_button() const;
160 virtual
form& help_button(
bool value);
164 virtual const
xtd::drawing::icon& icon() const noexcept;
168 virtual
form& icon(const
xtd::drawing::icon& value);
172 virtual
bool maximize_box() const noexcept;
176 virtual
form& maximize_box(
bool value);
192 virtual
bool minimize_box() const noexcept;
196 virtual
form& minimize_box(
bool value);
200 bool modal() const noexcept;
204 virtual
double opacity() const noexcept;
207 virtual
form& opacity(
double opacity);
219 virtual
form& owner(std::nullptr_t);
228 virtual
bool show_icon() const noexcept;
232 virtual
form& show_icon(
bool value);
239 virtual
bool show_in_taskbar() const noexcept;
246 virtual
form& show_in_taskbar(
bool value);
284 virtual
bool top_level() const noexcept;
289 virtual
form& top_level(
bool top_level);
293 virtual
bool top_most() const noexcept;
297 virtual
form& top_most(
bool value);
329 void bring_to_front() override;
334 void center_to_screen();
375 static
form create(const
xtd::
string& text, const drawing::point& location);
381 static
form create(const
xtd::
string& text, const drawing::point& location, const drawing::
size&
size);
388 static
form create(const
xtd::
string& text, const drawing::point& location, const drawing::
size&
size, const
xtd::
string& name);
468 drawing::
size default_size() const noexcept override;
510 bool closed_() const noexcept;
511 void internal_set_window_state();
513 void create_system_menu();
514 void destroy_system_menu();
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:26
Represents the menu structure of a form.
Definition main_menu.h:41
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:24
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:25
#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:23
std::optional< type_t > optional
Represents the null_opt alias on std::nullopt_t.
Definition optional.h:181
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.h:25
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.