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


C++ request_repaint函数代码示例

本文整理汇总了C++中request_repaint函数的典型用法代码示例。如果您正苦于以下问题:C++ request_repaint函数的具体用法?C++ request_repaint怎么用?C++ request_repaint使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: get_workspace_area

void ViewWorkspace::on_resized()
{
	clan::Rect workspace_area = get_workspace_area();
	for (std::vector<ViewPage>::iterator it = pages.begin(); it != pages.end(); ++it)
		(*it).view->set_geometry(workspace_area);
	request_repaint();
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:7,代码来源:view_workspace.cpp

示例2: request_repaint

void StatusBar::set_part_text(int id, const Image &icon, const std::string &text)
{
	unsigned int index = impl->find_part(id);
	impl->statusbar_parts[index].icon = icon;
	impl->statusbar_parts[index].text = text;
	request_repaint();
}
开发者ID:kyelin,项目名称:ClanLib,代码行数:7,代码来源:statusbar.cpp

示例3: CL_Image

void CL_StatusBar::set_part_text(int id, const CL_StringRef &text)
{
	unsigned int index = impl->find_part(id);
	impl->statusbar_parts[index].icon = CL_Image();
	impl->statusbar_parts[index].text = text;
	request_repaint();
}
开发者ID:animehunter,项目名称:clanlib-2.3,代码行数:7,代码来源:statusbar.cpp

示例4: request_repaint

void CL_ListView::set_select_whole_row(bool value)
{
	impl->cancel_edit();

	impl->select_whole_row = value;
	request_repaint();
}
开发者ID:animehunter,项目名称:clanlib-2.3,代码行数:7,代码来源:listview.cpp

示例5: request_repaint

void ProgressBar::step_position()
{
	impl->position += impl->step_size;

	impl->check_range();
	request_repaint();
}
开发者ID:wbyang1985,项目名称:ClanLib,代码行数:7,代码来源:progressbar.cpp

示例6: request_repaint

void CL_ScrollBar::set_vertical()
{
	impl->vertical = true;
	impl->create_parts();
	if(impl->update_part_positions())
		request_repaint();
}
开发者ID:PaulFSherwood,项目名称:cplusplus,代码行数:7,代码来源:scrollbar.cpp

示例7: request_repaint

void RadialMenu::clear_items()
{
	selected_index = -1;
	max_angle = CL_Angle::from_degrees(0);
	items.clear();
	request_repaint();
}
开发者ID:animehunter,项目名称:clanlib-2.3,代码行数:7,代码来源:radial_menu.cpp

示例8: on_resized

void GridComponent::set_boundary_size(const clan::Size &size)
{
	boundary.width = size.width;
	boundary.height = size.height;
	on_resized();
	request_repaint();
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:7,代码来源:grid_component.cpp

示例9: request_repaint

void ScrollBar::set_horizontal()
{
	impl->vertical = false;
	impl->create_parts();
	if(impl->update_part_positions())
		request_repaint();
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:7,代码来源:scrollbar.cpp

示例10: clear_selection

void CL_ListView::clear()
{
	impl->cancel_edit();

	clear_selection();
	impl->document_item.remove_children();
	request_repaint();
}
开发者ID:animehunter,项目名称:clanlib-2.3,代码行数:8,代码来源:listview.cpp

示例11: request_repaint

void GridComponent::set_netselect_box(clan::Rect new_netselect_box)
{
	if (netselect_box != new_netselect_box)
	{
		netselect_box = new_netselect_box;
		request_repaint();
	}
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:8,代码来源:grid_component.cpp

示例12: request_repaint

void Toolbar::on_mouse_lbutton_up(CL_InputEvent &input_event)
{
	if(clicked_index != -1)
		if (!func_selected.is_null())
			func_selected.invoke(clicked_index);

	clicked_index = -1;
	request_repaint();
}
开发者ID:PaulFSherwood,项目名称:cplusplus,代码行数:9,代码来源:toolbar.cpp

示例13: find_view_index

void ViewWorkspace::set_view_color(View *view, clan::Colorf &color)
{
	int page_index = find_view_index(view);
	if (page_index != current_page_index)
	{
		pages[page_index].color = color;
		request_repaint();
	}
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:9,代码来源:view_workspace.cpp

示例14: request_repaint

void Info::set(int new_xpos, int new_ypos, const std::string &new_name)
{
	name = new_name;
	activated_time = 0;
	activated_flag = false;
	request_repaint();

	set_geometry(clan::Rect(new_xpos, new_ypos, clan::Size(120, 16)));
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:9,代码来源:info.cpp

示例15: status_part

void StatusBar::add_part(int id, int width, GUIComponent *component)
{
	impl->throw_if_part_exists(id);
	StatusBar_Part status_part(id, width, component);
	impl->statusbar_parts.push_back(status_part);
	impl->position_parts();
	request_repaint();
	if (component)
		component->set_visible(true, false);
}
开发者ID:kyelin,项目名称:ClanLib,代码行数:10,代码来源:statusbar.cpp


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