EvtMouse Class Reference

Class for mouse button events. More...

Inheritance diagram for EvtMouse:

Inheritance graph
[legend]
Collaboration diagram for EvtMouse:

Collaboration graph
[legend]

Public Types

enum  ButtonType_t { kLeft, kMiddle, kRight }
enum  ActionType_t { kDown, kUp, kDblClick }

Public Member Functions

 EvtMouse (intf_thread_t *pIntf, int xPos, int yPos, ButtonType_t button, ActionType_t action, int mod=kModNone)
virtual ~EvtMouse ()
virtual const string getAsString () const
 Return the type of the event.
int getXPos () const
int getYPos () const
ButtonType_t getButton () const
ActionType_t getAction () const

Detailed Description

Class for mouse button events.

Member Enumeration Documentation

Enumerator:
kLeft 
kMiddle 
kRight 

Enumerator:
kDown 
kUp 
kDblClick 


Constructor & Destructor Documentation

EvtMouse::EvtMouse ( intf_thread_t pIntf,
int  xPos,
int  yPos,
ButtonType_t  button,
ActionType_t  action,
int  mod = kModNone 
) [inline]

virtual EvtMouse::~EvtMouse (  )  [inline, virtual]


Member Function Documentation

const string EvtMouse::getAsString (  )  const [virtual]

Return the type of the event.

Implements EvtGeneric.

References EvtInput::addModifier(), SkinObject::getIntf(), kDblClick, kDown, kLeft, kMiddle, kRight, kUp, and msg_Warn.

int EvtMouse::getXPos (  )  const [inline]

int EvtMouse::getYPos (  )  const [inline]

ButtonType_t EvtMouse::getButton (  )  const [inline]

ActionType_t EvtMouse::getAction (  )  const [inline]

Referenced by TopWindow::processEvent().


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

Generated on Tue May 25 08:06:03 2010 for VLC by  doxygen 1.5.6