コード例 #1
0
ファイル: effects.c プロジェクト: Gymnasiast/marco
static void
run_default_effect_handler (MetaEffect *effect)
{
    switch (effect->type)
    {
    case META_EFFECT_MINIMIZE:
        draw_box_animation (effect->window->screen,
                            &(effect->u.minimize.window_rect),
                            &(effect->u.minimize.icon_rect),
                            META_MINIMIZE_ANIMATION_LENGTH,
                            effect->priv->finished,
                            effect->priv->finished_data);
        break;
    case META_EFFECT_UNMINIMIZE:
        draw_box_animation (effect->window->screen,
                            &(effect->u.minimize.icon_rect),
                            &(effect->u.minimize.window_rect),
                            META_UNMINIMIZE_ANIMATION_LENGTH,
                            effect->priv->finished,
                            effect->priv->finished_data);
        break;

    default:
        break;
    }
}
コード例 #2
0
ファイル: effects.c プロジェクト: sonald/deepin-metacity
static void
run_default_effect_handler (MetaEffect *effect)
{
    switch (effect->type)
    {
    case META_EFFECT_MINIMIZE:
       draw_box_animation (effect->window->screen,
                     &(effect->u.minimize.window_rect),
                     &(effect->u.minimize.icon_rect),
                     META_MINIMIZE_ANIMATION_LENGTH);
       break;

    case META_EFFECT_UNMINIMIZE:
    case META_EFFECT_FOCUS:
    case META_EFFECT_CLOSE:
    case META_NUM_EFFECTS:
      break;

    default:
       break;
    }
}