本文整理汇总了C++中etl::loose_handle::time_window_adjustment方法的典型用法代码示例。如果您正苦于以下问题:C++ loose_handle::time_window_adjustment方法的具体用法?C++ loose_handle::time_window_adjustment怎么用?C++ loose_handle::time_window_adjustment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类etl::loose_handle
的用法示例。
在下文中一共展示了loose_handle::time_window_adjustment方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
void
Dock_Curves::changed_canvas_view_vfunc(etl::loose_handle<CanvasView> canvas_view)
{
if(table_)
{
table_->hide();
delete table_;
hscrollbar_->unset_adjustment();
vscrollbar_->unset_adjustment();
//widget_timeslider_->unset_adjustment();
table_=0;
}
if(canvas_view)
{
last_widget_curves_=dynamic_cast<Widget_Curves*>(
canvas_view->get_ext_widget(get_name())
);
vscrollbar_->set_adjustment(last_widget_curves_->get_range_adjustment());
hscrollbar_->set_adjustment(canvas_view->time_window_adjustment());
widget_timeslider_->set_time_adjustment(&canvas_view->time_adjustment());
widget_timeslider_->set_bounds_adjustment(&canvas_view->time_window_adjustment());
widget_timeslider_->set_global_fps(canvas_view->get_canvas()->rend_desc().get_frame_rate());
table_=new Gtk::Table(2,2);
table_->attach(*widget_timeslider_, 0, 1, 0, 1, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
table_->attach(*last_widget_curves_, 0, 1, 1, 2, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::EXPAND);
table_->attach(*hscrollbar_, 0, 1, 2, 3, Gtk::FILL|Gtk::EXPAND, Gtk::FILL|Gtk::SHRINK);
table_->attach(*vscrollbar_, 1, 2, 0, 2, Gtk::FILL|Gtk::SHRINK, Gtk::FILL|Gtk::EXPAND);
add(*table_);
//add(*last_widget_curves_);
last_widget_curves_->show();
table_->show_all();
show_all();
}
else
{
//clear_previous();
}
}