Lines Matching refs:lc
135 LpeTool *lc = SP_LPETOOL_CONTEXT(data);
137 lc->shape_editor->unset_item();
139 lc->shape_editor->set_item(item);
211 //bool over_stroke = lc->shape_editor->is_over_stroke(Geom::Point(event->button.x, event->button.y), true);
277 int lpetool_item_has_construction(LpeTool */*lc*/, SPItem *item)
295 lpetool_try_construction(LpeTool *lc, Inkscape::LivePathEffect::EffectType const type)
297 Inkscape::Selection *selection = lc->desktop->getSelection();
302 Inkscape::LivePathEffect::Effect::createAndApply(type, lc->desktop->getDocument(), item);
309 lpetool_context_switch_mode(LpeTool *lc, Inkscape::LivePathEffect::EffectType const type)
313 lc->mode = type;
314 lc->desktop->setToolboxSelectOneValue ("lpetool_mode_action", index);
341 lpetool_context_reset_limiting_bbox(LpeTool *lc)
343 if (lc->canvas_bbox) {
344 sp_canvas_item_destroy(lc->canvas_bbox);
345 lc->canvas_bbox = NULL;
352 SPDocument *document = lc->desktop->getDocument();
356 Geom::Affine doc2dt(lc->desktop->doc2dt());
363 lc->canvas_bbox = sp_canvas_bpath_new (lc->desktop->getControls(), curve);
364 sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(lc->canvas_bbox), 0x0000ffff, 0.8, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT, 5, 5);
385 lpetool_create_measuring_items(LpeTool *lc, Inkscape::Selection *selection)
388 selection = lc->desktop->getSelection();
396 SPCanvasGroup *tmpgrp = lc->desktop->getTempGroup();
405 canvas_text = (SPCanvasText *) sp_canvastext_new(tmpgrp, lc->desktop, Geom::Point(0,0), "");
422 (*lc->measuring_items)[path] = SP_CANVAS_ITEM(canvas_text);
428 lpetool_delete_measuring_items(LpeTool *lc)
431 for (i = lc->measuring_items->begin(); i != lc->measuring_items->end(); ++i) {
434 lc->measuring_items->clear();
438 lpetool_update_measuring_items(LpeTool *lc)
441 for ( std::map<SPPath *, SPCanvasItem*>::iterator i = lc->measuring_items->begin();
442 i != lc->measuring_items->end();
464 lpetool_show_measuring_info(LpeTool *lc, bool show)
467 for (i = lc->measuring_items->begin(); i != lc->measuring_items->end(); ++i) {