xtd 0.2.0
Loading...
Searching...
No Matches
horizontal_layout_panel.h
Go to the documentation of this file.
1
4#pragma once
6#include "panel.h"
7
9namespace xtd {
11 namespace forms {
29 public:
31
36
38
43
55
57
65 static horizontal_layout_panel create(const drawing::point& location);
70 static horizontal_layout_panel create(const drawing::point& location, const drawing::size& size);
76 static horizontal_layout_panel create(const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
85 static horizontal_layout_panel create(const control& parent, const drawing::point& location);
91 static horizontal_layout_panel create(const control& parent, const drawing::point& location, const drawing::size& size);
98 static horizontal_layout_panel create(const control& parent, const drawing::point& location, const drawing::size& size, const xtd::ustring& name);
100
101 protected:
103
109 std::unique_ptr<xtd::object> clone() const override;
110
113 void on_layout(const xtd::event_args& e) override;
115
116 private:
117 horizontal_control_layout_style_collection control_layout_styles_;
118 };
119 }
120}
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:25
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition control_layout_style.h:23
Defines the base class for controls, which are components with visual representation.
Definition control.h:79
virtual const xtd::ustring & name() const noexcept
Gets the name of the control.
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition horizontal_control_layout_style.h:21
Used to group collections of horizontally aligned controls.
Definition horizontal_layout_panel.h:28
const horizontal_control_layout_style_collection & control_layout_styles() const noexcept
Gets horizontal control layout style for all child controls.
static horizontal_layout_panel create()
A factory to create an xtd::forms::horizontal_layout_panel.
void on_control_added(const xtd::forms::control_event_args &e) override
Raises the xtd::forms::control::control_added event.
horizontal_layout_panel()=default
Initialises a new instance of horizontal layout panel class.
std::unique_ptr< xtd::object > clone() const override
Creates a new object that is a copy of the current instance.
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the xtd::forms::control::control_removed event.
void on_layout(const xtd::event_args &e) override
Raises the xtd::forms::control::layout event.
Used to group collections of controls.
Definition panel.h:30
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
size_t size
Represents a size of any object in bytes.
Definition types.h:197
std::vector< std::pair< control_ref, horizontal_control_layout_style > > horizontal_control_layout_style_collection
A collection that stores horizontal_control_layout_style objects.
Definition horizontal_control_layout_style_collection.h:23
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition control_ref.h:23
@ e
The E key.
@ location
Specifies that both the x and y coordinates of the control are defined.
Contains xtd::forms::horizontal_control_layout_style_collection typedef.
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.