xtd 0.2.0
border_style.h
Go to the documentation of this file.
1 #pragma once
5 #include "../../forms_export.h"
6 #include "border_type.h"
7 #include <xtd/iequatable>
8 #include <xtd/ustring>
9 
11 namespace 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 
49  explicit border_style(border_type all);
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 }
border_type
The border_type enum class specifies what kind of border to display.
Definition: border_type.h:21
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
The style specifies what kind of borders to display.
Definition: border_style.h:31
border_style
Specifies the border style for a control.
Definition: border_style.h:20
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
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
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Contains xtd::forms::style_sheets::border_type enum class.