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/ustring>
9
11namespace xtd {
13 namespace forms {
15 namespace style_sheets {
31 class forms_export_ border_style : public xtd::iequatable<border_style>, public xtd::object {
32 public:
34
37 static const border_style empty;
39
41
44 border_style() = default;
45
50
59
61 border_style(const border_style&) = default;
62 border_style& operator =(const border_style&) = default;
64
66
71 border_type all() const noexcept;
75 void all(border_type all) noexcept;
76
80 border_type bottom() const;
84 void bottom(border_type bottom) noexcept;
85
89 border_type left() const noexcept;
93 void left(border_type left) noexcept;
94
98 border_type right() const noexcept;
102 void right(border_type right);
103
107 border_type top() const noexcept;
111 void top(border_type top) noexcept;
113
115
117 bool equals(const border_style& other) const noexcept override;
119
120 private:
121 bool all_ = true;
122 border_type left_ = border_type::none;
123 border_type top_ = border_type::none;
124 border_type right_ = border_type::none;
125 border_type bottom_ = border_type::none;
126 };
127 }
128 }
129}
Contains xtd::forms::style_sheets::border_type enum class.
The style specifies what kind of borders to display.
Definition border_style.h:31
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:37
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
border_type
The border_type enum class specifies what kind of border to display.
Definition border_type.h:21
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