xtd 0.2.0
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 border_color(const border_color&) = default;
64 border_color& operator =(const border_color&) = default;
66
68
73 const xtd::drawing::color& all() const noexcept;
77 void all(const xtd::drawing::color& all) noexcept;
78
82 const xtd::drawing::color& bottom() const noexcept;
86 void bottom(const xtd::drawing::color& bottom) noexcept;
87
91 const xtd::drawing::color& left() const noexcept;
95 void left(const xtd::drawing::color& left) noexcept;
96
100 const xtd::drawing::color& right() const noexcept;
104 void right(const xtd::drawing::color& right) noexcept;
105
109 const xtd::drawing::color& top() const noexcept;
113 void top(const xtd::drawing::color& top) noexcept;
115
117
122 bool equals(const xtd::object& obj) const noexcept override;
126 bool equals(const border_color& other) const noexcept override;
127
130 xtd::size get_hash_code() const noexcept override;
132
133 private:
134 bool all_ = true;
135 xtd::drawing::color left_ = xtd::drawing::color::black;
136 xtd::drawing::color top_ = xtd::drawing::color::black;
137 xtd::drawing::color right_ = xtd::drawing::color::black;
138 xtd::drawing::color bottom_ = xtd::drawing::color::black;
139 };
140 }
141 }
142}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
static const border_color empty
Provides an empty xtd::forms::style_sheets::border_color object.
Definition border_color.hpp:39
const xtd::drawing::color & all() const noexcept
Gets the xtd::forms::style_sheets::border_color value for all the edges.
border_color(const xtd::drawing::color &all)
Initializes a new instance of the xtd::forms::style_sheets::border_color class using the supplied bor...
const xtd::drawing::color & bottom() const noexcept
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...
const xtd::drawing::color & top() const noexcept
Gets the xtd::forms::style_sheets::border_color value for the top edge.
bool equals(const xtd::object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
const xtd::drawing::color & right() const noexcept
Gets the xtd::forms::style_sheets::border_color value for the right edge.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
border_color()=default
Initializes a new instance of the xtd::forms::style_sheets::border_color class.
const xtd::drawing::color & left() const noexcept
Gets the xtd::forms::style_sheets::border_color value for the left edge.
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
@ black
The color black.
Definition console_color.hpp:24
@ 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::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