#include <window.h>
Public Types | |
using | EventPtrList = std::vector< EventPtr > |
using | EventPtrConstIterator = utility::UniquePtrConstVectorWrapper< WindowEventPtrList, Event * > |
Public Member Functions | |
void | addEvent (WindowEventPtr inEvent) |
void | processEvents () |
virtual uint | getNumber () const =0 |
EventPtrConstIterator | GetEvents () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
Signal< const WindowEvent & > | mWindowEvent |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
This is the Window abstraction that has no relationship to any physical or visible Window. Instead it is meant to provide an abstract way of dealing with events, making it suitable for dealing with input and window related messages, without relying on any platform or graphics API.
using EventPtrList = std::vector<EventPtr> |
void addEvent | ( | WindowEventPtr | inEvent | ) |
Adds an event to the queue, to be processed later.
inEvent | The event to add, ownership is transfered here. |
EventPtrConstIterator GetEvents | ( | ) | const |
|
pure virtual |
Implemented in RenderWindow.
void processEvents | ( | ) |
Processes the queue that was built up in addEvent. Sends all the queued events by signaling onEvent. After processing, the queue is cleared.
Signal<const WindowEvent&> mWindowEvent |