xtd 0.2.0
control_layout_style.h
Go to the documentation of this file.
1 #pragma once
5 #include "content_alignment.h"
6 #include "size_type.h"
7 #include <xtd/iequatable>
8 #include <xtd/object>
9 #include <xtd/ustring>
10 
12 namespace xtd {
14  namespace forms {
23  class control_layout_style : public object, public xtd::iequatable<control_layout_style> {
24  struct data;
25 
26  protected:
28 
37  explicit control_layout_style(bool expanded);
45  control_layout_style(xtd::forms::size_type size_type, bool expanded);
60 
61  public:
64  control_layout_style& operator =(const control_layout_style& other);
66 
68 
72  xtd::forms::size_type size_type() const noexcept;
76 
79  bool expanded() const noexcept;
82  control_layout_style& expanded(bool expanded);
83 
87  xtd::forms::content_alignment align() const noexcept;
93 
95 
97  bool equals(const control_layout_style& value) const noexcept override;
98 
101  xtd::ustring to_string() const noexcept override;
103 
104  private:
105  std::shared_ptr<data> data_;
106  };
107  }
108 }
Implements the basic functionality that represents the appearance and behavior of a control layout...
Definition: control_layout_style.h:23
Contains xtd::forms::size_type enum 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
control_layout_style()
Initialises a new instance of control layout style class.
xtd::forms::size_type size_type() const noexcept
Gets a flag indicating how a control should be sized relative to its containing layout container...
The operating system is other.
Contains xtd::forms::content_alignment enum class.
xtd::forms::content_alignment align() const noexcept
Gets a flag indicating how a control should be align to its containing layout container.
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
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
xtd::ustring to_string() const noexcept override
Returns a string that represent xtd::forms::control_layout_style.