xtd 1.0.0
Loading...
Searching...
No Matches
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
68 [[nodiscard]] auto all() const noexcept -> border_type;
72 auto all(border_type all) noexcept -> void;
73
77 [[nodiscard]] auto bottom() const -> border_type;
81 auto bottom(border_type bottom) noexcept -> void;
82
86 [[nodiscard]] auto left() const noexcept -> border_type;
90 auto left(border_type left) noexcept -> void;
91
95 [[nodiscard]] auto right() const noexcept -> border_type;
99 auto right(border_type right) -> void;
100
104 [[nodiscard]] auto top() const noexcept -> border_type;
108 auto top(border_type top) noexcept -> void;
110
112
117 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
121 [[nodiscard]] auto equals(const border_style& other) const noexcept -> bool override;
122
125 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
127
128 private:
129 bool all_ = true;
130 border_type left_ = border_type::none;
131 border_type top_ = border_type::none;
132 border_type right_ = border_type::none;
133 border_type bottom_ = border_type::none;
134 };
135 }
136 }
137}
Contains xtd::forms::style_sheets::border_type enum class.
border_style()=default
Initializes a new instance of the xtd::forms::style_sheets::border_style class.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto all() const noexcept -> border_type
Gets the xtd::forms::style_sheets::border_style value for all the edges.
border_style(border_type all)
Initializes a new instance of the xtd::forms::style_sheets::border_style class using the supplied xtd...
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto top() const noexcept -> border_type
Gets the xtd::forms::style_sheets::border_style value for the top edge.
auto left() const noexcept -> border_type
Gets the xtd::forms::style_sheets::border_style value for the left 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::...
auto right() const noexcept -> border_type
Gets the xtd::forms::style_sheets::border_style value for the right edge.
auto bottom() const -> border_type
Gets the xtd::forms::style_sheets::border_style value for the bottom 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:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
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
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
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