| 109 | /* ActionProperty */ |
| 110 | |
| 111 | Own<ActionDuration> PropertyAction::alloc(float duration, float start, float stop, Property::Enum prop, Ease::Enum easing) { |
| 112 | PropertyAction* action = new PropertyAction(); |
| 113 | action->_start = start; |
| 114 | action->_delta = stop - start; |
| 115 | action->_duration = std::max(FLT_EPSILON, duration); |
| 116 | action->_setFunc = Property::getFunc(prop); |
| 117 | action->_ease = Ease::getFunc(easing); |
| 118 | action->_ended = false; |
| 119 | return Own<ActionDuration>(action); |
| 120 | } |
| 121 | |
| 122 | Action* PropertyAction::create(float duration, float start, float stop, Property::Enum prop, Ease::Enum easing) { |
| 123 | return Action::create(PropertyAction::alloc(duration, start, stop, prop, easing)); |
nothing calls this directly
no test coverage detected