xtd 0.2.0
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
47
59
61
80 static vertical_layout_panel create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
95 static vertical_layout_panel create(const control& parent, const drawing::point& location, const drawing::size& size);
102 static vertical_layout_panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
104
105 protected:
107
113 xtd::uptr<xtd::object> clone() const override;
114
117 void on_layout(const xtd::event_args& e) override;
119
120 private:
121 vertical_control_layout_style_collection control_layout_styles_;
122 };
123 }
124}
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 const xtd::string & name() const noexcept
Gets the name of the control.
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
panel()
Initialises a new instance of panel class.
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.
static vertical_layout_panel create()
A factory to create an xtd::forms::vertical_layout_panel.
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the xtd::forms::control::control_removed event.
xtd::uptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
const vertical_control_layout_style & control_layout_style(const control_ref &control) const
Gets vertical control layout style for specified child controls.
void on_control_added(const xtd::forms::control_event_args &e) override
Raises the xtd::forms::control::control_added event.
const vertical_control_layout_style_collection & control_layout_styles() const noexcept
Gets vertical control layout style for all child controls.
void on_layout(const xtd::event_args &e) override
Raises the xtd::forms::control::layout event.
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
std::vector< xtd::collections::generic::key_value_pair< control_ref, 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
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition control_ref.hpp:25
@ e
The E key.
Definition keys.hpp:207
@ location
Specifies that both the x and y coordinates of the control are defined.
Definition bounds_specified.hpp:30
@ size
Specifies that both the width and height property values of the control are defined.
Definition bounds_specified.hpp:36
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.