xtd 0.2.0
Loading...
Searching...
No Matches
border_style.h
Go to the documentation of this file.
1
4#pragma once
5#include "../../forms_export.h"
6#include "border_type.h"
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
82 border_type bottom() const;
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;
104 void right(border_type right);
105
109 border_type top() const noexcept;
113 void top(border_type top) noexcept;
115
117
119 using object::equals;
120 bool equals(const border_style& other) const noexcept override;
122
123 private:
124 bool all_ = true;
125 border_type left_ = border_type::none;
126 border_type top_ = border_type::none;
127 border_type right_ = border_type::none;
128 border_type bottom_ = border_type::none;
129 };
130 }
131 }
132}
Contains xtd::forms::style_sheets::border_type enum class.
The style specifies what kind of borders to display.
Definition border_style.h:33
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_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::...
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.h:39
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
#define forms_export_
Define shared library export.
Definition forms_export.h:13
border_type
The border_type enum class specifies what kind of border to display.
Definition border_type.h:23
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