xtd 0.2.0
Loading...
Searching...
No Matches
border_color.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../forms_export.h"
6#include <xtd/drawing/color>
7#include <xtd/iequatable>
8#include <xtd/ustring>
9
11namespace xtd {
13 namespace forms {
15 namespace style_sheets {
31 class forms_export_ border_color : public xtd::iequatable<border_color>, public xtd::object {
32 public:
34
37 static const border_color empty;
39
41
44 border_color() = default;
45
49 explicit border_color(const xtd::drawing::color& all);
50
59
61 border_color(const border_color&) = default;
62 border_color& operator =(const border_color&) = default;
64
66
71 const xtd::drawing::color& all() const noexcept;
75 void all(const xtd::drawing::color& all) noexcept;
76
80 const xtd::drawing::color& bottom() const noexcept;
84 void bottom(const xtd::drawing::color& bottom) noexcept;
85
89 const xtd::drawing::color& left() const noexcept;
93 void left(const xtd::drawing::color& left) noexcept;
94
98 const xtd::drawing::color& right() const noexcept;
102 void right(const xtd::drawing::color& right) noexcept;
103
107 const xtd::drawing::color& top() const noexcept;
111 void top(const xtd::drawing::color& top) noexcept;
113
115
117 bool equals(const border_color& other) const noexcept override;
119
120 private:
121 bool all_ = true;
122 xtd::drawing::color left_ = xtd::drawing::color::black;
123 xtd::drawing::color top_ = xtd::drawing::color::black;
124 xtd::drawing::color right_ = xtd::drawing::color::black;
125 xtd::drawing::color bottom_ = xtd::drawing::color::black;
126 };
127 }
128 }
129}
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
The xtd::forms::style_sheets::border_color is used to set the color of the borders.
Definition border_color.h:31
static const border_color empty
Provides an empty xtd::forms::style_sheets::border_color object.
Definition border_color.h:37
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...
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...
border_color()=default
Initializes a new instance of the xtd::forms::style_sheets::border_color class.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
#define forms_export_
Define shared library export.
Definition forms_export.h:13
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10