Lines Matching defs:lg
517 SPLinearGradient *lg = SP_LINEARGRADIENT(gr);
519 Geom::Point p1_b = Geom::Point(lg->x1.computed, lg->y1.computed);
520 Geom::Point p2_b = Geom::Point(lg->x2.computed, lg->y2.computed);
1028 SPLinearGradient *lg = SP_LINEARGRADIENT(gradient);
1032 lg->x2.computed += (lg->x1.computed - p[Geom::X]);
1033 lg->y2.computed += (lg->y1.computed - p[Geom::Y]);
1035 lg->x1.computed = p[Geom::X];
1036 lg->y1.computed = p[Geom::Y];
1039 sp_repr_set_svg_double(repr, "x2", lg->x2.computed);
1040 sp_repr_set_svg_double(repr, "y2", lg->y2.computed);
1042 sp_repr_set_svg_double(repr, "x1", lg->x1.computed);
1043 sp_repr_set_svg_double(repr, "y1", lg->y1.computed);
1050 lg->x1.computed += (lg->x2.computed - p[Geom::X]);
1051 lg->y1.computed += (lg->y2.computed - p[Geom::Y]);
1053 lg->x2.computed = p[Geom::X];
1054 lg->y2.computed = p[Geom::Y];
1057 sp_repr_set_svg_double(repr, "x1", lg->x1.computed);
1058 sp_repr_set_svg_double(repr, "y1", lg->y1.computed);
1060 sp_repr_set_svg_double(repr, "x2", lg->x2.computed);
1061 sp_repr_set_svg_double(repr, "y2", lg->y2.computed);
1069 Geom::Point begin(lg->x1.computed, lg->y1.computed);
1070 Geom::Point end(lg->x2.computed, lg->y2.computed);
1072 SPGradient *vector = sp_gradient_get_forked_vector_if_necessary (lg, false);
1073 lg->ensureVector();
1074 lg->vector.stops.at(point_i).offset = offset;
1288 SPLinearGradient *lg = SP_LINEARGRADIENT(gradient);
1291 p = Geom::Point (lg->x1.computed, lg->y1.computed);
1294 p = Geom::Point (lg->x2.computed, lg->y2.computed);
1298 if (lg->vector.stops.size() < point_i) {
1302 gdouble offset = lg->vector.stops.at(point_i).offset;
1303 p = (1-offset) * Geom::Point(lg->x1.computed, lg->y1.computed) + offset * Geom::Point(lg->x2.computed, lg->y2.computed);