xtd 1.0.0
Loading...
Searching...
No Matches
horizontal_layout_panel.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "tab_page.hpp"
7#include "panel.hpp"
8
10namespace xtd {
12 namespace forms {
32 public:
34
39
41
45 [[nodiscard]] auto control_layout_styles() const noexcept -> const xtd::forms::horizontal_control_layout_style_collection&;
46
58
60
64 [[nodiscard]] static auto create() -> horizontal_layout_panel;
68 [[nodiscard]] static auto create(const xtd::drawing::point& location) -> horizontal_layout_panel;
73 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size) -> horizontal_layout_panel;
79 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> horizontal_layout_panel;
83 [[nodiscard]] static auto create(const xtd::forms::control& parent) -> horizontal_layout_panel;
88 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location) -> horizontal_layout_panel;
94 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size) -> horizontal_layout_panel;
101 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> horizontal_layout_panel;
103
104 protected:
106
108 auto on_control_added(const xtd::forms::control_event_args& e) -> void override;
109 auto on_control_removed(const xtd::forms::control_event_args& e) -> void override;
110 auto on_layout(const xtd::event_args& e) -> void override;
112
113 private:
115 };
116 }
117}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Provides data for the xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition control_event_args.hpp:27
Defines the base class for controls, which are components with visual representation.
Definition control.hpp:81
virtual auto size() const noexcept -> xtd::drawing::size
Gets the height and width of the control.
virtual auto parent() const noexcept -> std::optional< xtd::forms::control_ref >
Gets the parent container of the control.
virtual auto name() const noexcept -> const xtd::string &
Gets the name of the control.
virtual auto location() const noexcept -> xtd::drawing::point
Gets the coordinates of the upper-left corner of the control relative to the upper-left corner of its...
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition horizontal_control_layout_style.hpp:23
auto on_control_removed(const xtd::forms::control_event_args &e) -> void override
Raises the xtd::forms::control::control_removed event.
static auto create() -> horizontal_layout_panel
A factory to create an xtd::forms::horizontal_layout_panel.
auto on_control_added(const xtd::forms::control_event_args &e) -> void override
Raises the xtd::forms::control::control_added event.
horizontal_layout_panel()=default
Initialises a new instance of horizontal layout panel class.
auto control_layout_styles() const noexcept -> const xtd::forms::horizontal_control_layout_style_collection &
Gets horizontal control layout style for all child controls.
auto control_layout_style(const xtd::forms::control_ref &control) const -> const xtd::forms::horizontal_control_layout_style &
Gets horizontal control layout style for specified child controls.
auto on_layout(const xtd::event_args &e) -> void override
Raises the xtd::forms::control::layout event.
Used to group collections of controls.
Definition panel.hpp:32
std::vector< xtd::collections::generic::key_value_pair< xtd::forms::control_ref, xtd::forms::horizontal_control_layout_style > > horizontal_control_layout_style_collection
A collection that stores horizontal_control_layout_style objects.
Definition horizontal_control_layout_style_collection.hpp:25
xtd::ref< xtd::forms::control > control_ref
Represents a control reference.
Definition control_ref.hpp:25
@ e
The E key.
Definition keys.hpp:207
Contains xtd::forms::horizontal_control_layout_style_collection typedef.
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::forms::panel container.
Contains xtd::forms::tab_page container.