Definition at line 8 of file eggColorFader.hpp.
|
enum | ColorFaderFlag {
FLAG_1 = BIT_FLAG(0)
,
FLAG_2 = BIT_FLAG(1)
} |
|
enum | EStatus {
OPAQUE
,
HIDDEN
,
FADE_IN
,
FADE_OUT
} |
| The fader's status. More...
|
|
◆ ColorFaderFlag
enum EGG::ColorFader::ColorFaderFlag |
◆ ColorFader()
◆ ~ColorFader()
EGG::ColorFader::~ColorFader |
( |
| ) |
|
|
virtual |
◆ setStatus()
◆ getStatus()
virtual EStatus EGG::ColorFader::getStatus |
( |
| ) |
const |
|
inlinevirtual |
◆ fadeIn()
bool EGG::ColorFader::fadeIn |
( |
| ) |
|
|
virtual |
◆ fadeOut()
bool EGG::ColorFader::fadeOut |
( |
| ) |
|
|
virtual |
Initiates a fade in from pure blacked-out.
The screen must be OPAQUE for the operation to be executed.
- Returns
- If the action was carried out.
Implements EGG::Fader.
Definition at line 49 of file eggColorFader.cpp.
◆ calc()
int EGG::ColorFader::calc |
( |
| ) |
|
|
virtual |
Initiates a fade out from no-obstruction.
The screen must be HIDDEN for the operation to be executed.
- Returns
- If the action was carried out.
Implements EGG::Fader.
Definition at line 59 of file eggColorFader.cpp.
◆ draw()
void EGG::ColorFader::draw |
( |
| ) |
|
|
virtual |
Calculates the fader at the current frame.
- Returns
- If the operation was successful.
Implements EGG::Fader.
Definition at line 94 of file eggColorFader.cpp.
◆ setFrame()
void EGG::ColorFader::setFrame |
( |
u16 | frameCount | ) |
|
◆ setColor()
◆ isStatus()
bool EGG::ColorFader::isStatus |
( |
EStatus | status | ) |
|
|
inline |
◆ getWidth()
float EGG::ColorFader::getWidth |
( |
| ) |
const |
|
inline |
◆ getHeight()
float EGG::ColorFader::getHeight |
( |
| ) |
const |
|
inline |
◆ mStatus
◆ mFlag
u8 EGG::ColorFader::mFlag |
|
protected |
◆ mFrameCount
u16 EGG::ColorFader::mFrameCount |
|
protected |
◆ mFrame
u16 EGG::ColorFader::mFrame |
|
protected |
◆ mCurrColor
◆ mLeft
float EGG::ColorFader::mLeft |
|
protected |
◆ mTop
float EGG::ColorFader::mTop |
|
protected |
◆ mRight
float EGG::ColorFader::mRight |
|
protected |
◆ mBottom
float EGG::ColorFader::mBottom |
|
protected |