xtd 0.2.0
border_style.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "border_type.hpp"
7#include <xtd/iequatable>
8#include <xtd/string>
9
11namespace xtd {
13 namespace forms {
15 namespace style_sheets {
33 class forms_export_ border_style : public xtd::iequatable<border_style>, public xtd::object {
34 public:
36
39 static const border_style empty;
41
43
46 border_style() = default;
47
52
61
63 border_style(const border_style&) = default;
64 border_style& operator =(const border_style&) = default;
66
68
73 border_type all() const noexcept;
77 void all(border_type all) noexcept;
78
86 void bottom(border_type bottom) noexcept;
87
91 border_type left() const noexcept;
95 void left(border_type left) noexcept;
96
100 border_type right() const noexcept;
105
109 border_type top() const noexcept;
113 void top(border_type top) noexcept;
115
117
122 bool equals(const xtd::object& obj) const noexcept override;
126 bool equals(const border_style& other) const noexcept override;
127
130 xtd::size get_hash_code() const noexcept override;
132
133 private:
134 bool all_ = true;
137 border_type right_ = border_type::none;
138 border_type bottom_ = border_type::none;
139 };
140 }
141 }
142}
Contains xtd::forms::style_sheets::border_type enum class.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
border_type all() const noexcept
Gets the xtd::forms::style_sheets::border_style value for all the edges.
border_style()=default
Initializes a new instance of the xtd::forms::style_sheets::border_style class.
border_style(border_type all)
Initializes a new instance of the xtd::forms::style_sheets::border_style class using the supplied xtd...
border_type right() const noexcept
Gets the xtd::forms::style_sheets::border_style value for the right edge.
border_style(border_type left, border_type top, border_type right, border_type bottom)
Initializes a new instance of the xtd::forms::style_sheets::border_style class using a separate xtd::...
border_type top() const noexcept
Gets the xtd::forms::style_sheets::border_style value for the top edge.
border_type bottom() const
Gets the xtd::forms::style_sheets::border_style value for the bottom edge.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
border_type left() const noexcept
Gets the xtd::forms::style_sheets::border_style value for the left edge.
static const border_style empty
Provides a xtd::forms::style_sheets::border_style object with no xtd::forms::style_sheets::border_sty...
Definition border_style.hpp:39
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
Contains forms_export_ keyword.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
border_type
The border_type enum class specifies what kind of border to display.
Definition border_type.hpp:23
@ none
Defines no border.
Definition border_type.hpp:25
@ other
The operating system is other.
Definition platform_id.hpp:58
@ size
Specifies that both the width and height property values of the control are defined.
Definition bounds_specified.hpp:36
The xtd::forms::style_sheets namespace contains various properties, states, and subcontrols that make...
Definition background_image.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