xtd 0.2.0
Loading...
Searching...
No Matches
flat_button_appearance.h
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 {
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;
48 flat_button_appearance& border_color(const xtd::drawing::color& color);
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;
77
80 std::optional<xtd::drawing::color> checked_back_color() const noexcept;
84 flat_button_appearance& checked_back_color(const xtd::drawing::color& color);
89
92 std::optional<xtd::drawing::color> mouse_down_back_color() const noexcept;
96 flat_button_appearance& mouse_down_back_color(const xtd::drawing::color& color);
101
104 std::optional<xtd::drawing::color> mouse_over_back_color() const noexcept;
108 flat_button_appearance& mouse_over_back_color(const xtd::drawing::color& 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
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.
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.h:18
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:131
size_t size
Represents a size of any object in bytes.
Definition types.h:197
@ 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.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10