nomlib
Loading...
Searching...
No Matches
nom::MouseMotionEvent Struct Reference

A structure containing information on a mouse event. More...

#include <Event.hpp>

Public Attributes

uint32 id
 The mouse instance identifier, or SDL_TOUCH_MOUSEID.
int32 x
 The X coordinate, relative to the nom::Window instance.
int32 y
 The Y coordinate, relative to the nom::Window instance.
int32 x_rel
 The relative motion in the X coordinate direction.
int32 y_rel
 The relative motion in the Y coordinate direction.
uint8 state
 The state of the button.
uint32 window_id
 The identifier of the window at the moment of the event.

Detailed Description

A structure containing information on a mouse event.

Definition at line 142 of file Event.hpp.

Member Data Documentation

◆ id

uint32 nom::MouseMotionEvent::id

The mouse instance identifier, or SDL_TOUCH_MOUSEID.

Remarks
'id' may be SDL_TOUCH_MOUSEID, for events that were generated by a touch input device, and not a real mouse. (You may want to ignore such events, if your application already handles SDL_TouchFingerEvent).

Definition at line 149 of file Event.hpp.

◆ state

uint8 nom::MouseMotionEvent::state

The state of the button.

Remarks
The state is a 32-bit button bit-mask of the current button state; the following masks are: SDL_BUTTON_LMASK, SDL_BUTTON_MMASK, SDL_BUTTON_RMASK, SDL_BUTTON_X1MASK, SDL_BUTTON_X2MASK.

Definition at line 168 of file Event.hpp.

◆ window_id

uint32 nom::MouseMotionEvent::window_id

The identifier of the window at the moment of the event.

Definition at line 171 of file Event.hpp.

◆ x

int32 nom::MouseMotionEvent::x

The X coordinate, relative to the nom::Window instance.

Definition at line 152 of file Event.hpp.

◆ x_rel

int32 nom::MouseMotionEvent::x_rel

The relative motion in the X coordinate direction.

Definition at line 158 of file Event.hpp.

◆ y

int32 nom::MouseMotionEvent::y

The Y coordinate, relative to the nom::Window instance.

Definition at line 155 of file Event.hpp.

◆ y_rel

int32 nom::MouseMotionEvent::y_rel

The relative motion in the Y coordinate direction.

Definition at line 161 of file Event.hpp.


The documentation for this struct was generated from the following file: