Crazy Eddies GUI System  0.6.0
Public Types | Public Member Functions | Protected Attributes | List of all members
WidgetFadeTask Class Reference
+ Inheritance diagram for WidgetFadeTask:
+ Collaboration diagram for WidgetFadeTask:

Public Types

enum  eFadeDirection { FADEDIR_IN = 0, FADEDIR_OUT = 1 }
 

Public Member Functions

enum WidgetFadeTask::eFadeDirection WidgetFadeTask (Window *widget, eFadeDirection fadedir, float targetalpha, bool destroy=true)
 
virtual bool run (float elapsed)
 

Protected Attributes

eFadeDirection d_fadeDirection
 Dictates which direction we are fading (in or out)
 
float d_targetAlpha
 What alpha are we fading to/from?
 
Window * d_widget
 what widget are we affecting?
 
- Protected Attributes inherited from Task
bool d_destroyOnComplete
 Does this task destory itself once it completes?
 

Member Function Documentation

virtual bool WidgetFadeTask::run ( float  elapsed)
virtual

Overridden from base task class – Does the actual fading on the window.

Parameters
elapsedAmount of time since the last frame update
Returns
True on success

Implements Task.