Public Member Functions

mxgui::Event Class Reference
[Mxgui level 2]

#include <input.h>

List of all members.

Public Member Functions

 Event ()
 Event (EventType::E e)
 Event (EventType::E e, Point p)
EventType::E getEvent () const
bool hasValidPoint () const
Point getPoint () const

Detailed Description

Generic event class. Events are the object type used to dispatch events such as button presses or touchscreen taping to applications. An Event has an associated type, which is implementation-defined depending on the board on which mxgui is ported (different boards have different number of buttons), and a point used to represent touchscreen point of touch for boards that have a touchscreen.


Constructor & Destructor Documentation

mxgui::Event::Event (  )  [inline]

Default constructor

mxgui::Event::Event ( EventType::E  e  )  [inline, explicit]

Constructor for events without a position information

Parameters:
e event type
mxgui::Event::Event ( EventType::E  e,
Point  p 
) [inline]

Constructor for events that also carry a position information

Parameters:
e event type
p point

Member Function Documentation

EventType::E mxgui::Event::getEvent (  )  const [inline]
Returns:
the event information
Point mxgui::Event::getPoint (  )  const [inline]
Returns:
the point information
bool mxgui::Event::hasValidPoint (  )  const [inline]
Returns:
true if the event has a valid point associated with it

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