xtd 0.2.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
46
58
60
79 static horizontal_layout_panel create(const drawing::point& location, const drawing::size& size, const xtd::string& name);
101 static horizontal_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 horizontal_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.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.
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition horizontal_control_layout_style.hpp:23
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.
const horizontal_control_layout_style & control_layout_style(const control_ref &control) const
Gets horizontal control layout style for specified child controls.
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_layout(const xtd::event_args &e) override
Raises the xtd::forms::control::layout event.
panel()
Initialises a new instance of panel class.
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, 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
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
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.