本文整理汇总了C++中SPDesktop::updateNow方法的典型用法代码示例。如果您正苦于以下问题:C++ SPDesktop::updateNow方法的具体用法?C++ SPDesktop::updateNow怎么用?C++ SPDesktop::updateNow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SPDesktop
的用法示例。
在下文中一共展示了SPDesktop::updateNow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: sp_selection_move_screen
//.........这里部分代码省略.........
item = sp_event_context_find_item (desktop,
Geom::Point(event->button.x, event->button.y), sc->button_press_alt, sc->button_press_ctrl);
sc->button_press_ctrl = FALSE;
sc->button_press_alt = FALSE;
if (item) {
if (selection->includes(item)) {
seltrans->increaseState();
} else {
seltrans->resetState();
selection->set(item);
}
item = NULL;
}
} else { // click without shift, simply deselect, unless with Alt or something was cancelled
if (!selection->isEmpty()) {
if (!(rb_escaped) && !(drag_escaped) && !(event->button.state & GDK_MOD1_MASK))
selection->clear();
rb_escaped = 0;
ret = TRUE;
}
}
}
ret = TRUE;
}
if (sc->grabbed) {
sp_canvas_item_ungrab(sc->grabbed, event->button.time);
sc->grabbed = NULL;
}
desktop->updateNow();
}
if (event->button.button == 1) {
Inkscape::Rubberband::get(desktop)->stop(); // might have been started in another tool!
}
sc->button_press_shift = false;
sc->button_press_ctrl = false;
sc->button_press_alt = false;
break;
case GDK_KEY_PRESS: // keybindings for select context
{
{
guint keyval = get_group0_keyval(&event->key);
bool alt = ( MOD__ALT
|| (keyval == GDK_Alt_L)
|| (keyval == GDK_Alt_R)
|| (keyval == GDK_Meta_L)
|| (keyval == GDK_Meta_R));
if (!key_is_a_modifier (keyval)) {
event_context->defaultMessageContext()->clear();
} else if (sc->grabbed || seltrans->isGrabbed()) {
if (Inkscape::Rubberband::get(desktop)->is_started()) {
// if Alt then change cursor to moving cursor:
if (alt) {
Inkscape::Rubberband::get(desktop)->setMode(RUBBERBAND_MODE_TOUCHPATH);
}
} else {
// do not change the statusbar text when mousekey is down to move or transform the object,
// because the statusbar text is already updated somewhere else.
break;