本文整理汇总了C++中request_repaint函数的典型用法代码示例。如果您正苦于以下问题:C++ request_repaint函数的具体用法?C++ request_repaint怎么用?C++ request_repaint使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了request_repaint函数的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: impl
CL_GUIComponent::CL_GUIComponent(CL_GUIComponent *owner, CL_GUITopLevelDescription description)
: impl(CL_GUIComponent_Impl::create_from_owner(owner))
{
impl->component = this;
impl->allow_resize = description.get_allow_resize();
impl->visible = description.is_visible();
impl->gui_manager.lock()->add_component(this, owner, description);
impl->type_name = "component";
impl->geometry = impl->gui_manager.lock()->window_manager.get_geometry(impl->gui_manager.lock()->get_toplevel_window(this), true);
request_repaint();
}
开发者ID:animehunter,项目名称:clanlib-2.3,代码行数:11,代码来源:gui_component.cpp
示例17: request_repaint
void ViewWorkspace::show_view(unsigned int index)
{
current_page_index = index;
if (!pages.empty())
{
for (size_t i = 0; i < pages.size(); i++)
pages[i].view->set_visible(i == index);
pages[index].color = clan::Colorf::black;
}
request_repaint();
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:11,代码来源:view_workspace.cpp
示例18: load
void GridComponent::load(const std::string &fullname)
{
clan::DomDocument doc;
clan::File file = clan::File(fullname, clan::File::open_existing, clan::File::access_read);
doc.load(file);
clan::DomElement element_components = doc.get_document_element();
load(element_components, component_container);
request_repaint();
}
开发者ID:Cassie90,项目名称:ClanLib,代码行数:12,代码来源:grid_component.cpp
示例19: icon_rect
void Toolbar::on_mouse_move(CL_InputEvent &input_event)
{
int pos_x = start_x;
int pos_y = start_y;
for(unsigned int i = 0; i < items.size(); ++i)
{
CL_Rect icon_rect(pos_x, pos_y, pos_x + items[i].icon.get_width(), pos_y + items[i].icon.get_height());
if(icon_rect.contains(input_event.mouse_pos))
{
selected_index = i;
request_repaint();
return;
}
pos_x += offset_x;
}
clicked_index = -1;
selected_index = -1;
request_repaint();
}
开发者ID:PaulFSherwood,项目名称:cplusplus,代码行数:21,代码来源:toolbar.cpp
注:本文中的request_repaint函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论