#include <mouse_event_args.h>
Inherits xtd::event_args.
|
| mouse_event_args ()=default |
| Initializes a new instance of the MouseEventArgs class.
|
|
| mouse_event_args (mouse_buttons button, int32_t clicks, const drawing::point &location, int32_t delta) |
| Initializes a new instance of the MouseEventArgs class.
|
|
| mouse_event_args (mouse_buttons button, int32_t clicks, int32_t x, int32_t y, int32_t delta) |
| Initializes a new instance of the MouseEventArgs class.
|
|
mouse_buttons | button () const |
| Gets which mouse button was pressed.
|
|
int32_t | clicks () const |
| Gets the number of times the mouse button was pressed and released.
|
|
int32_t | delta () const |
| 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 |
| Gets the location of the mouse during the generating mouse event.
|
|
int32_t | x () const |
| Gets the x-coordinate of the mouse during the generating mouse event.
|
|
int32_t | y () const |
| Gets the y-coordinate of the mouse during the generating mouse event.
|
|
| 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 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.
|
|
|
static const event_args | empty |
| Provides a value to use with events that do not have event data.
|
|
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.
|
|
◆ mouse_event_args() [1/3]
xtd::forms::mouse_event_args::mouse_event_args |
( |
| ) |
|
|
default |
Initializes a new instance of the MouseEventArgs class.
◆ mouse_event_args() [2/3]
xtd::forms::mouse_event_args::mouse_event_args |
( |
mouse_buttons |
button, |
|
|
int32_t |
clicks, |
|
|
int32_t |
x, |
|
|
int32_t |
y, |
|
|
int32_t |
delta |
|
) |
| |
|
inline |
Initializes a new instance of the MouseEventArgs class.
- Parameters
-
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. |
◆ mouse_event_args() [3/3]
xtd::forms::mouse_event_args::mouse_event_args |
( |
mouse_buttons |
button, |
|
|
int32_t |
clicks, |
|
|
const drawing::point & |
location, |
|
|
int32_t |
delta |
|
) |
| |
|
inline |
Initializes a new instance of the MouseEventArgs class.
- Parameters
-
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. |
◆ button()
◆ clicks()
int32_t xtd::forms::mouse_event_args::clicks |
( |
| ) |
const |
|
inline |
Gets the number of times the mouse button was pressed and released.
- Returns
- An Int32_t that contains the number of times the mouse button was pressed and released.
◆ delta()
int32_t xtd::forms::mouse_event_args::delta |
( |
| ) |
const |
|
inline |
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.
- Returns
- A signed count of the number of detents the mouse wheel has rotated, multiplied by the WHEEL_DELTA constant.
◆ location()
const drawing::point & xtd::forms::mouse_event_args::location |
( |
| ) |
const |
|
inline |
Gets the location of the mouse during the generating mouse event.
- Returns
- A xtd::drawing::point that contains the x- and y- mouse coordinates, in pixels, relative to the upper-left corner of the form.
◆ x()
int32_t xtd::forms::mouse_event_args::x |
( |
| ) |
const |
|
inline |
Gets the x-coordinate of the mouse during the generating mouse event.
- Returns
- The x-coordinate of the mouse, in pixels.
◆ y()
int32_t xtd::forms::mouse_event_args::y |
( |
| ) |
const |
|
inline |
Gets the y-coordinate of the mouse during the generating mouse event.
- Returns
- The y-coordinate of the mouse, in pixels.
The documentation for this class was generated from the following file: