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.
Go to the documentation of this file.
1 #pragma once
5 #include <map>
7 #include "panel.h"
10 namespace xtd {
12  namespace forms {
22  class vertical_layout_panel : public panel {
23  public:
28  vertical_layout_panel() = default;
36  const vertical_control_layout_style_collection& control_layout_styles() const {return control_layout_styles_;}
50  protected:
55  void on_control_removed(const xtd::forms::control_event_args& e) override;
56  void on_layout(const xtd::event_args& e) override;
59  private:
60  vertical_control_layout_style_collection control_layout_styles_;
61  };
62  }
63 }
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the control::control_removed event.
Initialises a new instance of vertical layout panel class.
void on_layout(const xtd::event_args &e) override
Raises the control::layout event.
Contains xtd::forms::panel container.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
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
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
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
const vertical_control_layout_style_collection & control_layout_styles() const
Gets vertical control layout style for all child controls.
Definition: vertical_layout_panel.h:36
const vertical_control_layout_style & control_layout_style(const control_ref &control) const
Gets vertical control layout style for specified child controls.
Contains xtd::forms::vertical_control_layout_style_collection typedef.
Defines the base class for controls, which are components with visual representation.
Definition: control.h:68
void on_control_added(const xtd::forms::control_event_args &e) override
Raises the control::control_added event.
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