xtd 1.0.0
Loading...
Searching...
No Matches
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 xtd::object, public xtd::iequatable<control_layout_style> {
26 struct data;
27
28 protected:
30
62
63 public:
68
70
74 [[nodiscard]] auto size_type() const noexcept -> xtd::forms::size_type;
78
81 [[nodiscard]] auto expanded() const noexcept -> bool;
85
89 [[nodiscard]] auto align() const noexcept -> xtd::forms::content_alignment;
95
97
102 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
106 [[nodiscard]] auto equals(const control_layout_style& other) const noexcept -> bool override;
107
110 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
111
114 [[nodiscard]] auto to_string() const noexcept -> xtd::string override;
116
117 private:
118 xtd::sptr<data> data_;
119 };
120 }
121}
auto to_string() const noexcept -> xtd::string override
Returns a string that represent xtd::forms::control_layout_style.
control_layout_style(xtd::forms::content_alignment align)
Initialises a new instance of control layout style class with specified content alignment.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
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...
auto size_type() const noexcept -> xtd::forms::size_type
Gets a flag indicating how a control should be sized relative to its containing layout container.
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...
auto expanded() const noexcept -> bool
Gets a flag indicating if control is expanded to its containing layout container.
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.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto align() const noexcept -> xtd::forms::content_alignment
Gets a flag indicating how a control should be align to its containing layout container.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
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
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
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
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 auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197
Contains xtd::forms::size_type enum class.