Lines Matching defs:fill_or_stroke

165                 guint32 c = sp_item_gradient_stop_query_style (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
314 sp_item_gradient_stop_set_style(draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke, stop);
337 guint32 c = sp_item_gradient_stop_query_style (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
373 Inkscape::PaintTarget fill_or_stroke = *it;
374 gradient = getGradient(item, fill_or_stroke);
376 Geom::Point begin = getGradientCoords(item, POINT_LG_BEGIN, 0, fill_or_stroke);
377 Geom::Point end = getGradientCoords(item, POINT_LG_END, 0, fill_or_stroke);
389 Geom::Point begin = getGradientCoords(item, POINT_RG_CENTER, 0, fill_or_stroke);
390 Geom::Point end = getGradientCoords(item, POINT_RG_R1, 0, fill_or_stroke);
402 end = getGradientCoords(item, POINT_RG_R2, 0, fill_or_stroke);
591 sp_item_gradient_stop_set_style (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke, stop);
681 desktop->gr_fill_or_stroke = draggable->fill_or_stroke;
702 GrDraggable::GrDraggable(SPItem *item, GrPointType point_type, guint point_i, Inkscape::PaintTarget fill_or_stroke) :
706 fill_or_stroke(fill_or_stroke)
723 switch (fill_or_stroke) {
778 GrDraggable *da_new = new GrDraggable (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
831 draggable->fill_or_stroke)) {
850 draggable->fill_or_stroke)) {
933 d_add = drag->getDraggerFor(draggable->item, draggable->point_type, lowest_i - 1, draggable->fill_or_stroke);
945 d_add = drag->getDraggerFor(draggable->item, draggable->point_type, highest_i + 1, draggable->fill_or_stroke);
960 d_temp = drag->getDraggerFor (draggable->item, POINT_LG_BEGIN, 0, draggable->fill_or_stroke);
962 d_temp = drag->getDraggerFor (draggable->item, POINT_LG_MID, lowest_i - 1, draggable->fill_or_stroke);
967 d_temp = drag->getDraggerFor (draggable->item, POINT_LG_MID, highest_i + 1, draggable->fill_or_stroke);
969 d_temp = drag->getDraggerFor (draggable->item, POINT_LG_END, num-1, draggable->fill_or_stroke);
977 d_temp = drag->getDraggerFor (draggable->item, POINT_RG_CENTER, 0, draggable->fill_or_stroke);
979 d_temp = drag->getDraggerFor (draggable->item, draggable->point_type, lowest_i - 1, draggable->fill_or_stroke);
984 d_temp = drag->getDraggerFor (draggable->item, draggable->point_type, highest_i + 1, draggable->fill_or_stroke);
986 d_temp = drag->getDraggerFor (draggable->item, (draggable->point_type==POINT_RG_MID1) ? POINT_RG_R1 : POINT_RG_R2, num-1, draggable->fill_or_stroke);
1116 SPGradient *gradient = getGradient(draggable->item, draggable->fill_or_stroke);
1191 //sp_item_gradient_edit_stop (draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
1208 !(draggable->point_type == POINT_RG_FOCUS && this->isA(draggable->item, POINT_RG_CENTER, draggable->point_i, draggable->fill_or_stroke)))
1210 sp_item_gradient_set_coords (draggable->item, draggable->point_type, draggable->point_i, this->point, draggable->fill_or_stroke, write_repr, scale_radial);
1230 * Checks if the dragger has a draggable with this item, point_type + point_i (number), fill_or_stroke.
1232 bool GrDragger::isA(SPItem *item, GrPointType point_type, gint point_i, Inkscape::PaintTarget fill_or_stroke)
1236 if ( (draggable->point_type == point_type) && (draggable->point_i == point_i) && (draggable->item == item) && (draggable->fill_or_stroke == fill_or_stroke) ) {
1244 * Checks if the dragger has a draggable with this item, point_type, fill_or_stroke.
1246 bool GrDragger::isA(SPItem *item, GrPointType point_type, Inkscape::PaintTarget fill_or_stroke)
1250 if ( (draggable->point_type == point_type) && (draggable->item == item) && (draggable->fill_or_stroke == fill_or_stroke) ) {
1259 if ((this->item == da2->item) && (this->fill_or_stroke == da2->fill_or_stroke)) {
1347 SPGradient *gradient = getGradient(draggable->item, draggable->fill_or_stroke);
1366 fill_or_stroke = draggable->fill_or_stroke;
1372 SPGradient *gradient = getGradient(item, fill_or_stroke);
1377 gradient = sp_gradient_convert_to_userspace (gradient, item, (fill_or_stroke == Inkscape::FOR_FILL) ? "fill" : "stroke");
1386 GrDragger *handle = drag->getDraggerFor( item, POINT_MG_HANDLE, i, fill_or_stroke );
1388 Geom::Point pk = getGradientCoords( item, POINT_MG_HANDLE, i, fill_or_stroke );
1395 GrDragger *handle = drag->getDraggerFor( item, POINT_MG_TENSOR, i, fill_or_stroke );
1397 Geom::Point pk = getGradientCoords( item, POINT_MG_TENSOR, i, fill_or_stroke );
1427 (draggable->fill_or_stroke == Inkscape::FOR_STROKE) ? _(" (stroke)") : "");
1434 (draggable->fill_or_stroke == Inkscape::FOR_STROKE) ? _(" (stroke)") : "");
1474 void GrDragger::moveThisToDraggable(SPItem *item, GrPointType point_type, gint point_i, Inkscape::PaintTarget fill_or_stroke, bool write_repr)
1481 this->point = getGradientCoords(dr_first->item, dr_first->point_type, dr_first->point_i, dr_first->fill_or_stroke);
1491 (da->fill_or_stroke == fill_or_stroke) ) {
1495 sp_item_gradient_set_coords(da->item, da->point_type, da->point_i, this->point, da->fill_or_stroke, write_repr, false);
1514 this->moveOtherToDraggable (draggable->item, POINT_LG_MID, i, draggable->fill_or_stroke, write_repr);
1518 this->moveOtherToDraggable (draggable->item, POINT_RG_MID1, i, draggable->fill_or_stroke, write_repr);
1519 this->moveOtherToDraggable (draggable->item, POINT_RG_MID2, i, draggable->fill_or_stroke, write_repr);
1536 this->moveOtherToDraggable (draggable->item, POINT_LG_END, -1, draggable->fill_or_stroke, write_repr);
1544 this->moveOtherToDraggable (draggable->item, POINT_LG_BEGIN, 0, draggable->fill_or_stroke, write_repr);
1553 this->moveOtherToDraggable (draggable->item, POINT_RG_R1, -1, draggable->fill_or_stroke, write_repr);
1554 this->moveOtherToDraggable (draggable->item, POINT_RG_FOCUS, -1, draggable->fill_or_stroke, write_repr);
1558 this->moveOtherToDraggable (draggable->item, POINT_RG_R2, -1, draggable->fill_or_stroke, write_repr);
1559 this->moveOtherToDraggable (draggable->item, POINT_RG_FOCUS, -1, draggable->fill_or_stroke, write_repr);
1563 this->moveOtherToDraggable (draggable->item, POINT_RG_R1, -1, draggable->fill_or_stroke, write_repr);
1564 this->moveOtherToDraggable (draggable->item, POINT_RG_R2, -1, draggable->fill_or_stroke, write_repr);
1565 this->moveOtherToDraggable (draggable->item, POINT_RG_FOCUS, -1, draggable->fill_or_stroke, write_repr);
1572 this->moveOtherToDraggable (draggable->item, POINT_RG_MID2, draggable->point_i, draggable->fill_or_stroke, write_repr);
1575 this->moveOtherToDraggable (draggable->item, POINT_RG_MID1, draggable->point_i, draggable->fill_or_stroke, write_repr);
1657 GrDragger *GrDrag::getDraggerFor(SPItem *item, GrPointType point_type, gint point_i, Inkscape::PaintTarget fill_or_stroke)
1666 (da2->fill_or_stroke == fill_or_stroke)) {
1675 void GrDragger::moveOtherToDraggable(SPItem *item, GrPointType point_type, gint point_i, Inkscape::PaintTarget fill_or_stroke, bool write_repr)
1677 GrDragger *d = this->parent->getDraggerFor(item, point_type, point_i, fill_or_stroke);
1679 d->moveThisToDraggable(item, point_type, point_i, fill_or_stroke, write_repr);
1772 SPGradient *gradient = getGradient(d->item, d->fill_or_stroke);
1859 void GrDrag::addLine(SPItem *item, Geom::Point p1, Geom::Point p2, Inkscape::PaintTarget fill_or_stroke)
1861 CtrlLineType type = (fill_or_stroke == Inkscape::FOR_FILL) ? CTLINE_PRIMARY : CTLINE_SECONDARY;
1875 void GrDrag::addCurve(SPItem *item, Geom::Point p0, Geom::Point p1, Geom::Point p2, Geom::Point p3, Inkscape::PaintTarget fill_or_stroke)
1877 CtrlLineType type = (fill_or_stroke == Inkscape::FOR_FILL) ? CTLINE_PRIMARY : CTLINE_SECONDARY;
1893 Geom::Point p = getGradientCoords(draggable->item, draggable->point_type, draggable->point_i, draggable->fill_or_stroke);
1913 void GrDrag::addDraggersRadial(SPRadialGradient *rg, SPItem *item, Inkscape::PaintTarget fill_or_stroke)
1916 addDragger (new GrDraggable (item, POINT_RG_CENTER, 0, fill_or_stroke));
1920 addDragger (new GrDraggable (item, POINT_RG_MID1, i, fill_or_stroke));
1923 addDragger (new GrDraggable (item, POINT_RG_R1, num-1, fill_or_stroke));
1926 addDragger (new GrDraggable (item, POINT_RG_MID2, i, fill_or_stroke));
1929 addDragger (new GrDraggable (item, POINT_RG_R2, num - 1, fill_or_stroke));
1930 addDragger (new GrDraggable (item, POINT_RG_FOCUS, 0, fill_or_stroke));
1936 void GrDrag::addDraggersLinear(SPLinearGradient *lg, SPItem *item, Inkscape::PaintTarget fill_or_stroke)
1939 addDragger(new GrDraggable (item, POINT_LG_BEGIN, 0, fill_or_stroke));
1943 addDragger(new GrDraggable (item, POINT_LG_MID, i, fill_or_stroke));
1946 addDragger(new GrDraggable (item, POINT_LG_END, num - 1, fill_or_stroke));
1952 void GrDrag::addDraggersMesh(SPMesh *mg, SPItem *item, Inkscape::PaintTarget fill_or_stroke)
1963 if( (fill_or_stroke == Inkscape::FOR_FILL && !edit_fill) ||
1964 (fill_or_stroke == Inkscape::FOR_STROKE && !edit_stroke) ) {
1994 GrDraggable *corner = new GrDraggable (item, POINT_MG_CORNER, icorner, fill_or_stroke);
2005 GrDraggable *handle = new GrDraggable (item, POINT_MG_HANDLE, ihandle, fill_or_stroke);
2017 GrDraggable *tensor = new GrDraggable (item, POINT_MG_TENSOR, itensor, fill_or_stroke);
2051 void GrDrag::grabKnot(SPItem *item, GrPointType point_type, gint point_i, Inkscape::PaintTarget fill_or_stroke, gint x, gint y, guint32 etime)
2053 GrDragger *dragger = getDraggerFor(item, point_type, point_i, fill_or_stroke);
2307 sp_item_gradient_reverse_vector ((*it)->item, (*it)->fill_or_stroke);
2340 (d->draggables[0])->fill_or_stroke)) {
2467 SPGradient *gradient = getGradient(draggable->item, draggable->fill_or_stroke);
2661 if (stopinfo->draggable->fill_or_stroke == Inkscape::FOR_FILL) {
2668 if (stopinfo->draggable->fill_or_stroke == Inkscape::FOR_FILL) {