MIRA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HighlightProperty Class Reference

#include <gui/HighlightProperty.h>

Inheritance diagram for HighlightProperty:
Inheritance graph
[legend]

Public Member Functions

 HighlightProperty (boost::function< void()> callback, bool enable=false, Ogre::ColourValue color=Ogre::ColourValue(1.0f, 0.0f, 1.0f, 1.0f), float textsize=0.1f)
 
template<typename Class >
 HighlightProperty (void(Class::*f)(), Class *obj, bool enable=false, Ogre::ColourValue color=Ogre::ColourValue(1.0f, 0.0f, 1.0f, 1.0f), float textsize=0.1f)
 
template<typename Reflector >
void reflect (Reflector &r)
 
bool isEnabled () const
 
const Ogre::ColourValue & color () const
 
float textsize () const
 
int index ()
 
void setWrapIndex (unsigned int wrap)
 

Protected Member Functions

void wrapIndex ()
 
void setIndex (int index)
 

Protected Attributes

bool mEnable
 
Ogre::ColourValue mColor
 
float mTextsize
 
int mIndex
 
int mWrapIndex
 
boost::function< void()> mNotifyChange
 

Constructor & Destructor Documentation

◆ HighlightProperty() [1/2]

HighlightProperty ( boost::function< void()>  callback,
bool  enable = false,
Ogre::ColourValue  color = Ogre::ColourValue(1.0f, 0.0f, 1.0f, 1.0f),
float  textsize = 0.1f 
)
inline

◆ HighlightProperty() [2/2]

HighlightProperty ( void(Class::*)()  f,
Class obj,
bool  enable = false,
Ogre::ColourValue  color = Ogre::ColourValue(1.0f, 0.0f, 1.0f, 1.0f),
float  textsize = 0.1f 
)
inline

Member Function Documentation

◆ reflect()

void reflect ( Reflector &  r)
inline

◆ isEnabled()

bool isEnabled ( ) const

◆ color()

const Ogre::ColourValue& color ( ) const

◆ textsize()

float textsize ( ) const

Member Data Documentation

◆ mEnable

bool mEnable
protected

◆ mColor

Ogre::ColourValue mColor
protected

◆ mTextsize

float mTextsize
protected

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