xtd 1.0.0
Loading...
Searching...
No Matches
border_color.hpp
Go to the documentation of this file.
1
4#pragma once
6#include <xtd/drawing/color>
7#include <xtd/iequatable>
8#include <xtd/string>
9
11namespace xtd {
13 namespace forms {
15 namespace style_sheets {
33 class forms_export_ border_color : public xtd::iequatable<border_color>, public xtd::object {
34 public:
36
39 static const border_color empty;
41
43
46 border_color() = default;
47
52
61
63
68 [[nodiscard]] auto all() const noexcept -> const xtd::drawing::color&;
72 auto all(const xtd::drawing::color& all) noexcept -> void;
73
77 [[nodiscard]] auto bottom() const noexcept -> const xtd::drawing::color&;
81 auto bottom(const xtd::drawing::color& bottom) noexcept -> void;
82
86 [[nodiscard]] auto left() const noexcept -> const xtd::drawing::color&;
90 auto left(const xtd::drawing::color& left) noexcept -> void;
91
95 [[nodiscard]] auto right() const noexcept -> const xtd::drawing::color&;
99 auto right(const xtd::drawing::color& right) noexcept -> void;
100
104 [[nodiscard]] auto top() const noexcept -> const xtd::drawing::color&;
108 auto top(const xtd::drawing::color& top) noexcept -> void;
110
112
117 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
121 [[nodiscard]] auto equals(const border_color& 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 xtd::drawing::color left_ = xtd::drawing::color::black;
131 xtd::drawing::color top_ = xtd::drawing::color::black;
132 xtd::drawing::color right_ = xtd::drawing::color::black;
133 xtd::drawing::color bottom_ = xtd::drawing::color::black;
134 };
135 }
136 }
137}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:52
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
static const border_color empty
Provides an empty xtd::forms::style_sheets::border_color object.
Definition border_color.hpp:39
border_color(const xtd::drawing::color &all)
Initializes a new instance of the xtd::forms::style_sheets::border_color class using the supplied bor...
auto all() const noexcept -> const xtd::drawing::color &
Gets the xtd::forms::style_sheets::border_color value for all the edges.
auto bottom() const noexcept -> const xtd::drawing::color &
Gets the xtd::forms::style_sheets::border_color value for the bottom edge.
border_color(const xtd::drawing::color &left, const xtd::drawing::color &top, const xtd::drawing::color &right, const xtd::drawing::color &bottom)
Initializes a new instance of the xtd::forms::style_sheets::border_color class using a separate borde...
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto left() const noexcept -> const xtd::drawing::color &
Gets the xtd::forms::style_sheets::border_color value for the left edge.
border_color()=default
Initializes a new instance of the xtd::forms::style_sheets::border_color class.
auto right() const noexcept -> const xtd::drawing::color &
Gets the xtd::forms::style_sheets::border_color value for the right edge.
auto top() const noexcept -> const xtd::drawing::color &
Gets the xtd::forms::style_sheets::border_color value for the top edge.
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
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
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