xtd 0.2.0
Loading...
Searching...
No Matches
vertical_layout_panel.h
Go to the documentation of this file.
1
4#pragma once
5#include "panel.h"
7#include <map>
8
10namespace xtd {
12 namespace forms {
32 public:
34
39
41
46
58
60
68 static vertical_layout_panel create(const drawing::point& location);
73 static vertical_layout_panel create(const drawing::point& location, const drawing::size& size);
79 static vertical_layout_panel create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
88 static vertical_layout_panel create(const control& parent, const drawing::point& location);
94 static vertical_layout_panel create(const control& parent, const drawing::point& location, const drawing::size& size);
101 static vertical_layout_panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::string& name);
103
104 protected:
106
112 xtd::uptr<xtd::object> clone() const override;
113
116 void on_layout(const xtd::event_args& e) override;
118
119 private:
120 vertical_control_layout_style_collection control_layout_styles_;
121 };
122 }
123}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Provides data for the xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition control_event_args.h:27
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition control_layout_style.h:25
Defines the base class for controls, which are components with visual representation.
Definition control.h: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.
Used to group collections of controls.
Definition panel.h:32
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition vertical_control_layout_style.h:23
Used to group collections of vertically aligned controls.
Definition vertical_layout_panel.h:31
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.
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.
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::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.h:25
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition control_ref.h:25
@ e
The E key.
@ location
Specifies that both the x and y coordinates of the control are defined.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::style_sheets::panel class.
Contains xtd::forms::vertical_control_layout_style_collection typedef.