xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
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 {
22 public:
25
28 const horizontal_control_layout_style_collection& control_layout_styles() const {return control_layout_styles_;}
29
40
41 protected:
44 void on_layout(const xtd::event_args& e) override;
45
46 private:
47 horizontal_control_layout_style_collection control_layout_styles_;
48 };
49 }
50}
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 control_added and control_removed events.
Definition control_event_args.h:23
Defines the base class for controls, which are components with visual representation.
Definition control.h:67
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition horizontal_control_layout_style.h:18
Used to group collections of horizontally aligned controls.
Definition horizontal_layout_panel.h:21
const horizontal_control_layout_style_collection & control_layout_styles() const
Gets horizontal control layout style for all child controls.
Definition horizontal_layout_panel.h:28
void on_control_added(const xtd::forms::control_event_args &e) override
Raises the 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.
horizontal_layout_panel & control_layout_style(const control_ref &control, const horizontal_control_layout_style &value)
Sets horizontal control layout style for specified child controls.
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the control::control_removed event.
void on_layout(const xtd::event_args &e) override
Raises the control::layout event.
Used to group collections of controls.
Definition panel.h:21
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:20
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition control_ref.h:21
@ e
The E key.
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 about_box.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::forms::panel container.