from FeaturePoster.hpp:35
class FeaturePoster : public Container
{
public:
FeaturePoster();
virtual ~FeaturePoster();
void setup(BitmapId posterImage, TEXTS posterHeadline, TEXTS posterText, bool showAlphaExample);
void invalidateText();
void setHeadlineColor(uint16_t color);
void toggleViewMode();
protected:
enum State
{
SHOWING_IMAGE,
SHOWING_TEXT
};
State currentState;
Image shadow[4];
Container posterArea;
MoveAnimator<Image> posterImage;
MoveAnimator<Button> startAnimationButton;
MoveAnimator<AnimatedImage> startAnimationButtonArrow;
FadeAnimator<Box> alphaBox;
TextArea headlineBottom;
MoveAnimator<TextArea> headlineTop;
int headlineTopStartY;
MoveAnimator<Container> textAreaContainer;
Box textBackground;
TextArea text;
int textStartY;
FadeAnimator<Image> gradientOverlay;
Callback<FeaturePoster, const AbstractButton& > startAnimationCallback;
void startAnimationHandler(const AbstractButton& button);
void animate();
MoveAnimator<Image> redBall;
MoveAnimator<Image> greenBall;
MoveAnimator<Image> blueBall;
Callback<FeaturePoster, const MoveAnimator<Image>& > moveAnimationEnded;
void moveAnimationEndedHandler(const MoveAnimator<Image>& image);
};