xtd 1.0.0
Loading...
Searching...
No Matches
vertical_layout_panel.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "panel.hpp"
7#include "tab_page.hpp"
8#include <map>
9
11namespace xtd {
13 namespace forms {
33 public:
35
40
42
46 [[nodiscard]] auto control_layout_styles() const noexcept -> const vertical_control_layout_style_collection&;
47
52 [[nodiscard]] auto control_layout_style(const control_ref& control) const -> const vertical_control_layout_style&;
59
61
65 [[nodiscard]] static auto create() -> vertical_layout_panel;
69 [[nodiscard]] static auto create(const xtd::drawing::point& location) -> vertical_layout_panel;
74 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size) -> vertical_layout_panel;
80 [[nodiscard]] static auto create(const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> vertical_layout_panel;
84 [[nodiscard]] static auto create(const xtd::forms::control& parent) -> vertical_layout_panel;
89 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location) -> vertical_layout_panel;
95 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size) -> vertical_layout_panel;
102 [[nodiscard]] static auto create(const xtd::forms::control& parent, const xtd::drawing::point& location, const xtd::drawing::size& size, const xtd::string& name) -> vertical_layout_panel;
104
105 protected:
107
109 auto on_control_added(const xtd::forms::control_event_args& e) -> void override;
110 auto on_control_removed(const xtd::forms::control_event_args& e) -> void override;
111 auto on_layout(const xtd::event_args& e) -> void override;
113
114 private:
115 vertical_control_layout_style_collection control_layout_styles_;
116 };
117 }
118}
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...
Used to group collections of controls.
Definition panel.hpp:32
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition vertical_control_layout_style.hpp:23
vertical_layout_panel()=default
Initialises a new instance of vertical layout panel class.
auto on_control_removed(const xtd::forms::control_event_args &e) -> void override
Raises the xtd::forms::control::control_removed event.
auto control_layout_style(const control_ref &control) const -> const vertical_control_layout_style &
Gets vertical control layout style for specified child controls.
auto on_layout(const xtd::event_args &e) -> void override
Raises the xtd::forms::control::layout event.
static auto create() -> vertical_layout_panel
A factory to create an xtd::forms::vertical_layout_panel.
auto on_control_added(const xtd::forms::control_event_args &e) -> void override
Raises the xtd::forms::control::control_added event.
auto control_layout_styles() const noexcept -> const vertical_control_layout_style_collection &
Gets vertical control layout style for all child controls.
std::vector< xtd::collections::generic::key_value_pair< xtd::forms::control_ref, xtd::forms::vertical_control_layout_style > > vertical_control_layout_style_collection
A collection that stores vertical_control_layout_style objects.
Definition vertical_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
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.
Contains xtd::forms::vertical_control_layout_style_collection typedef.