本文整理汇总了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();
}
示例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();
}
示例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();
}
示例4: request_repaint
void CL_ListView::set_select_whole_row(bool value)
{
impl->cancel_edit();
impl->select_whole_row = value;
request_repaint();
}
示例5: request_repaint
void ProgressBar::step_position()
{
impl->position += impl->step_size;
impl->check_range();
request_repaint();
}
示例6: request_repaint
void CL_ScrollBar::set_vertical()
{
impl->vertical = true;
impl->create_parts();
if(impl->update_part_positions())
request_repaint();
}
示例7: request_repaint
void RadialMenu::clear_items()
{
selected_index = -1;
max_angle = CL_Angle::from_degrees(0);
items.clear();
request_repaint();
}
示例8: on_resized
void GridComponent::set_boundary_size(const clan::Size &size)
{
boundary.width = size.width;
boundary.height = size.height;
on_resized();
request_repaint();
}
示例9: request_repaint
void ScrollBar::set_horizontal()
{
impl->vertical = false;
impl->create_parts();
if(impl->update_part_positions())
request_repaint();
}
示例10: clear_selection
void CL_ListView::clear()
{
impl->cancel_edit();
clear_selection();
impl->document_item.remove_children();
request_repaint();
}
示例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();
}
}
示例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();
}
示例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();
}
}
示例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)));
}
示例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);
}