xtd 1.0.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 xtd::object, public xtd::iequatable<flat_button_appearance> {
25 struct data;
26
27 public:
29
34
37 auto operator =(const flat_button_appearance&) -> flat_button_appearance&;
39
41
45 [[nodiscard]] auto border_color() const noexcept -> std::optional<xtd::drawing::color>;
49 auto border_color(const xtd::drawing::color& value) -> flat_button_appearance&;
54
57 [[nodiscard]] auto border_radius() const noexcept -> std::optional<xtd::int32>;
66
69 [[nodiscard]] auto border_size() const noexcept -> std::optional<xtd::int32>;
78
81 [[nodiscard]] auto checked_back_color() const noexcept -> std::optional<xtd::drawing::color>;
85 auto checked_back_color(const xtd::drawing::color& value) -> flat_button_appearance&;
90
93 [[nodiscard]] auto mouse_down_back_color() const noexcept -> std::optional<xtd::drawing::color>;
102
105 [[nodiscard]] auto mouse_over_back_color() const noexcept -> std::optional<xtd::drawing::color>;
115
117
122 [[nodiscard]] auto equals(const xtd::object& obj) const noexcept -> bool override;
126 [[nodiscard]] auto equals(const flat_button_appearance& other) const noexcept -> bool override;
127
130 [[nodiscard]] auto get_hash_code() const noexcept -> xtd::usize override;
132
133 private:
134 xtd::sptr<data> data_;
135 };
136 }
137}
138
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto checked_back_color() const noexcept -> std::optional< xtd::drawing::color >
Gets the color of the client area of the button when the button is checked and the mouse pointer is o...
flat_button_appearance()
Initializes a new instance of the xtd::forms::flat_button_appearance class.
auto border_size() const noexcept -> std::optional< xtd::int32 >
Gets a value that specifies the size, in pixels, of the border around the button.
auto border_color() const noexcept -> std::optional< xtd::drawing::color >
Gets the color of the border around the button.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto mouse_over_back_color() const noexcept -> std::optional< xtd::drawing::color >
Gets the color of the client area of the button when the mouse pointer is within the bounds of the co...
auto border_radius() const noexcept -> std::optional< xtd::int32 >
Gets a value that specifies the radius, in pixels, of the border around the button.
auto mouse_down_back_color() const noexcept -> std::optional< xtd::drawing::color >
Gets the color of the client area of the button when the mouse is pressed within the bounds of the co...
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::nullptr_t null_ptr
Represents the null_opt alias on std::nullptr_t.
Definition null_ptr.hpp:19
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::optional< type_t > optional
Represents the optional alias on std::optional.
Definition optional.hpp:26
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
@ other
The operating system is other.
Definition platform_id.hpp:60
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197