Provides data for the xtd::forms::control::mouse_up, xtd::forms::control::mouse_down, and xtd::forms::control::mouse_move events.
Public Constructors | |
| mouse_event_args ()=default | |
| Initializes a new instance of the MouseEventArgs class. | |
| mouse_event_args (mouse_buttons button, int32 clicks, int32 x, int32 y, int32 delta) | |
| Initializes a new instance of the MouseEventArgs class. | |
| mouse_event_args (mouse_buttons button, int32 clicks, const drawing::point &location, int32 delta) | |
| Initializes a new instance of the MouseEventArgs class. | |
Public Properties | |
| mouse_buttons | button () const noexcept |
| Gets which mouse button was pressed. | |
| int32 | clicks () const noexcept |
| Gets the number of times the mouse button was pressed and released. | |
| int32 | delta () const noexcept |
| Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel. | |
| const drawing::point & | location () const noexcept |
| Gets the location of the mouse during the generating mouse event. | |
| int32 | x () const noexcept |
| Gets the x-coordinate of the mouse during the generating mouse event. | |
| int32 | y () const noexcept |
| Gets the y-coordinate of the mouse during the generating mouse event. | |
Additional Inherited Members | |
| static const event_args | empty |
| Provides a value to use with events that do not have event data. | |
| event_args ()=default | |
| Initializes a new instance of the event_args class. | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | equals (const object &obj) const noexcept -> bool |
| Determines whether the specified object is equal to the current object. | |
| virtual auto | get_hash_code () const noexcept -> xtd::usize |
| Serves as a hash function for a particular type. | |
| 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. | |
| 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. | |
|
default |
Initializes a new instance of the MouseEventArgs class.
|
inline |
Initializes a new instance of the MouseEventArgs class.
| button | One of the xtd::forms::mouse_buttons values that indicate which mouse button was pressed. |
| clicks | The number of times a mouse button was pressed. |
| x | The x-coordinate of a mouse click, in pixels. |
| y | The y-coordinate of a mouse click, in pixels. |
| delta | A signed count of the number of detents the wheel has rotated. |
|
inline |
Initializes a new instance of the MouseEventArgs class.
| button | One of the xtd::forms::mouse_buttons values that indicate which mouse button was pressed. |
| clicks | The number of times a mouse button was pressed. |
| location | The location of a mouse click, in pixels. |
| delta | A signed count of the number of detents the wheel has rotated. |
|
inlinenoexcept |
Gets which mouse button was pressed.
|
inlinenoexcept |
Gets the number of times the mouse button was pressed and released.
|
inlinenoexcept |
Gets a signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant. A detent is one notch of the mouse wheel.
|
inlinenoexcept |
Gets the location of the mouse during the generating mouse event.
|
inlinenoexcept |
Gets the x-coordinate of the mouse during the generating mouse event.
|
inlinenoexcept |
Gets the y-coordinate of the mouse during the generating mouse event.