32 #include "scene/main/node.h" 40 enum TweenProcessMode {
71 enum InterpolateType {
82 struct InterpolateData {
96 TransitionType trans_type;
104 TweenProcessMode tween_process_mode;
109 mutable int pending_update;
113 struct PendingCommand {
132 void _process_pending_commands();
134 typedef real_t (*interpolater)(real_t t, real_t b, real_t c, real_t d);
135 static interpolater interpolaters[TRANS_COUNT][EASE_COUNT];
137 real_t _run_equation(TransitionType p_trans_type, EaseType p_ease_type, real_t t, real_t b, real_t c, real_t d);
138 Variant& _get_delta_val(InterpolateData& p_data);
139 Variant& _get_initial_val(InterpolateData& p_data);
140 Variant _run_equation(InterpolateData& p_data);
141 bool _calc_delta_val(
const Variant& p_initial_val,
const Variant& p_final_val,
Variant& p_delta_val);
142 bool _apply_tween_value(InterpolateData& p_data,
Variant& value);
144 void _tween_process(
float p_delta);
145 void _set_process(
bool p_process,
bool p_force=
false);
152 void _notification(
int p_what);
154 static void _bind_methods();
158 bool is_active()
const;
159 void set_active(
bool p_active);
161 bool is_repeat()
const;
162 void set_repeat(
bool p_repeat);
164 void set_tween_process_mode(TweenProcessMode p_mode);
165 TweenProcessMode get_tween_process_mode()
const;
167 void set_speed(
float p_speed);
168 float get_speed()
const;
180 bool seek(real_t p_time);
182 real_t get_runtime()
const;
184 bool interpolate_property(
Object *p_node
188 , real_t p_times_in_sec
189 , TransitionType p_trans_type
190 , EaseType p_ease_type
194 bool interpolate_method(
Object *p_node
198 , real_t p_times_in_sec
199 , TransitionType p_trans_type
200 , EaseType p_ease_type
204 bool interpolate_callback(
Object *p_object
205 , real_t p_times_in_sec
207 , VARIANT_ARG_DECLARE
210 bool interpolate_deferred_callback(
Object *p_object
211 , real_t p_times_in_sec
213 , VARIANT_ARG_DECLARE
216 bool follow_property(
Object *p_node
220 ,
String p_target_property
221 , real_t p_times_in_sec
222 , TransitionType p_trans_type
223 , EaseType p_ease_type
227 bool follow_method(
Object *p_node
232 , real_t p_times_in_sec
233 , TransitionType p_trans_type
234 , EaseType p_ease_type
238 bool targeting_property(
Object *p_node
241 ,
String p_initial_property
243 , real_t p_times_in_sec
244 , TransitionType p_trans_type
245 , EaseType p_ease_type
249 bool targeting_method(
Object *p_node
254 , real_t p_times_in_sec
255 , TransitionType p_trans_type
256 , EaseType p_ease_type
264 VARIANT_ENUM_CAST( Tween::TweenProcessMode );
265 VARIANT_ENUM_CAST( Tween::TransitionType );
266 VARIANT_ENUM_CAST( Tween::EaseType );
Definition: string_db.h:48