Rasterfarm-SDK
Loading...
Searching...
No Matches
CursorEvent Class Reference

#include <event.h>

Inheritance diagram for CursorEvent:
Event DynamicType MouseEvent TouchEvent

Public Types

enum  InputType : Event::InputType {
  MOTION ,
  SELECT ,
  UNSELECT ,
  WHEEL
}
 
- Public Types inherited from Event
enum  { UNKNOWN = 0 }
 
typedef uint InputType
 

Public Member Functions

 CursorEvent (const Vertex2f &position, Event::InputType subType=UNKNOWN)
 
Vertex2f getPosition () const
 
- Public Member Functions inherited from Event
 Event (InputType subType=UNKNOWN)
 
virtual ~Event ()
 
const InputType getSubType () const
 
- Public Member Functions inherited from DynamicType
 DynamicType ()
 
template<class C >
void addType ()
 
TypeID getDerivedTypeId () const
 
template<class C >
const bool isType () const
 
template<class C >
const C * cast () const
 
template<class C >
C * cast ()
 
template<class FROM , class TO >
TO * cast ()
 
template<class FROM , class TO >
const TO * cast () const
 

Public Attributes

Vertex2f position
 
- Public Attributes inherited from Event
InputType subType
 

Friends

class Application
 

Detailed Description

User-input event from mouse.

Member Enumeration Documentation

◆ InputType

Enumerator
MOTION 
SELECT 
UNSELECT 
WHEEL 

Constructor & Destructor Documentation

◆ CursorEvent()

CursorEvent::CursorEvent ( const Vertex2f & position,
Event::InputType subType = UNKNOWN )

Member Function Documentation

◆ getPosition()

Vertex2f CursorEvent::getPosition ( ) const
inline

The signed normalized-device-coordinate(NDC) position is returned

Returns
The vertex of the mouse xy-position normalized to the display. The Vertex parameter values range from [-1, 1].

Friends And Related Symbol Documentation

◆ Application

friend class Application
friend

Member Data Documentation

◆ position

Vertex2f CursorEvent::position

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