Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Private Attributes | List of all members
sw::input::MouseDevice Class Reference

Mouse state and events. More...

#include <MouseDevice.h>

Inheritance diagram for sw::input::MouseDevice:
sw::input::Device

Public Member Functions

 MouseDevice ()=default
 
 ~MouseDevice ()=default
 
const InputDeviceInfoGetInfo () const
 
const MouseStateGetState () const
 
EventQueue< DeviceEvent > & GetEventsQueue ()
 
void ApplyAllEvents ()
 
DeviceEvent ApplyNextEvent ()
 
Timestamp GetNextEvtTimestamp ()
 
void RemoveEvents ()
 
Functions for setting state (only for IInput)
void AddEvent (const DeviceEvent &event)
 Add event to event queue. This function doesn't change KeyboardState. More...
 
- Public Member Functions inherited from sw::input::Device
 Device ()=default
 
virtual ~Device ()=default
 

Private Attributes

InputDeviceInfo m_info
 
MouseState m_state
 
EventQueue< DeviceEventm_events
 

Detailed Description

Mouse state and events.

Constructor & Destructor Documentation

sw::input::MouseDevice::MouseDevice ( )
explicitdefault
sw::input::MouseDevice::~MouseDevice ( )
default

Member Function Documentation

void sw::input::MouseDevice::AddEvent ( const DeviceEvent event)
inline

Add event to event queue. This function doesn't change KeyboardState.

void sw::input::MouseDevice::ApplyAllEvents ( )
inline
DeviceEvent sw::input::MouseDevice::ApplyNextEvent ( )
inline
EventQueue< DeviceEvent >& sw::input::MouseDevice::GetEventsQueue ( )
inline
const InputDeviceInfo& sw::input::MouseDevice::GetInfo ( ) const
inline
Timestamp sw::input::MouseDevice::GetNextEvtTimestamp ( )
inline
const MouseState& sw::input::MouseDevice::GetState ( ) const
inline
void sw::input::MouseDevice::RemoveEvents ( )
inline

Member Data Documentation

EventQueue< DeviceEvent > sw::input::MouseDevice::m_events
private
InputDeviceInfo sw::input::MouseDevice::m_info
private
MouseState sw::input::MouseDevice::m_state
private

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