24 #ifndef GUI_ANIMATION_SCALEANIMATION_H 25 #define GUI_ANIMATION_SCALEANIMATION_H 27 #include "gui/animation/Animation.h" 37 float getEndWidth()
const {
return _endWidth; }
38 void setEndWidth(
float endWidth) { _endWidth = endWidth; }
39 float getEndWidthFactor()
const {
return _endWidthFactor; }
40 void setEndWidthFactor(
float endWidthFactor) { _endWidthFactor = endWidthFactor; }
41 float getStartWidth()
const {
return _startWidth; }
42 void setStartWidth(
float startWidth) { _startWidth = startWidth; }
44 void updateInternal(
Drawable *drawable,
float interpolation) {
47 _startWidth = drawable->getWidth();
51 _endWidth = _startWidth * _endWidthFactor;
54 float width = _startWidth * (1 - interpolation) + _endWidth * interpolation;
55 drawable->setWidth(width);
59 virtual void updateInternal(
Drawable *drawable,
float interpolation);
62 float _endWidthFactor;
Definition: Animation.h:33
Definition: ScaleAnimation.h:31
Definition: Drawable.h:37