xtd 0.2.0
control_layout_style.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "size_type.hpp"
7#include <xtd/iequatable>
8#include <xtd/object>
9#include <xtd/string>
10
12namespace xtd {
14 namespace forms {
25 class control_layout_style : public object, public xtd::iequatable<control_layout_style> {
26 struct data;
27
28 protected:
30
62
63 public:
68
70
78
81 bool expanded() const noexcept;
85
89 xtd::forms::content_alignment align() const noexcept;
95
97
102 bool equals(const xtd::object& obj) const noexcept override;
106 bool equals(const control_layout_style& other) const noexcept override;
107
110 xtd::size get_hash_code() const noexcept override;
111
114 xtd::string to_string() const noexcept override;
116
117 private:
118 xtd::sptr<data> data_;
119 };
120 }
121}
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
bool expanded() const noexcept
Gets a flag indicating if control is expanded to its containing layout container.
control_layout_style(xtd::forms::content_alignment align)
Initialises a new instance of control layout style class with specified content alignment.
xtd::forms::size_type size_type() const noexcept
Gets a flag indicating how a control should be sized relative to its containing layout container.
xtd::forms::content_alignment align() const noexcept
Gets a flag indicating how a control should be align to its containing layout container.
control_layout_style()
Initialises a new instance of control layout style class.
control_layout_style(xtd::forms::size_type size_type, xtd::forms::content_alignment align)
Initialises a new instance of control layout style class with specified size type and content alignme...
control_layout_style(xtd::forms::size_type size_type, bool expanded)
Initialises a new instance of control layout style class with specified size type and expanded.
control_layout_style(xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of control layout style class with specified size type,...
control_layout_style(bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of control layout style class with specified expanded and content alignmen...
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
control_layout_style(bool expanded)
Initialises a new instance of control layout style class with specified expanded.
control_layout_style(xtd::forms::size_type size_type)
Initialises a new instance of control layout style class with specified size type.
xtd::string to_string() const noexcept override
Returns a string that represent xtd::forms::control_layout_style.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
object()=default
Create a new instance of the ultimate base class object.
Contains xtd::forms::content_alignment enum class.
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ other
The operating system is other.
Definition platform_id.hpp:58
size_type
Specifies how rows or columns of user interface (UI) elements should be sized relative to their conta...
Definition size_type.hpp:22
content_alignment
Specifies alignment of content on the drawing surface.
Definition content_alignment.hpp:21
@ size
Specifies that both the width and height property values of the control are defined.
Definition bounds_specified.hpp:36
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::forms::size_type enum class.