|
void jump_to_window(GX_WIDGET *target)
{
GX_ANIMATION *animation;
GX_ANIMATION_INFO info;
/* Allocate an animaton control from system pool. */
if(gx_system_animation_get(&animation) == GX_SUCCESS)
{
memset(&info, 0, sizeof(GX_ANIMATION_INFO));
info.gx_animation_style = GX_ANIMATION_TRANSLATE;
info.gx_animation_id = 0;
info.gx_animation_parent = (GX_WIDGET *)root;
info.gx_animation_target = target;
info.gx_animation_start_alpha = 255;
info.gx_animation_end_alpha = 255;
info.gx_animation_steps = 10;
info.gx_animation_frame_interval = 1;
info.gx_animation_start_position.gx_point_x = 0;
info.gx_animation_start_position.gx_point_y = 0;
info.gx_animation_end_position.gx_point_x = 0;
info.gx_animation_end_position.gx_point_y = 0;
gx_animation_start(animation, &info);
}
}
方便一些非UI事件触发的页面跳转,就是手动创建个跳转动画直接执行
|
评分
-
查看全部评分
|