当前位置: 首页>>代码示例>>C++>>正文


C++ Controller::decrease_intervalometer_rate方法代码示例

本文整理汇总了C++中Controller::decrease_intervalometer_rate方法的典型用法代码示例。如果您正苦于以下问题:C++ Controller::decrease_intervalometer_rate方法的具体用法?C++ Controller::decrease_intervalometer_rate怎么用?C++ Controller::decrease_intervalometer_rate使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Controller的用法示例。


在下文中一共展示了Controller::decrease_intervalometer_rate方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: key_press_event


//.........这里部分代码省略.........
            if (ctrl_pressed)
            {
                if (verbose)
                    g_print("Ctrl-Q key pressed, quitting.\n");
                context->owner_->quit();
            }
            break;
        case CLUTTER_KEY_s:
            // Ctrl-s: Save the whole project
            if (ctrl_pressed)
            {
                //if (verbose)
                controller->save_project();
                g_print("Saved the whole project.\n");
            } else // no Ctrl pressed
                g_print("Warning: Use Ctrl-E to export the current clip as a movie file, or Ctrl-s to save the whole project.\n");
            break;
        case CLUTTER_KEY_e:
            // Ctrl-e: Exports the current clip
            // (if there is one)
            if (ctrl_pressed)
            {
                if (verbose)
                    g_print("Exporting the current clip.");
                controller->save_current_clip();
            }
            break;
        case CLUTTER_KEY_F2: // TODO: change this key for save
            controller->save_project();
            controller->save_current_clip();
            break;
        case CLUTTER_KEY_a:
            //std::cout << "Toggle intervalometer." << std::endl; 
            controller->toggle_intervalometer();
            break;
        case CLUTTER_KEY_k:
            controller->increase_intervalometer_rate();
            break;
        case CLUTTER_KEY_j:
            controller->decrease_intervalometer_rate();
            break;
        case CLUTTER_KEY_Left:
            controller->move_writehead_to_previous();
            break;
        case CLUTTER_KEY_Right:
            controller->move_writehead_to_next();
            break;
        case CLUTTER_KEY_Return:
            controller->move_writehead_to_last();
            break;
        case CLUTTER_KEY_semicolon:
            controller->move_writehead_to_first();
            break;
        case CLUTTER_KEY_bracketleft:
            controller->set_int_value("livefeed_opacity", clip_int(controller->get_int_value("livefeed_opacity") - 1, 0, 255));
            break;
        case CLUTTER_KEY_bracketright:
            controller->set_int_value("livefeed_opacity", clip_int(controller->get_int_value("livefeed_opacity") + 1, 0, 255));
            break;
        case CLUTTER_KEY_parenleft:
            context->crossfade_increment(-0.1f);
            break;
        case CLUTTER_KEY_parenright:
            context->crossfade_increment(0.1f);
            break;
        case CLUTTER_KEY_i:
            context->toggle_info();
            break;
        case CLUTTER_KEY_F1:
            context->toggle_help();
            break;
        case CLUTTER_KEY_o:
            context->enable_onionskin( ! context->onionskin_enabled_);
            break;
        case CLUTTER_KEY_x:
            controller->set_int_value("black_out", 1 - controller->get_int_value("black_out")); // toggle [0,1]
            break;
        case CLUTTER_KEY_b:
            {
                Property<int> *blending_mode = controller->int_properties_.get_property("blending_mode");
                if (blending_mode->get_value() == 1) //context->blending_mode_ == BLENDING_MODE_ADDITIVE)
                    blending_mode->set_value(0);
                    //context->set_blending_mode(BLENDING_MODE_NORMAL);
                else
                    blending_mode->set_value(1);
                    //context->set_blending_mode(BLENDING_MODE_ADDITIVE);
                std::cout << "Blending mode:" << context->blending_mode_ << std::endl;
            }
            break;
        case CLUTTER_KEY_p:
            {
                bool enabled = controller->get_playback_enabled();
                controller->playback_toggle(! enabled);
            }
            break;
        default:
            break;
    }
    return TRUE;
}
开发者ID:AmineYaiche,项目名称:toonloop,代码行数:101,代码来源:gui.cpp


注:本文中的Controller::decrease_intervalometer_rate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。