xtd 0.2.0
horizontal_control_layout_style.hpp
Go to the documentation of this file.
1
4#pragma once
6#include <xtd/optional>
7#include <xtd/iequatable>
8
10namespace xtd {
12 namespace forms {
23 class horizontal_control_layout_style : public control_layout_style, public xtd::iequatable<horizontal_control_layout_style> {
24 public:
26
129
131
135 std::optional<float> width() const noexcept;
138 void width(float width);
140
142
148 bool equals(const horizontal_control_layout_style& other) const noexcept override;
149
152 xtd::size get_hash_code() const noexcept override;
153
156 xtd::string to_string() const noexcept override;
158
159 private:
160 std::optional<float> width_;
161 };
162 }
163}
bool expanded() const noexcept
Gets a flag indicating if control is expanded to its containing layout container.
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.
horizontal_control_layout_style(int32 width, xtd::forms::size_type size_type, bool expanded)
Initialises a new instance of horizontal control layout style class with specified width,...
horizontal_control_layout_style(int32 width, xtd::forms::size_type size_type, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified width,...
horizontal_control_layout_style(float width)
Initialises a new instance of horizontal control layout style class with specified width.
horizontal_control_layout_style(xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified size type,...
bool equals(const horizontal_control_layout_style &other) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
xtd::string to_string() const noexcept override
Returns a string that represent xtd::forms::control_layout_style.
horizontal_control_layout_style(int32 width)
Initialises a new instance of horizontal control layout style class with specified width.
horizontal_control_layout_style(float width, bool expanded)
Initialises a new instance of horizontal control layout style class with specified width and expanded...
horizontal_control_layout_style(xtd::forms::size_type size_type, bool expanded)
Initialises a new instance of horizontal control layout style class with specified size type and expa...
horizontal_control_layout_style(float width, xtd::forms::size_type size_type, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified width,...
horizontal_control_layout_style(int32 width, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified width and content ...
horizontal_control_layout_style(float width, bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified expanded and conte...
horizontal_control_layout_style(int32 width, bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified expanded and conte...
horizontal_control_layout_style(xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified content alignment.
horizontal_control_layout_style(float width, xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified width,...
std::optional< float > width() const noexcept
Gets the width value for a control.
horizontal_control_layout_style(float width, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified width and content ...
horizontal_control_layout_style(int32 width, xtd::forms::size_type size_type)
Initialises a new instance of horizontal control layout style class with specified width and size typ...
horizontal_control_layout_style()=default
Initialises a new instance of horizontal control layout style class.
horizontal_control_layout_style(bool expanded)
Initialises a new instance of horizontal control layout style class with specified expanded.
horizontal_control_layout_style(float width, xtd::forms::size_type size_type, bool expanded)
Initialises a new instance of horizontal control layout style class with specified width,...
horizontal_control_layout_style(int32 width, xtd::forms::size_type size_type, bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified width,...
horizontal_control_layout_style(xtd::forms::size_type size_type)
Initialises a new instance of horizontal control layout style class with specified size type.
horizontal_control_layout_style(bool expanded, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified expanded and conte...
horizontal_control_layout_style(float width, xtd::forms::size_type size_type)
Initialises a new instance of horizontal control layout style class with specified width and size typ...
horizontal_control_layout_style(xtd::forms::size_type size_type, xtd::forms::content_alignment align)
Initialises a new instance of horizontal control layout style class with specified size type and cont...
horizontal_control_layout_style(int32 width, bool expanded)
Initialises a new instance of horizontal control layout style class with specified width and expanded...
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Contains xtd::forms::control_layout_style class.
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.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