Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Member Functions | Public Attributes | List of all members
cinder::app::TouchEvent Class Reference

Represents a touch event. More...

#include <TouchEvent.h>

Inheritance diagram for cinder::app::TouchEvent:
[legend]

Classes

class  Touch
 

Public Member Functions

 TouchEvent ()
 
 TouchEvent (WindowRef win, const std::vector< Touch > &touches)
 
const std::vector< Touch > & getTouches () const
 Returns a std::vector of Touch descriptors associated with this event. More...
 
std::vector< Touch > & getTouches ()
 Returns a std::vector of Touch descriptors associated with this event. More...
 
bool 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. More...
 
void setHandled (bool handled=true)
 Marks the event as handled, terminating the normal iteration of the event's slots. More...
 
WindowRef getWindow () const
 Returns the Window in which the MouseEvent occurred. More...
 
void setWindow (const WindowRef &window)
 

Public Attributes

WindowRef mWindow
 

Detailed Description

Represents a touch event.

Constructor & Destructor Documentation

cinder::app::TouchEvent::TouchEvent ( )
cinder::app::TouchEvent::TouchEvent ( WindowRef  win,
const std::vector< Touch > &  touches 
)

Member Function Documentation

const std::vector<Touch>& cinder::app::TouchEvent::getTouches ( ) const

Returns a std::vector of Touch descriptors associated with this event.

std::vector<Touch>& cinder::app::TouchEvent::getTouches ( )

Returns a std::vector of Touch descriptors associated with this event.

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

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)
inherited

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

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

Returns the Window in which the MouseEvent occurred.

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

Member Data Documentation

WindowRef cinder::app::Event::mWindow
inherited

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