Om  1.0.0
A universal framework for multimedia simulation
Public Attributes | List of all members
om::engine::SimpleDemo::Delegate Class Reference

A class that represents a set of delegate methods for demo event handling. More...

#include <omSimpleDemo.h>

Public Attributes

Function< Bool(const Shared< GraphicsContext > &)> initialize
 A delegate method that is called when the demo should be initialized. More...
 
Function< void()> deinitialize
 A delegate method that is called when the demo should be cleaned up. More...
 
Function< void(const Shared< GraphicsContext > &)> draw
 A delegate method that is called when the demo view should be drawn. More...
 
Function< void(const Size2D &)> resize
 A delegate method that is called when the demo view should be resized. More...
 
Function< void(const TextEvent &)> textEvent
 A delegate method that is called when a text event is received. More...
 
Function< void(const KeyEvent &)> keyEvent
 A delegate method that is called when a keyboard event is received. More...
 
Function< void(const MouseButtonEvent &)> mouseButtonEvent
 A delegate method that is called when a mouse button event is received. More...
 
Function< void(const MouseWheelEvent &)> mouseWheelEvent
 A delegate method that is called when a mouse wheel event is received. More...
 
Function< void(const MouseMotionEvent &)> mouseMotionEvent
 A delegate method that is called when a mouse motion event is received. More...
 

Detailed Description

A class that represents a set of delegate methods for demo event handling.

Member Data Documentation

Function<Bool ( const Shared<GraphicsContext>& )> om::engine::SimpleDemo::Delegate::initialize

A delegate method that is called when the demo should be initialized.

Function<void ()> om::engine::SimpleDemo::Delegate::deinitialize

A delegate method that is called when the demo should be cleaned up.

Function<void ( const Shared<GraphicsContext>& )> om::engine::SimpleDemo::Delegate::draw

A delegate method that is called when the demo view should be drawn.

Function<void ( const Size2D& )> om::engine::SimpleDemo::Delegate::resize

A delegate method that is called when the demo view should be resized.

Function<void ( const TextEvent& )> om::engine::SimpleDemo::Delegate::textEvent

A delegate method that is called when a text event is received.

Function<void ( const KeyEvent& )> om::engine::SimpleDemo::Delegate::keyEvent

A delegate method that is called when a keyboard event is received.

Function<void ( const MouseButtonEvent& )> om::engine::SimpleDemo::Delegate::mouseButtonEvent

A delegate method that is called when a mouse button event is received.

Function<void ( const MouseWheelEvent& )> om::engine::SimpleDemo::Delegate::mouseWheelEvent

A delegate method that is called when a mouse wheel event is received.

Function<void ( const MouseMotionEvent& )> om::engine::SimpleDemo::Delegate::mouseMotionEvent

A delegate method that is called when a mouse motion event is received.


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