xtd 0.2.0
Loading...
Searching...
No Matches
flat_button_appearance.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/drawing/color>
6#include <xtd/optional>
7#include <xtd/iequatable>
8#include <xtd/object>
9
11namespace xtd {
13 namespace forms {
24 class flat_button_appearance : public object, public xtd::iequatable<flat_button_appearance> {
25 struct data;
26
27 public:
29
34
40
42
46 std::optional<xtd::drawing::color> border_color() const noexcept;
50 flat_button_appearance& border_color(const xtd::drawing::color& color);
54 flat_button_appearance& border_color(std::nullptr_t color);
55
58 std::optional<int32> border_radius() const noexcept;
66 flat_button_appearance& border_radius(std::nullptr_t radius);
67
70 std::optional<int32> border_size() const noexcept;
79
82 std::optional<xtd::drawing::color> checked_back_color() const noexcept;
86 flat_button_appearance& checked_back_color(const xtd::drawing::color& color);
91
94 std::optional<xtd::drawing::color> mouse_down_back_color() const noexcept;
98 flat_button_appearance& mouse_down_back_color(const xtd::drawing::color& color);
103
106 std::optional<xtd::drawing::color> mouse_over_back_color() const noexcept;
110 flat_button_appearance& mouse_over_back_color(const xtd::drawing::color& color);
116
118
120 using object::equals;
121 bool equals(const flat_button_appearance& other) const noexcept override;
123
124 private:
125 xtd::sptr<data> data_;
126 };
127 }
128}
129
Provides properties that specify the appearance of xtd::forms::button controls whose xtd::forms::flat...
Definition flat_button_appearance.hpp:24
flat_button_appearance()
Initializes a new instance of the xtd::forms::flat_button_appearance class.
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...
std::optional< xtd::drawing::color > border_color() const noexcept
Gets the color of the border around the button.
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< int32 > border_size() const noexcept
Gets a value that specifies the size, in pixels, of the border around the button.
std::optional< int32 > border_radius() const noexcept
Gets a value that specifies the radius, in pixels, of the border around the button.
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...
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
std::optional< type_t > optional
Represents the null_opt alias on std::nullopt_t.
Definition optional.hpp:181
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
std::shared_ptr< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
@ other
The operating system is other.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10