Lines Matching refs:gi

1477     GradientInfo gi;
1486 gi.stops.push_back(gs);
1492 gi.style = "linear";
1494 gi.x1 = linGrad->x1.value;
1495 gi.y1 = linGrad->y1.value;
1496 gi.x2 = linGrad->x2.value;
1497 gi.y2 = linGrad->y2.value;
1502 gi.style = "radial";
1505 gi.cx = (radGrad->cx.value-bbox->left())/bbox->width();
1506 gi.cy = (radGrad->cy.value-bbox->top())/bbox->height();
1520 if (gi.equals(*iter))
1537 gi.name = gradientName;
1538 gradientTable.push_back(gi);
1543 if (gi.style == "linear")
1556 if (gi.stops.size() < 2)
1561 output += Glib::ustring::compose("<draw:gradient draw:name=\"%1\"", gi.name);
1562 output += Glib::ustring::compose(" draw:display-name=\"%1\"", gi.name);
1564 snprintf(buf, 127, " draw:start-color=\"#%06lx\" draw:end-color=\"#%06lx\"", gi.stops[0].rgb, gi.stops[1].rgb);
1567 double angle = (gi.y2-gi.y1);
1568 angle = (angle != 0.) ? (atan((gi.x2-gi.x1)/(gi.y2-gi.y1))* 180. / pi) : 90;
1572 gi.stops[0].opacity * 100.0, gi.stops[1].opacity * 100.0, angle);// draw:border=\"0%%\"
1574 else if (gi.style == "radial")
1588 if (gi.stops.size() < 2)
1593 output += Glib::ustring::compose("<draw:gradient draw:name=\"%1\" draw:display-name=\"%1\" ", gi.name);
1594 snprintf(buf, 127, "draw:cx=\"%05.3f\" draw:cy=\"%05.3f\" ", gi.cx*100, gi.cy*100);
1596 snprintf(buf, 127, "draw:start-color=\"#%06lx\" draw:end-color=\"#%06lx\" ", gi.stops[0].rgb, gi.stops[1].rgb);
1598 snprintf(buf, 127, "draw:start-intensity=\"%f%%\" draw:end-intensity=\"%f%%\" ", gi.stops[0].opacity*100.0, gi.stops[1].opacity*100.0);
1604 g_warning("unsupported gradient style '%s'", gi.style.c_str());