本文整理汇总了C++中etl::handle::rend_desc方法的典型用法代码示例。如果您正苦于以下问题:C++ handle::rend_desc方法的具体用法?C++ handle::rend_desc怎么用?C++ handle::rend_desc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类etl::handle
的用法示例。
在下文中一共展示了handle::rend_desc方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
AsyncTarget_Tile(etl::handle<synfig::Target_Tile> warm_target):
warm_target(warm_target)
{
set_avoid_time_sync(warm_target->get_avoid_time_sync());
set_tile_w(warm_target->get_tile_w());
set_tile_h(warm_target->get_tile_h());
set_canvas(warm_target->get_canvas());
set_quality(warm_target->get_quality());
set_alpha_mode(warm_target->get_alpha_mode());
set_threads(warm_target->get_threads());
set_clipping(warm_target->get_clipping());
set_rend_desc(&warm_target->rend_desc());
alive_flag=true;
#ifndef GLIB_DISPATCHER_BROKEN
ready_connection=tile_ready_signal.connect(sigc::mem_fun(*this,&AsyncTarget_Tile::tile_ready));
#endif
}
示例2: manage
Widget_Waypoint::Widget_Waypoint(etl::handle<synfig::Canvas> canvas):
Gtk::Alignment(0, 0, 1, 1),
waypoint(synfig::ValueBase(),0),
adj_tension(Gtk::Adjustment::create(0.0,-20,20,0.1,1)),
adj_continuity(Gtk::Adjustment::create(0.0,-20,20,0.1,1)),
adj_bias(Gtk::Adjustment::create(0.0,-20,20,0.1,1)),
adj_temporal_tension(Gtk::Adjustment::create(0.0,-20,20,0.1,1))
{
value_widget=manage(new Widget_ValueBase());
value_widget->set_canvas(canvas);
value_widget->show();
value_node_label=manage(new Gtk::Label(_("(Non-static value)")));
time_widget=manage(new Widget_Time());
time_widget->set_fps(canvas->rend_desc().get_frame_rate());
before_options=manage(new class Widget_Enum());
before_options->show();
before_options->set_param_desc(
ParamDesc("interpolation")
.set_hint("enum")
.add_enum_value(INTERPOLATION_CLAMPED,"clamped",_("Clamped"))
.add_enum_value(INTERPOLATION_TCB,"auto",_("TCB"))
.add_enum_value(INTERPOLATION_CONSTANT,"constant",_("Constant"))
.add_enum_value(INTERPOLATION_HALT,"ease",_("Ease In/Out"))
.add_enum_value(INTERPOLATION_LINEAR,"linear",_("Linear"))
);
before_options->set_icon(0, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_clamped"),Gtk::ICON_SIZE_MENU));
before_options->set_icon(1, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_tcb"),Gtk::ICON_SIZE_MENU));
before_options->set_icon(2, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_const"),Gtk::ICON_SIZE_MENU));
before_options->set_icon(3, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_ease"),Gtk::ICON_SIZE_MENU));
before_options->set_icon(4, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_linear"),Gtk::ICON_SIZE_MENU));
after_options=manage(new class Widget_Enum());
after_options->show();
after_options->set_param_desc(
ParamDesc("interpolation")
.set_hint("enum")
.add_enum_value(INTERPOLATION_CLAMPED,"clamped",_("Clamped"))
.add_enum_value(INTERPOLATION_TCB,"auto",_("TCB"))
.add_enum_value(INTERPOLATION_CONSTANT,"constant",_("Constant"))
.add_enum_value(INTERPOLATION_HALT,"ease",_("Ease In/Out"))
.add_enum_value(INTERPOLATION_LINEAR,"linear",_("Linear"))
);
after_options->set_icon(0, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_clamped"),Gtk::ICON_SIZE_MENU));
after_options->set_icon(1, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_tcb"),Gtk::ICON_SIZE_MENU));
after_options->set_icon(2, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_const"),Gtk::ICON_SIZE_MENU));
after_options->set_icon(3, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_ease"),Gtk::ICON_SIZE_MENU));
after_options->set_icon(4, Gtk::Button().render_icon_pixbuf(Gtk::StockID("synfig-interpolation_type_linear"),Gtk::ICON_SIZE_MENU));
spin_tension=manage(new class Gtk::SpinButton(adj_tension,0.1,3));
spin_tension->show();
spin_continuity=manage(new class Gtk::SpinButton(adj_continuity,0.1,3));
spin_continuity->show();
spin_bias=manage(new class Gtk::SpinButton(adj_bias,0.1,3));
spin_bias->show();
spin_temporal_tension=manage(new class Gtk::SpinButton(adj_temporal_tension,0.1,3));
spin_temporal_tension->show();
set_padding(12, 12, 12, 12);
Gtk::VBox *widgetBox = manage(new Gtk::VBox(false, 12));
add(*widgetBox);
Gtk::Frame *waypointFrame = manage(new Gtk::Frame(_("Waypoint")));
waypointFrame->set_shadow_type(Gtk::SHADOW_NONE);
((Gtk::Label *) waypointFrame->get_label_widget())->set_markup(_("<b>Waypoint</b>"));
widgetBox->pack_start(*waypointFrame, false, false, 0);
Gtk::Alignment *waypointPadding = manage(new Gtk::Alignment(0, 0, 1, 1));
waypointPadding->set_padding(6, 0, 24, 0);
waypointFrame->add(*waypointPadding);
Gtk::Table *waypointTable = manage(new Gtk::Table(2, 2, false));
waypointTable->set_row_spacings(6);
waypointTable->set_col_spacings(12);
waypointPadding->add(*waypointTable);
Gtk::Label *waypointValueLabel = manage(new Gtk::Label(_("_Value"), true));
waypointValueLabel->set_alignment(0, 0.5);
waypointValueLabel->set_mnemonic_widget(*value_widget);
waypointTable->attach(*waypointValueLabel, 0, 1, 0, 1, Gtk::SHRINK | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
waypointTable->attach(*value_widget, 1, 2, 0, 1, Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
waypointTable->attach(*value_node_label, 1, 2, 0, 1, Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
Gtk::Label *waypointTimeLabel = manage(new Gtk::Label(_("_Time"), true));
waypointTimeLabel->set_alignment(0, 0.5);
waypointTimeLabel->set_mnemonic_widget(*time_widget);
waypointTable->attach(*waypointTimeLabel, 0, 1, 1, 2, Gtk::SHRINK | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
waypointTable->attach(*time_widget, 1, 2, 1, 2, Gtk::EXPAND | Gtk::FILL, Gtk::EXPAND | Gtk::FILL, 0, 0);
Gtk::Frame *interpolationFrame = manage(new Gtk::Frame(_("Interpolation")));
interpolationFrame->set_shadow_type(Gtk::SHADOW_NONE);
((Gtk::Label *) interpolationFrame->get_label_widget())->set_markup(_("<b>Interpolation</b>"));
widgetBox->pack_start(*interpolationFrame, false, false, 0);
Gtk::Alignment *interpolationPadding = manage(new Gtk::Alignment(0, 0, 1, 1));
interpolationPadding->set_padding(6, 0, 24, 0);
//.........这里部分代码省略.........