xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
vertical_layout_panel.h
Go to the documentation of this file.
1
4#pragma once
5#include <map>
7#include "panel.h"
8
10namespace xtd {
12 namespace forms {
23 public:
26
29 const vertical_control_layout_style_collection& control_layout_styles() const {return control_layout_styles_;}
30
41
42 protected:
45 void on_layout(const xtd::event_args& e) override;
46
47 private:
48 vertical_control_layout_style_collection control_layout_styles_;
49 };
50 }
51}
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
Used to group collections of controls.
Definition: panel.h:21
Implements the basic functionality that represents the appearance and behavior of a control layout.
Definition: vertical_control_layout_style.h:18
Used to group collections of vertically aligned controls.
Definition: vertical_layout_panel.h:22
vertical_layout_panel()=default
Initialises a new instance of vertical layout panel class.
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the control::control_removed event.
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 control::control_added event.
vertical_layout_panel & control_layout_style(const control_ref &control, const vertical_control_layout_style &value)
Sets vertical control layout style for specified child controls.
const vertical_control_layout_style_collection & control_layout_styles() const
Gets vertical control layout style for all child controls.
Definition: vertical_layout_panel.h:29
void on_layout(const xtd::event_args &e) override
Raises the control::layout event.
std::vector< std::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:20
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition: control_ref.h:21
@ e
The E key.
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.
Contains xtd::forms::vertical_control_layout_style_collection typedef.