|
virtual forms::auto_size_mode | auto_size_mode () const |
|
virtual panel & | auto_size_mode (forms::auto_size_mode value) |
|
virtual forms::border_style | border_style () const |
|
virtual panel & | border_style (forms::border_style border_style) |
|
drawing::size | default_size () const override |
|
virtual bool | auto_scroll () const |
|
virtual scrollable_control & | auto_scroll (bool auto_scroll) |
|
drawing::size | auto_scroll_margin () const |
|
scrollable_control & | auto_scroll_margin (const drawing::size &value) |
|
drawing::rectangle | display_rectangle () const override |
|
virtual bool | hscroll () const |
|
virtual scrollable_control & | hscroll (bool hscroll) |
|
virtual bool | vscroll () const |
|
virtual scrollable_control & | vscroll (bool vscroll) |
|
| control () |
| Initializes a new instance of the Control class with default settings. More...
|
|
| control (const ustring &text) |
| Initializes a new instance of the control class with specific text. More...
|
|
| control (const control &parent, const ustring &text) |
| nitializes a new instance of the control class as a child control, with specific text. More...
|
|
| control (const ustring &text, int32_t left, int32_t top, int32_t width, int32_t height) |
| Initializes a new instance of the control class with specific text, size, and location. More...
|
|
| control (const control &parent, const ustring &text, int32_t left, int32_t top, int32_t width, int32_t height) |
| Initializes a new instance of the control class as a child control, with specific text, size, and location. More...
|
|
virtual anchor_styles | anchor () const |
| Gets the edges of the container to which a control is bound and determines how a control is resized with its parent. More...
|
|
virtual control & | anchor (anchor_styles anchor) |
| Gets the edges of the container to which a control is bound and determines how a control is resized with its parent. More...
|
|
virtual drawing::point | auto_scroll_point () const |
| Gets where this control is scrolled to in scroll_control_into_view(control). More...
|
|
virtual bool | auto_size () const |
| Gets a value that indicates whether the control resizes based on its contents. More...
|
|
virtual control & | auto_size (bool auto_size) |
| Sets a value that indicates whether the control resizes based on its contents. More...
|
|
virtual drawing::color | back_color () const |
| Gets the background color for the control. More...
|
|
virtual control & | back_color (const drawing::color &color) |
| Sets the background color for the control. More...
|
|
virtual int32_t | bottom () const |
| Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. More...
|
|
virtual drawing::rectangle | bounds () const |
| Gets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. More...
|
|
virtual control & | bounds (const drawing::rectangle &bounds) |
| Sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. More...
|
|
virtual bool | can_focus () const |
| Gets a value indicating whether the control can receive focus. More...
|
|
bool | can_raise_events () const override |
| Determines if events can be raised on the control. More...
|
|
virtual bool | can_select () const |
| Gets a value indicating whether the control can be selected. More...
|
|
virtual const drawing::rectangle & | client_rectangle () const |
| Gets the rectangle that represents the client area of the control. More...
|
|
virtual const drawing::size & | client_size () const |
| Gets the height and width of the client area of the control. More...
|
|
virtual control & | client_size (const drawing::size &client_size) |
| Sets the height and width of the client area of the control. More...
|
|
virtual ustring | compagny_name () const |
| Gets the name of the company or creator of the application containing the control. More...
|
|
virtual control_collection & | controls () |
| Gets the collection of controls contained within the control. More...
|
|
virtual const control_collection & | controls () const |
| Gets the collection of controls contained within the control. More...
|
|
void | create_control () |
|
drawing::graphics | create_graphics () const |
|
virtual void | create_handle () |
|
virtual bool | created () |
| Gets a value indicating whether the control has been created. More...
|
|
virtual forms::cursor | cursor () const |
|
virtual control & | cursor (const forms::cursor &cursor) |
|
virtual drawing::color | default_back_color () const |
| Gets the default background color of the control. More...
|
|
virtual forms::cursor | default_cursor () const |
|
virtual drawing::font | default_font () const |
|
virtual drawing::color | default_fore_color () const |
|
void | destroy_control () |
|
virtual void | destroy_handle () |
|
virtual dock_style | dock () const |
| Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. More...
|
|
virtual control & | dock (dock_style dock) |
|
virtual bool | enabled () const |
|
virtual control & | enabled (bool enabled) |
|
bool | focus () |
|
virtual bool | focused () const |
|
virtual drawing::font | font () const |
|
virtual control & | font (const drawing::font &font) |
|
virtual drawing::color | fore_color () const |
|
virtual control & | fore_color (const drawing::color &color) |
|
intptr_t | handle () const override |
| Gets the handle to the window represented by the implementer. More...
|
|
virtual int32_t | height () const |
|
virtual control & | height (int32_t height) |
|
virtual void | hide () |
|
virtual void | invalidate () const |
|
virtual void | invalidate (bool invalidate_children) const |
|
virtual void | invalidate (const drawing::rectangle &rect) const |
|
virtual void | invalidate (const drawing::rectangle &rect, bool invalidate_children) const |
|
void | invoke (delegate< void(std::vector< std::any >)> value, const std::vector< std::any > &args) |
|
void | invoke (delegate< void()> value) |
|
bool | is_handle_created () const |
|
virtual int32_t | left () const |
|
virtual control & | left (int32_t left) |
|
virtual drawing::point | location () const |
|
virtual control & | location (const drawing::point &location) |
|
virtual const ustring & | name () const |
|
virtual control & | name (const ustring &name) |
|
virtual std::optional< control_ref > | parent () const |
|
virtual control & | parent (const control &parent) |
|
virtual control & | parent (std::nullptr_t) |
|
void | perform_layout () |
| Forces the control to apply layout logic to all its child controls. More...
|
|
xtd::drawing::point | point_to_client (const xtd::drawing::point &p) |
|
xtd::drawing::point | point_to_screen (const xtd::drawing::point &p) |
|
virtual ustring | product_name () const |
|
bool | recreating_handle () const |
|
virtual void | refresh () const |
|
void | resume_layout () |
| Resumes usual layout logic. More...
|
|
void | resume_layout (bool perform_layout) |
| Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests. More...
|
|
virtual int32_t | right () const |
|
intptr_t | send_message (intptr_t hwnd, int32_t msg, intptr_t wparam, intptr_t lparam) const |
|
void | set_auto_size_mode (auto_size_mode auto_size_mode) |
|
void | set_bounds (int32_t x, int32_t y, int32_t width, int32_t height) |
|
void | set_bounds (int32_t x, int32_t y, int32_t width, int32_t height, bounds_specified specified) |
|
virtual void | show () |
|
virtual drawing::size | size () const |
|
virtual control & | size (const drawing::size &size) |
|
void | suspend_layout () |
| Temporarily suspends the layout logic for the control. More...
|
|
virtual std::any | tag () const |
| Gets the object that contains data about the control. More...
|
|
virtual control & | tag (std::any tag) |
| Sets the object that contains data about the control. More...
|
|
virtual const ustring & | text () const |
|
virtual control & | text (const ustring &text) |
|
virtual ustring | to_string () const |
|
virtual int32_t | top () const |
|
virtual control & | top (int32_t top) |
|
virtual std::optional< control_ref > | top_level_control () const |
|
virtual void | update () const |
|
virtual bool | visible () const |
|
virtual control & | visible (bool visible) |
|
virtual int32_t | width () const |
|
virtual control & | width (int32_t width) |
|
|
using | control_collection = layout::arranged_element_collection< control_ref > |
| Represents a collection of controls. More...
|
|
template<typename control_t > |
static std::unique_ptr< control_t > | create (const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty) |
|
template<typename control_t > |
static std::unique_ptr< control_t > | create (const control &parent, const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty) |
|
template<typename control_t > |
static std::unique_ptr< control_t > | create (const ustring &text, const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty) |
|
template<typename control_t > |
static std::unique_ptr< control_t > | create (const control &parent, const ustring &text, const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const drawing::color &back_color=drawing::color::empty, const drawing::color &fore_color=drawing::color::empty) |
|
static std::optional< control_ref > | from_child_handle (intptr_t handle) |
|
static std::optional< control_ref > | from_handle (intptr_t handle) |
|
static forms::mouse_buttons | mouse_buttons () |
|
event< control, event_handler< control & > > | auto_size_changed |
|
event< control, event_handler< control & > > | back_color_changed |
|
event< control, event_handler< control & > > | click |
|
event< control, event_handler< control & > > | client_size_changed |
|
event< control, control_event_handler< control & > > | control_added |
|
event< control, control_event_handler< control & > > | control_removed |
|
event< control, event_handler< control & > > | cursor_changed |
|
event< control, event_handler< control & > > | dock_changed |
|
event< control, event_handler< control & > > | double_click |
|
event< control, event_handler< control & > > | enabled_changed |
|
event< control, event_handler< control & > > | font_changed |
|
event< control, event_handler< control & > > | fore_color_changed |
|
event< control, event_handler< control & > > | got_focus |
|
event< control, event_handler< control & > > | handle_created |
|
event< control, event_handler< control & > > | handle_destroyed |
|
event< control, key_event_handler< control & > > | key_down |
|
event< control, key_press_event_handler< control & > > | key_press |
|
event< control, key_event_handler< control & > > | key_up |
|
event< control, event_handler< control & > > | layout |
| Occurs when a control should reposition its child controls. More...
|
|
event< control, event_handler< control & > > | location_changed |
|
event< control, event_handler< control & > > | lost_focus |
|
event< control, mouse_event_handler< control & > > | mouse_click |
|
event< control, mouse_event_handler< control & > > | mouse_double_click |
|
event< control, mouse_event_handler< control & > > | mouse_down |
|
event< control, event_handler< control & > > | mouse_enter |
|
event< control, mouse_event_handler< control & > > | mouse_horizontal_wheel |
|
event< control, event_handler< control & > > | mouse_leave |
|
event< control, mouse_event_handler< control & > > | mouse_move |
|
event< control, mouse_event_handler< control & > > | mouse_up |
|
event< control, mouse_event_handler< control & > > | mouse_wheel |
|
event< control, paint_event_handler< control & > > | paint |
|
event< control, event_handler< control & > > | parent_changed |
|
event< control, event_handler< control & > > | resize |
|
event< control, event_handler< control & > > | size_changed |
|
event< control, event_handler< control & > > | text_changed |
|
event< control, event_handler< control & > > | visible_changed |
|