xtd - Reference Guide
0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <flat_button_appearance.h>
Provides properties that specify the appearance of xtd::forms::button controls whose xtd::forms::flat_style is xtd::forms::flat_style::flat.
Inherits xtd::object.
Public Member Functions | |
flat_button_appearance ()=default | |
Initializes a new instance of the xtd::forms::flat_button_appearance class. | |
std::optional< xtd::drawing::color > | border_color () const |
Gets the color of the border around the button. | |
flat_button_appearance & | border_color (const xtd::drawing::color &color) |
Sets the color of the border around the button. | |
flat_button_appearance & | border_color (nullptr_t color) |
Resets the color of the border around the button. | |
int32_t | border_size () const |
Gets a value that specifies the size, in pixels, of the border around the button. | |
flat_button_appearance & | border_size (int32_t size) |
Sets a value that specifies the size, in pixels, of the border around the button. | |
std::optional< xtd::drawing::color > | checked_back_color () const |
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. | |
flat_button_appearance & | checked_back_color (const xtd::drawing::color &color) |
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. | |
flat_button_appearance & | checked_back_color (nullptr_t color) |
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. | |
std::optional< xtd::drawing::color > | mouse_down_back_color () const |
Gets the color of the client area of the button when the mouse is pressed within the bounds of the control. | |
flat_button_appearance & | mouse_down_back_color (const xtd::drawing::color &color) |
Sets the color of the client area of the button when the mouse is pressed within the bounds of the control. | |
flat_button_appearance & | mouse_down_back_color (nullptr_t color) |
Resets the color of the client area of the button when the mouse is pressed within the bounds of the control. | |
std::optional< xtd::drawing::color > | mouse_over_back_color () const |
Gets the color of the client area of the button when the mouse pointer is within the bounds of the control. | |
flat_button_appearance & | mouse_over_back_color (const xtd::drawing::color &color) |
Sets the color of the client area of the button when the mouse pointer is within the bounds of the control. | |
flat_button_appearance & | mouse_over_back_color (nullptr_t color) |
Resets the color of the client area of the button when the mouse pointer is within the bounds of the control. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. | |
virtual xtd::ustring | to_string () const noexcept |
Returns a std::string that represents the current object. | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the xtd::forms::flat_button_appearance class.
std::optional< xtd::drawing::color > xtd::forms::flat_button_appearance::border_color | ( | ) | const |
Gets the color of the border around the button.
flat_button_appearance & xtd::forms::flat_button_appearance::border_color | ( | const xtd::drawing::color & | color | ) |
Sets the color of the border around the button.
color | A xtd::drawing::color structure representing the color of the border around the button. |
flat_button_appearance & xtd::forms::flat_button_appearance::border_color | ( | nullptr_t | color | ) |
Resets the color of the border around the button.
color | nullptr. |
int32_t xtd::forms::flat_button_appearance::border_size | ( | ) | const |
Gets a value that specifies the size, in pixels, of the border around the button.
flat_button_appearance & xtd::forms::flat_button_appearance::border_size | ( | int32_t | size | ) |
Sets a value that specifies the size, in pixels, of the border around the button.
size | An int32_t representing the size, in pixels, of the border around the button. |
std::optional< xtd::drawing::color > xtd::forms::flat_button_appearance::checked_back_color | ( | ) | const |
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.
flat_button_appearance & xtd::forms::flat_button_appearance::checked_back_color | ( | const xtd::drawing::color & | color | ) |
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.
color | 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. |
flat_button_appearance & xtd::forms::flat_button_appearance::checked_back_color | ( | nullptr_t | color | ) |
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.
color | nullptr. |
std::optional< xtd::drawing::color > xtd::forms::flat_button_appearance::mouse_down_back_color | ( | ) | const |
Gets the color of the client area of the button when the mouse is pressed within the bounds of the control.
flat_button_appearance & xtd::forms::flat_button_appearance::mouse_down_back_color | ( | const xtd::drawing::color & | color | ) |
Sets the color of the client area of the button when the mouse is pressed within the bounds of the control.
color | A xtd::drawing::color structure representing the color of the client area of the button. |
flat_button_appearance & xtd::forms::flat_button_appearance::mouse_down_back_color | ( | nullptr_t | color | ) |
Resets the color of the client area of the button when the mouse is pressed within the bounds of the control.
color | nullptr. |
std::optional< xtd::drawing::color > xtd::forms::flat_button_appearance::mouse_over_back_color | ( | ) | const |
Gets the color of the client area of the button when the mouse pointer is within the bounds of the control.
flat_button_appearance & xtd::forms::flat_button_appearance::mouse_over_back_color | ( | const xtd::drawing::color & | color | ) |
Sets the color of the client area of the button when the mouse pointer is within the bounds of the control.
color | A xtd::drawing::color structure representing the color of the client area of the button. |
flat_button_appearance & xtd::forms::flat_button_appearance::mouse_over_back_color | ( | nullptr_t | color | ) |
Resets the color of the client area of the button when the mouse pointer is within the bounds of the control.
color | nullptr. |