xtd 0.2.0
flat_button_appearance.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/drawing/color>
6 #include <xtd/optional>
7 #include <xtd/iequatable>
8 #include <xtd/object>
9 
11 namespace xtd {
13  namespace forms {
22  class flat_button_appearance : public object, public xtd::iequatable<flat_button_appearance> {
23  struct data;
24 
25  public:
27 
32 
38 
40 
44  std::optional<xtd::drawing::color> border_color() const noexcept;
52  flat_button_appearance& border_color(std::nullptr_t color);
53 
56  std::optional<int32> border_radius() const noexcept;
64  flat_button_appearance& border_radius(std::nullptr_t radius);
65 
68  std::optional<int32> border_size() const noexcept;
76  flat_button_appearance& border_size(std::nullptr_t size);
77 
80  std::optional<xtd::drawing::color> checked_back_color() const noexcept;
88  flat_button_appearance& checked_back_color(std::nullptr_t color);
89 
92  std::optional<xtd::drawing::color> mouse_down_back_color() const noexcept;
100  flat_button_appearance& mouse_down_back_color(std::nullptr_t color);
101 
104  std::optional<xtd::drawing::color> mouse_over_back_color() const noexcept;
112  flat_button_appearance& mouse_over_back_color(std::nullptr_t color);
114 
116 
118  bool equals(const flat_button_appearance& other) const noexcept override;
120 
121  private:
122  std::shared_ptr<data> data_;
123  };
124  }
125 }
126 
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::optional< xtd::drawing::color > mouse_over_back_color() const noexcept
Gets the color of the client area of the button when the mouse pointer is within the bounds of the co...
Represents an ARGB (alpha, red, green, blue) color.
Definition: color.h:45
std::optional< int32 > border_radius() const noexcept
Gets a value that specifies the radius, in pixels, of the border around the button.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
std::optional< xtd::drawing::color > mouse_down_back_color() const noexcept
Gets the color of the client area of the button when the mouse is pressed within the bounds of the co...
std::optional< xtd::drawing::color > checked_back_color() const noexcept
Gets the color of the client area of the button when the button is checked and the mouse pointer is o...
std::optional< xtd::drawing::color > border_color() const noexcept
Gets the color of the border around the button.
The operating system is other.
std::optional< int32 > border_size() const noexcept
Gets a value that specifies the size, in pixels, of the border around the button. ...
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides properties that specify the appearance of xtd::forms::button controls whose xtd::forms::flat...
Definition: flat_button_appearance.h:22
flat_button_appearance()
Initializes a new instance of the xtd::forms::flat_button_appearance class.
size_t size
Represents a size of any object in bytes.
Definition: types.h:195