Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::arg_wheel Struct Reference

in arg_wheel event_code is event_code::mouse_wheel More...

Inheritance diagram for nana::arg_wheel:
nana::arg_mouse nana::event_arg

Public Types

enum  wheel { wheel::vertical, wheel::horizontal }
 

Public Attributes

wheel which
 which wheel is rotated More...
 
bool upwards
 true if the wheel is rotated to the top/left, depends on which and false otherwise More...
 
unsigned distance
 expressed in multiples or divisions of 120 More...
 
- Public Attributes inherited from nana::arg_mouse
event_code evt_code
 what kind of mouse event? More...
 
::nana::window window_handle
 A handle to the event window. More...
 
::nana::point pos
 cursor position in the event window More...
 
::nana::mouse button
 indicates a button which triggers the event More...
 
bool left_button
 true if mouse left button is pressed More...
 
bool mid_button
 true if mouse middle button is pressed More...
 
bool right_button
 true if mouse right button is pressed More...
 
bool alt
 true if keyboard alt is pressed More...
 
bool shift
 true if keyboard Shift is pressed More...
 
bool ctrl
 true if keyboard Ctrl is pressed More...
 

Additional Inherited Members

- Public Member Functions inherited from nana::arg_mouse
bool is_left_button () const
 Checks if left button is operated,. More...
 
- Public Member Functions inherited from nana::event_arg
virtual ~event_arg ()=default
 
void stop_propagation () const
 ignorable handlers behind the current one in a chain of event handlers will not get called. More...
 
bool propagation_stopped () const
 

Detailed Description

in arg_wheel event_code is event_code::mouse_wheel

The type arg_wheel is derived from arg_mouse, a handler with prototype void(const arg_mouse&) can be set for mouse_wheel.

Member Enumeration Documentation

Enumerator
vertical 
horizontal 

Member Data Documentation

unsigned nana::arg_wheel::distance

expressed in multiples or divisions of 120

bool nana::arg_wheel::upwards

true if the wheel is rotated to the top/left, depends on which and false otherwise

wheel nana::arg_wheel::which

which wheel is rotated