xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
horizontal_layout_panel.h
Go to the documentation of this file.
1 #pragma once
6 #include "panel.h"
7 
9 namespace xtd {
11  namespace forms {
21  class horizontal_layout_panel : public panel {
22  public:
24  horizontal_layout_panel() = default;
25 
28  const horizontal_control_layout_style_collection& control_layout_styles() const {return control_layout_styles_;}
29 
40 
41  protected:
43  void on_control_removed(const xtd::forms::control_event_args& e) override;
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 }
const horizontal_control_layout_style & control_layout_style(const control_ref &control) const
Gets horizontal control layout style for specified child controls.
Contains xtd::forms::panel container.
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
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Contains xtd::forms::horizontal_control_layout_style_collection typedef.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Used to group collections of controls.
Definition: panel.h:21
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_collection & control_layout_styles() const
Gets horizontal control layout style for all child controls.
Definition: horizontal_layout_panel.h:28
Used to group collections of horizontally aligned controls.
Definition: horizontal_layout_panel.h:21
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
Provides data for the control_added and control_removed events.
Definition: control_event_args.h:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition: control_ref.h:21
void on_layout(const xtd::event_args &e) override
Raises the control::layout event.
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the control::control_removed event.
Implements the basic functionality that represents the appearance and behavior of a control layout...
Definition: horizontal_control_layout_style.h:18