Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Public Attributes | List of all members
sw::gui::MouseEventArgs Struct Reference

Base class for mouse input events. More...

#include <MouseEventArgs.h>

Inheritance diagram for sw::gui::MouseEventArgs:
sw::gui::InputEventArgs sw::gui::IEventArgs sw::gui::MouseButtonEventArgs sw::gui::MouseMoveEventArgs sw::gui::MouseWheelEventArgs

Public Member Functions

 MouseEventArgs (input::MouseDevice *device)
 
- Public Member Functions inherited from sw::gui::InputEventArgs
 InputEventArgs (input::Device *device)
 
- Public Member Functions inherited from sw::gui::IEventArgs
 IEventArgs ()
 

Public Attributes

input::MouseDeviceMouse
 Mouse device. You can get current mouse state here. More...
 
const input::KeyStateRightButton
 State of right button in moment of sending this event. More...
 
const input::KeyStateLeftButton
 State of left button in moment of sending this event. More...
 
const input::KeyStateMiddleButton
 State of middle button in moment of sending this event. More...
 
const input::KeyStateXButton1
 State of first extended button in moment of sending this event. More...
 
const input::KeyStateXButton2
 State of second extended button in moment of sending this event. More...
 
float WindowPosX
 Position of mouse in window space. More...
 
float WindowPosY
 Position of mouse in window space. More...
 
- Public Attributes inherited from sw::gui::InputEventArgs
input::DeviceDevice
 Device which produced this event. More...
 
- Public Attributes inherited from sw::gui::IEventArgs
bool Handled
 Mark event as handled to stop further processing. More...
 

Detailed Description

Base class for mouse input events.

Constructor & Destructor Documentation

sw::gui::MouseEventArgs::MouseEventArgs ( input::MouseDevice device)
inlineexplicit

Member Data Documentation

const input::KeyState* sw::gui::MouseEventArgs::LeftButton

State of left button in moment of sending this event.

const input::KeyState* sw::gui::MouseEventArgs::MiddleButton

State of middle button in moment of sending this event.

input::MouseDevice* sw::gui::MouseEventArgs::Mouse

Mouse device. You can get current mouse state here.

const input::KeyState* sw::gui::MouseEventArgs::RightButton

State of right button in moment of sending this event.

float sw::gui::MouseEventArgs::WindowPosX

Position of mouse in window space.

float sw::gui::MouseEventArgs::WindowPosY

Position of mouse in window space.

const input::KeyState* sw::gui::MouseEventArgs::XButton1

State of first extended button in moment of sending this event.

const input::KeyState* sw::gui::MouseEventArgs::XButton2

State of second extended button in moment of sending this event.


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