Lines Matching defs:positions
441 * Raises the item in its parent's stack by the specified number of positions.
444 * @param positions Number of steps to raise the item.
446 * If the number of positions is greater than the distance to the top of the
449 void sp_canvas_item_raise(SPCanvasItem *item, int positions)
453 g_return_if_fail (positions >= 0);
455 if (!item->parent || positions == 0) {
463 for (int i=0; i<=positions && l != parent->items.end(); ++i)
489 * Lowers the item in its parent's stack by the specified number of positions.
492 * @param positions Number of steps to lower the item.
494 * If the number of positions is greater than the distance to the bottom of the
497 void sp_canvas_item_lower(SPCanvasItem *item, int positions)
501 g_return_if_fail (positions >= 1);
505 if (!parent || positions == 0 || item == parent->items.front() ) {
512 for (int i=0; i<positions && l != parent->items.begin(); ++i)