xtd 0.2.0
horizontal_control_layout_style.h
Go to the documentation of this file.
1 #pragma once
5 #include "control_layout_style.h"
6 #include <xtd/optional>
7 #include <xtd/iequatable>
8 
10 namespace xtd {
12  namespace forms {
21  class horizontal_control_layout_style : public control_layout_style, public xtd::iequatable<horizontal_control_layout_style> {
22  public:
24 
30  explicit horizontal_control_layout_style(float width);
33  explicit horizontal_control_layout_style(int32 width);
51  horizontal_control_layout_style(float width, bool expanded);
55  horizontal_control_layout_style(int32 width, bool expanded);
75  horizontal_control_layout_style(float width, xtd::forms::size_type size_type, bool expanded);
80  horizontal_control_layout_style(int32 width, xtd::forms::size_type size_type, bool expanded);
105  horizontal_control_layout_style(float width, xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align);
120  horizontal_control_layout_style(float width, bool expanded, xtd::forms::content_alignment align);
127 
129 
133  std::optional<float> width() const noexcept;
136  void width(float width);
138 
140 
142  using control_layout_style::equals;
143  bool equals(const horizontal_control_layout_style& value) const noexcept override;
144 
147  xtd::ustring to_string() const noexcept override;
149 
150  private:
151  std::optional<float> width_;
152  };
153  }
154 }
Implements the basic functionality that represents the appearance and behavior of a control layout...
Definition: control_layout_style.h:23
std::optional< float > width() const noexcept
Gets the width value for a control.
horizontal_control_layout_style()=default
Initialises a new instance of horizontal control layout style class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
size_type
Specifies how rows or columns of user interface (UI) elements should be sized relative to their conta...
Definition: size_type.h:20
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
content_alignment
Specifies alignment of content on the drawing surface.
Definition: content_alignment.h:19
xtd::forms::content_alignment align() const noexcept
Gets a flag indicating how a control should be align to its containing layout container.
xtd::ustring to_string() const noexcept override
Returns a string that represent xtd::forms::control_layout_style.
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
bool expanded() const noexcept
Gets a flag indicating if control is expanded to its containing layout container. ...
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::control_layout_style class.
Implements the basic functionality that represents the appearance and behavior of a control layout...
Definition: horizontal_control_layout_style.h:21