Provides properties that specify the appearance of xtd::forms::button controls whose xtd::forms::flat_style is xtd::forms::flat_style::flat.
Public Constructors | |
| flat_button_appearance () | |
| Initializes a new instance of the xtd::forms::flat_button_appearance class. | |
Public Properties | |
| auto | border_color () const noexcept -> std::optional< xtd::drawing::color > |
| Gets the color of the border around the button. | |
| auto | border_color (const xtd::drawing::color &value) -> flat_button_appearance & |
| Sets the color of the border around the button. | |
| auto | border_color (xtd::null_ptr) -> flat_button_appearance & |
| Resets the color of the border around the button. | |
| 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 | border_radius (xtd::int32 value) -> flat_button_appearance & |
| Sets a value that specifies the radius, in pixels, of the border around the button. | |
| auto | border_radius (xtd::null_ptr) -> flat_button_appearance & |
| Resets a value that specifies the radius, in pixels, of the border around the button. | |
| 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_size (xtd::int32 value) -> flat_button_appearance & |
| Sets a value that specifies the size, in pixels, of the border around the button. | |
| auto | border_size (xtd::null_ptr) -> flat_button_appearance & |
| Resets a value that specifies the size, in pixels, of the border around the button. | |
| 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 outside the bounds of the control. | |
| auto | checked_back_color (const xtd::drawing::color &value) -> flat_button_appearance & |
| Sets the color of the client area of the button when the button is checked and the mouse pointer is outside the bounds of the control. | |
| auto | checked_back_color (xtd::null_ptr) -> flat_button_appearance & |
| Resets the color of the client area of the button when the button is checked and the mouse pointer is outside the bounds of the control. | |
| 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 control. | |
| auto | mouse_down_back_color (const xtd::drawing::color &value) -> flat_button_appearance & |
| Sets the color of the client area of the button when the mouse is pressed within the bounds of the control. | |
| auto | mouse_down_back_color (xtd::null_ptr) -> flat_button_appearance & |
| Resets the color of the client area of the button when the mouse is pressed within the bounds of the control. | |
| 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 control. | |
| auto | mouse_over_back_color (const xtd::drawing::color &value) -> flat_button_appearance & |
| Sets the color of the client area of the button when the mouse pointer is within the bounds of the control. | |
| auto | mouse_over_back_color (xtd::null_ptr) -> flat_button_appearance & |
| Resets the color of the client area of the button when the mouse pointer is within the bounds of the control. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const flat_button_appearance &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| virtual auto | equals (const flat_button_appearance &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| xtd::forms::flat_button_appearance::flat_button_appearance | ( | ) |
Initializes a new instance of the xtd::forms::flat_button_appearance class.
|
nodiscardnoexcept |
Gets the color of the border around the button.
| auto xtd::forms::flat_button_appearance::border_color | ( | const xtd::drawing::color & | value | ) | -> flat_button_appearance & |
Sets the color of the border around the button.
| value | A xtd::drawing::color structure representing the color of the border around the button. |
| auto xtd::forms::flat_button_appearance::border_color | ( | xtd::null_ptr | ) | -> flat_button_appearance & |
Resets the color of the border around the button.
| xtd::null. |
|
nodiscardnoexcept |
Gets a value that specifies the radius, in pixels, of the border around the button.
| auto xtd::forms::flat_button_appearance::border_radius | ( | xtd::int32 | value | ) | -> flat_button_appearance & |
Sets a value that specifies the radius, in pixels, of the border around the button.
| value | An int32 representing the radius, in pixels, of the border around the button. |
| auto xtd::forms::flat_button_appearance::border_radius | ( | xtd::null_ptr | ) | -> flat_button_appearance & |
Resets a value that specifies the radius, in pixels, of the border around the button.
| xtd::null. |
|
nodiscardnoexcept |
Gets a value that specifies the size, in pixels, of the border around the button.
| auto xtd::forms::flat_button_appearance::border_size | ( | xtd::int32 | value | ) | -> flat_button_appearance & |
Sets a value that specifies the size, in pixels, of the border around the button.
| value | An int32 representing the size, in pixels, of the border around the button. |
| auto xtd::forms::flat_button_appearance::border_size | ( | xtd::null_ptr | ) | -> flat_button_appearance & |
Resets a value that specifies the size, in pixels, of the border around the button.
| xtd::null. |
|
nodiscardnoexcept |
Gets the color of the client area of the button when the button is checked and the mouse pointer is outside the bounds of the control.
| auto xtd::forms::flat_button_appearance::checked_back_color | ( | const xtd::drawing::color & | value | ) | -> flat_button_appearance & |
Sets the color of the client area of the button when the button is checked and the mouse pointer is outside the bounds of the control.
| value | A xtd::drawing::color structure representing the color of the client area of the button.structure representing the color of the client area of the button. |
| auto xtd::forms::flat_button_appearance::checked_back_color | ( | xtd::null_ptr | ) | -> flat_button_appearance & |
Resets the color of the client area of the button when the button is checked and the mouse pointer is outside the bounds of the control.
| xtd::null. |
|
nodiscardnoexcept |
Gets the color of the client area of the button when the mouse is pressed within the bounds of the control.
| auto xtd::forms::flat_button_appearance::mouse_down_back_color | ( | const xtd::drawing::color & | value | ) | -> flat_button_appearance & |
Sets the color of the client area of the button when the mouse is pressed within the bounds of the control.
| value | A xtd::drawing::color structure representing the color of the client area of the button. |
| auto xtd::forms::flat_button_appearance::mouse_down_back_color | ( | xtd::null_ptr | ) | -> flat_button_appearance & |
Resets the color of the client area of the button when the mouse is pressed within the bounds of the control.
| xtd::null. |
|
nodiscardnoexcept |
Gets the color of the client area of the button when the mouse pointer is within the bounds of the control.
| auto xtd::forms::flat_button_appearance::mouse_over_back_color | ( | const xtd::drawing::color & | value | ) | -> flat_button_appearance & |
Sets the color of the client area of the button when the mouse pointer is within the bounds of the control.
| value | A xtd::drawing::color structure representing the color of the client area of the button. |
| auto xtd::forms::flat_button_appearance::mouse_over_back_color | ( | xtd::null_ptr | ) | -> flat_button_appearance & |
Resets the color of the client area of the button when the mouse pointer is within the bounds of the control.
| xtd::null. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.