Om  1.0.0
A universal framework for multimedia simulation
Public Attributes | List of all members
om::graphics::gui::objects::ObjectView::Delegate Class Reference

A class that contains function objects that recieve ObjectView events. More...

#include <omGraphicsGUIObjectView.h>

Public Attributes

Function< void(ObjectView &objectView, Float dt)> update
 A function object that is called whenever an object view's internal state is updated. More...
 
Function< Bool(ObjectView &objectView, const GUIEvent &event)> guiEvent
 A function object called whenever an attached object view receives a GUI event. More...
 
Function< Bool(ObjectView &objectView, const TextEvent &event)> textEvent
 A function object called whenever an attached object view receives text input. More...
 
Function< Bool(ObjectView &objectView, const KeyEvent &event)> keyEvent
 A function object called whenever an attached object view receives a keyboard event. More...
 
Function< Bool(ObjectView &objectView, const MouseMotionEvent &event)> mouseMotionEvent
 A function object called whenever an attached object view receives a mouse-motion event. More...
 
Function< Bool(ObjectView &objectView, const MouseButtonEvent &event)> mouseButtonEvent
 A function object called whenever an attached object view receives a mouse-button event. More...
 
Function< Bool(ObjectView &objectView, const MouseWheelEvent &event)> mouseWheelEvent
 A function object called whenever an attached object view receives a mouse-wheel event. More...
 
UserData data
 An object that stores an opaque pointer to delegate data. More...
 

Detailed Description

A class that contains function objects that recieve ObjectView events.

Any object-view-related event that might be processed has an appropriate callback function object. Each callback function is called by the object view whenever such an event is received. If a callback function in the delegate is not initialized, an object view ignores it.

Member Data Documentation

Function<void ( ObjectView& objectView, Float dt )> om::graphics::gui::objects::ObjectView::Delegate::update

A function object that is called whenever an object view's internal state is updated.

A object view calls this method when its update() method is called, allowing the user to perform any logic updates for the specified time interval which are needed for the object view.

Function<Bool ( ObjectView& objectView, const GUIEvent& event )> om::graphics::gui::objects::ObjectView::Delegate::guiEvent

A function object called whenever an attached object view receives a GUI event.

Function<Bool ( ObjectView& objectView, const TextEvent& event )> om::graphics::gui::objects::ObjectView::Delegate::textEvent

A function object called whenever an attached object view receives text input.

Function<Bool ( ObjectView& objectView, const KeyEvent& event )> om::graphics::gui::objects::ObjectView::Delegate::keyEvent

A function object called whenever an attached object view receives a keyboard event.

Function<Bool ( ObjectView& objectView, const MouseMotionEvent& event )> om::graphics::gui::objects::ObjectView::Delegate::mouseMotionEvent

A function object called whenever an attached object view receives a mouse-motion event.

Function<Bool ( ObjectView& objectView, const MouseButtonEvent& event )> om::graphics::gui::objects::ObjectView::Delegate::mouseButtonEvent

A function object called whenever an attached object view receives a mouse-button event.

Function<Bool ( ObjectView& objectView, const MouseWheelEvent& event )> om::graphics::gui::objects::ObjectView::Delegate::mouseWheelEvent

A function object called whenever an attached object view receives a mouse-wheel event.

UserData om::graphics::gui::objects::ObjectView::Delegate::data

An object that stores an opaque pointer to delegate data.


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