Cinder  0.9.1
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
cinder::app::Event Class Reference

#include <Event.h>

Inherited by cinder::app::FileDropEvent, cinder::app::KeyEvent, cinder::app::MouseEvent, and cinder::app::TouchEvent.

Public Member Functions

bool isHandled () const
 
void setHandled (bool handled=true)
 
WindowRef getWindow () const
 
void setWindow (const WindowRef &window)
 
virtual ~Event ()
 

Public Attributes

bool mHandled
 
WindowRef mWindow
 

Protected Member Functions

 Event ()
 
 Event (const WindowRef &window)
 

Detailed Description

Base class for all Events.

Constructor & Destructor Documentation

cinder::app::Event::Event ( )
protected
cinder::app::Event::Event ( const WindowRef window)
protected
virtual cinder::app::Event::~Event ( )
virtual

Member Function Documentation

bool cinder::app::Event::isHandled ( ) const

Returns whether this event has been marked as handled by one of its slots, terminating the normal iteration of the event's slots.

void cinder::app::Event::setHandled ( bool  handled = true)

Marks the event as handled, terminating the normal iteration of the event's slots.

WindowRef cinder::app::Event::getWindow ( ) const

Returns the Window in which the MouseEvent occurred.

void cinder::app::Event::setWindow ( const WindowRef window)

Member Data Documentation

bool cinder::app::Event::mHandled
WindowRef cinder::app::Event::mWindow

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