Ejemplo n.º 1
0
static void prv_slide_settle_stopped(Animation *animation, bool finished, void *context) {
  Layer *layer = (Layer*) animation_get_context(animation);
  SelectionLayerData *data = layer_get_data(layer);
  
  data->slide_settle_anim_progress = 0;
  animation_destroy(animation);
}
Ejemplo n.º 2
0
static void main_window_unload(Window *window)
{
	animation_unschedule_all();
	tick_timer_service_unsubscribe();
	layer_destroy(s_face);
	layer_destroy(s_hand);
	animation_destroy(s_my_animation_ptr);
}
Ejemplo n.º 3
0
AS3_Val destroyAnimation( void* self, AS3_Val args )
{
	Animation *animation;

	animation = AS3_PtrValue(args);

	animation_destroy(&animation);

	return 0;
}
Ejemplo n.º 4
0
void anim_stopped_handler(Animation *animation, bool finished, void *context) {
    // Free the animation
    //property_animation_destroy(s_box_animation);
    animation_destroy(animation);
    
    // Schedule the reverse animation, unless the app is exiting
    if (finished) {
        //    number_of_pixels = -number_of_pixels;
        animate_question(number_of_pixels);
    }
}
Ejemplo n.º 5
0
static void animation_stopped(Animation *anim, bool stopped, void *context) {
  s_animating = false;

  if(config_get(PERSIST_KEY_SECOND_HAND)) {
    tick_timer_service_subscribe(SECOND_UNIT, tick_handler);
  } else {
    tick_timer_service_subscribe(MINUTE_UNIT, tick_handler);
  }  

#ifdef PBL_PLATFORM_APLITE
  animation_destroy(anim);
#endif
}
Ejemplo n.º 6
0
static void prv_slide_stopped(Animation *animation, bool finished, void *context) {
  Layer *layer = (Layer*)animation_get_context(animation);
  SelectionLayerData *data = layer_get_data(layer);
  
  data->slide_amin_progress = 0;
  
  if (data->slide_is_forward) {
    data->selected_cell_idx++;
  } else {
    data->selected_cell_idx--;
  }

  animation_destroy(animation);

}
Ejemplo n.º 7
0
static void prv_bump_text_stopped(Animation *animation, bool finished, void *context) {
  Layer *layer = (Layer*)animation_get_context(animation);
  SelectionLayerData *data = layer_get_data(layer);
  
  data->bump_text_anim_progress = 0;

  if (data->bump_is_upwards == true) {
    data->callbacks.increment(data->selected_cell_idx, 1, data->context);
  } else {
    data->callbacks.decrement(data->selected_cell_idx, 1, data->context);
  }

  animation_destroy(animation);

  Animation *bump_settle = prv_create_bump_settle_animation(layer);
  animation_schedule(bump_settle);
}
Ejemplo n.º 8
0
static void s_glance_up_animation_stopped_handler(Animation *show_animation, bool finished, void *context) {
    SignalLayer *signal_layer = (SignalLayer*)context;
    Layer *layer = signal_layer->layer;

    // destroy
    animation_destroy(show_animation);

    // start animation to hide
    GRect from_frame = layer_get_frame(layer);
    GRect to_frame = GRect(from_frame.origin.x,
                           0,
                           from_frame.size.w,
                           from_frame.size.h);

    PropertyAnimation *hide_animation = property_animation_create_layer_frame(layer, &from_frame, &to_frame);
    animation_set_handlers(property_animation_get_animation(hide_animation),
                           (AnimationHandlers){.started = NULL,
                                               .stopped = s_glance_down_animation_stopped_handler},
static void prv_slide_stopped(Animation *animation, bool finished, void *context) {
  Layer *layer = (Layer*)animation_get_context(animation);
  SelectionLayerData *data = layer_get_data(layer);
  
  data->slide_amin_progress = 0;
  
  if (data->slide_is_forward) {
    data->selected_cell_idx++;
  } else {
    data->selected_cell_idx--;
  }

  animation_destroy(animation);

#ifndef PBL_SDK_3
  Animation *settle_animation = prv_create_slide_settle_animation(layer);
  animation_schedule(settle_animation);
#endif
}
Ejemplo n.º 10
0
void destroyAnim(Animation *animation) {
  if (anim != NULL) {
    animation_destroy(anim);
  }
  anim = NULL;
}
Ejemplo n.º 11
0
void startup_animation_teardown(Animation *animation) {
  startup_animation_update(animation, ANIMATION_NORMALIZED_MAX);
  animation_destroy(animation);
}
Ejemplo n.º 12
0
static void anim_stopped_handler(Animation* anim, bool finished, void* context) {
  animation_destroy(anim);
  animating = false;
  //reset_ticks();
  //APP_LOG(APP_LOG_LEVEL_INFO, "Animation count %d", animation_count);
}
Ejemplo n.º 13
0
static void animation_stopped(Animation *animation, bool finished, void *data) {
#ifndef PBL_SDK_3
	animation_destroy(animation);
#endif
}
Ejemplo n.º 14
0
static void s_glance_down_animation_stopped_handler(Animation *hide_animation, bool finished, void *context) {
    SignalLayer *signal_layer = (SignalLayer*)context;

    animation_destroy(hide_animation);
    signal_layer->glancing = false;
}
Ejemplo n.º 15
0
static void animation_stopped(Animation *anim, bool stopped, void *context) {
#ifdef PBL_PLATFORM_APLITE
  animation_destroy(anim);
#endif
}