xtd 0.2.0
vertical_layout_panel.h
Go to the documentation of this file.
1 #pragma once
5 #include "panel.h"
7 #include <map>
8 
10 namespace xtd {
12  namespace forms {
29  class vertical_layout_panel : public panel {
30  public:
32 
35  vertical_layout_panel() = default;
37 
39 
44 
56 
58 
60  //using control::create;
73  static vertical_layout_panel create(const control& parent, const drawing::point& location = {-1, -1}, const drawing::size& size = {-1, -1}, const xtd::ustring& name = xtd::ustring::empty_string);
75 
76  protected:
78 
81  void on_control_removed(const xtd::forms::control_event_args& e) override;
82  void on_layout(const xtd::event_args& e) override;
84 
85  private:
86  vertical_control_layout_style_collection control_layout_styles_;
87  };
88  }
89 }
void on_control_removed(const xtd::forms::control_event_args &e) override
Raises the xtd::forms::control::control_removed event.
vertical_layout_panel()=default
Initialises a new instance of vertical layout panel class.
void on_layout(const xtd::event_args &e) override
Raises the xtd::forms::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:21
Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional ...
Definition: point.h:54
Stores an ordered pair of integers, which specify a height and width.
Definition: size.h:31
Used to group collections of vertically aligned controls.
Definition: vertical_layout_panel.h:29
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:30
virtual const xtd::ustring & name() const noexcept
Gets the name of the control.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
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:23
virtual drawing::point location() const noexcept
Gets the coordinates of the upper-left corner of the control relative to the upper-left corner of its...
static vertical_layout_panel create(const drawing::point &location={-1, -1}, const drawing::size &size={-1, -1}, const xtd::ustring &name=xtd::ustring::empty_string)
A factory to create an xtd::forms::vertical_layout_panel with specified location, size...
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.
const vertical_control_layout_style_collection & control_layout_styles() const noexcept
Gets vertical control layout style for all child controls.
Defines the base class for controls, which are components with visual representation.
Definition: control.h:78
virtual std::optional< control_ref > parent() const noexcept
Gets the parent container of the control.
void on_control_added(const xtd::forms::control_event_args &e) override
Raises the xtd::forms::control::control_added event.
Provides data for the xtd::forms::control::control_added and xtd::forms::control::control_removed eve...
Definition: control_event_args.h:25
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
static const ustring empty_string
Represents the empty string.
Definition: ustring.h:53
std::reference_wrapper< control > control_ref
Represents a control reference.
Definition: control_ref.h:23
size_t size
Represents a size of any object in bytes.
Definition: types.h:195