xoreos
0.0.5
|
#include <highlightable.h>
Public Member Functions | |
Highlightable () | |
virtual | ~Highlightable () |
bool | isHighlightable () const |
void | setHighlightable (bool highlightable) |
bool | isHightlighted () const |
void | setHighlighted (bool hightlighted) |
void | setHighlightDelta (float r, float g, float b, float a) |
Set how much the quad changes per render. More... | |
void | setHighlightUpperBound (float r, float g, float b, float a) |
When any of the quad properties are greater than this bound, the signs of the delta floats will flip. More... | |
void | setHighlightLowerBound (float r, float g, float b, float a) |
When any of the quad properties are less than this bound, the signs of the delta floats will flip. More... | |
void | getHighlightedLowerBound (float &r, float &g, float &b, float &a) const |
Protected Member Functions | |
void | flipHighlightDelta () |
void | incrementColor (float initialR, float initialG, float initialB, float initialA, float &r, float &g, float &b, float &a) |
Private Attributes | |
bool | _highlightable |
bool | _isHighlighted |
float | _deltaR |
float | _deltaG |
float | _deltaB |
float | _deltaA |
float | _upperBoundR |
float | _upperBoundG |
float | _upperBoundB |
float | _upperBoundA |
float | _lowerBoundR |
float | _lowerBoundG |
float | _lowerBoundB |
float | _lowerBoundA |
uint32 | _prevIncTime |
Definition at line 30 of file highlightable.h.
Graphics::Aurora::Highlightable::Highlightable | ( | ) |
Definition at line 28 of file highlightable.cpp.
|
virtual |
Definition at line 36 of file highlightable.cpp.
|
protected |
Definition at line 84 of file highlightable.cpp.
References _deltaA, _deltaB, _deltaG, and _deltaR.
Referenced by incrementColor().
void Graphics::Aurora::Highlightable::getHighlightedLowerBound | ( | float & | r, |
float & | g, | ||
float & | b, | ||
float & | a | ||
) | const |
Definition at line 77 of file highlightable.cpp.
References _lowerBoundA, _lowerBoundB, _lowerBoundG, and _lowerBoundR.
Referenced by Engines::WidgetCheckBox::enter(), and Engines::KotORJadeWidget::setHighlight().
|
protected |
Definition at line 91 of file highlightable.cpp.
References _deltaA, _deltaB, _deltaG, _deltaR, _lowerBoundA, _lowerBoundB, _lowerBoundG, _lowerBoundR, _prevIncTime, _upperBoundA, _upperBoundB, _upperBoundG, _upperBoundR, EventMan, and flipHighlightDelta().
Referenced by Graphics::Aurora::HighlightableGUIQuad::render(), and Graphics::Aurora::HighlightableText::render().
bool Graphics::Aurora::Highlightable::isHighlightable | ( | ) | const |
Definition at line 40 of file highlightable.cpp.
References _highlightable.
Referenced by Engines::WidgetCheckBox::enter(), Engines::WidgetCheckBox::leave(), Graphics::Aurora::HighlightableGUIQuad::render(), Graphics::Aurora::HighlightableText::render(), and Engines::KotORJadeWidget::setHighlight().
bool Graphics::Aurora::Highlightable::isHightlighted | ( | ) | const |
Definition at line 48 of file highlightable.cpp.
References _isHighlighted.
Referenced by Graphics::Aurora::HighlightableGUIQuad::render(), and Graphics::Aurora::HighlightableText::render().
void Graphics::Aurora::Highlightable::setHighlightable | ( | bool | highlightable | ) |
Definition at line 44 of file highlightable.cpp.
References _highlightable.
Referenced by Engines::WidgetButton::setDefaultHighlighting(), Engines::WidgetProtoItem::setDefaultHighlighting(), Engines::WidgetCheckBox::setQuadHighlighting(), and Engines::WidgetCheckBox::setTextHighlighting().
void Graphics::Aurora::Highlightable::setHighlightDelta | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
Set how much the quad changes per render.
Positive number increment the color, negative numbers decrement it.
Definition at line 56 of file highlightable.cpp.
References _deltaA, _deltaB, _deltaG, and _deltaR.
Referenced by Engines::WidgetButton::setDefaultHighlighting(), Engines::WidgetProtoItem::setDefaultHighlighting(), and Engines::WidgetCheckBox::setTextHighlighting().
void Graphics::Aurora::Highlightable::setHighlighted | ( | bool | hightlighted | ) |
Definition at line 52 of file highlightable.cpp.
References _isHighlighted.
Referenced by Engines::WidgetCheckBox::enter(), Engines::WidgetCheckBox::leave(), and Engines::KotORJadeWidget::setHighlight().
void Graphics::Aurora::Highlightable::setHighlightLowerBound | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
When any of the quad properties are less than this bound, the signs of the delta floats will flip.
Definition at line 63 of file highlightable.cpp.
References _lowerBoundA, _lowerBoundB, _lowerBoundG, and _lowerBoundR.
Referenced by Engines::WidgetButton::setDefaultHighlighting(), Engines::WidgetProtoItem::setDefaultHighlighting(), Engines::WidgetCheckBox::setQuadHighlighting(), Engines::WidgetButton::setStaticHighlight(), and Engines::WidgetCheckBox::setTextHighlighting().
void Graphics::Aurora::Highlightable::setHighlightUpperBound | ( | float | r, |
float | g, | ||
float | b, | ||
float | a | ||
) |
When any of the quad properties are greater than this bound, the signs of the delta floats will flip.
Definition at line 70 of file highlightable.cpp.
References _upperBoundA, _upperBoundB, _upperBoundG, and _upperBoundR.
Referenced by Engines::WidgetButton::setDefaultHighlighting(), Engines::WidgetProtoItem::setDefaultHighlighting(), and Engines::WidgetCheckBox::setTextHighlighting().
|
private |
Definition at line 70 of file highlightable.h.
Referenced by flipHighlightDelta(), incrementColor(), and setHighlightDelta().
|
private |
Definition at line 69 of file highlightable.h.
Referenced by flipHighlightDelta(), incrementColor(), and setHighlightDelta().
|
private |
Definition at line 68 of file highlightable.h.
Referenced by flipHighlightDelta(), incrementColor(), and setHighlightDelta().
|
private |
Definition at line 67 of file highlightable.h.
Referenced by flipHighlightDelta(), incrementColor(), and setHighlightDelta().
|
private |
Definition at line 64 of file highlightable.h.
Referenced by isHighlightable(), and setHighlightable().
|
private |
Definition at line 65 of file highlightable.h.
Referenced by isHightlighted(), and setHighlighted().
|
private |
Definition at line 80 of file highlightable.h.
Referenced by getHighlightedLowerBound(), incrementColor(), and setHighlightLowerBound().
|
private |
Definition at line 79 of file highlightable.h.
Referenced by getHighlightedLowerBound(), incrementColor(), and setHighlightLowerBound().
|
private |
Definition at line 78 of file highlightable.h.
Referenced by getHighlightedLowerBound(), incrementColor(), and setHighlightLowerBound().
|
private |
Definition at line 77 of file highlightable.h.
Referenced by getHighlightedLowerBound(), incrementColor(), and setHighlightLowerBound().
|
private |
Definition at line 82 of file highlightable.h.
Referenced by incrementColor().
|
private |
Definition at line 75 of file highlightable.h.
Referenced by incrementColor(), and setHighlightUpperBound().
|
private |
Definition at line 74 of file highlightable.h.
Referenced by incrementColor(), and setHighlightUpperBound().
|
private |
Definition at line 73 of file highlightable.h.
Referenced by incrementColor(), and setHighlightUpperBound().
|
private |
Definition at line 72 of file highlightable.h.
Referenced by incrementColor(), and setHighlightUpperBound().