Lines Matching defs:lg
416 SPLinearGradient *lg = NULL;
420 lg = SP_LINEARGRADIENT(paintserver);
421 SP_GRADIENT(lg)->ensureVector(); // when exporting from commandline, vector is not built
437 } else if (lg) {
439 return hold_gradient(lg, fill_mode);
441 hatchColor = avg_stop_color(lg);
619 SPLinearGradient *lg = SP_LINEARGRADIENT(paintserver);
621 SP_GRADIENT(lg)->ensureVector(); // when exporting from commandline, vector is not built
623 Geom::Point p1(lg->x1.computed, lg->y1.computed);
624 Geom::Point p2(lg->x2.computed, lg->y2.computed);
626 if (lg->gradientTransform_set) {
627 p1 = p1 * lg->gradientTransform;
628 p2 = p2 * lg->gradientTransform;
630 hatchColor = avg_stop_color(lg);