Lines Matching refs:gradient

67 #include "sp-gradient.h"
69 #include "gradient-chemistry.h"
70 #include "sp-linear-gradient.h"
71 #include "sp-radial-gradient.h"
1026 * Method descends into the repr tree, converting image, style, and gradient info
1357 SPGradient *gradient = SP_GRADIENT(SP_STYLE_FILL_SERVER(style));
1358 if (gradient)
1360 si.fill = "gradient";
1384 SPGradient *gradient = SP_GRADIENT(SP_STYLE_STROKE_SERVER(style));
1385 if (gradient)
1387 si.stroke = "gradient";
1419 if (si.fill == "gradient")
1421 output += Glib::ustring::compose (" draw:fill=\"gradient\" draw:fill-gradient-name=\"%1\"", gradientNameFill);
1431 if (si.stroke == "gradient")
1434 output += Glib::ustring::compose (" draw:stroke=\"gradient\" draw:stroke-gradient-name=\"%1\"", gradientNameStroke);
1471 SPGradient *gradient = SP_GRADIENT((checkFillGradient?(SP_STYLE_FILL_SERVER(style)) :(SP_STYLE_STROKE_SERVER(style))));
1473 if (gradient == NULL)
1478 SPGradient *grvec = gradient->getVector(FALSE);
1490 if (SP_IS_LINEARGRADIENT(gradient))
1493 SPLinearGradient *linGrad = SP_LINEARGRADIENT(gradient);
1500 else if (SP_IS_RADIALGRADIENT(gradient))
1503 SPRadialGradient *radGrad = SP_RADIALGRADIENT(gradient);
1511 g_warning("not a supported gradient type");
1547 LINEAR gradient. We need something that looks like this:
1548 <draw:gradient draw:name="Gradient_20_7"
1558 g_warning("Need at least 2 stops for a linear gradient");
1561 output += Glib::ustring::compose("<draw:gradient draw:name=\"%1\"", gi.name);
1566 //TODO: apply maths, to define begin of gradient, taking gradient begin and end, as well as object boundary into account
1578 RADIAL gradient. We need something that looks like this:
1579 <!-- radial gradient, light gray to white, centered, 0% border -->
1580 <draw:gradient draw:name="radial_20_borderless"
1590 g_warning("Need at least 2 stops for a radial gradient");
1593 output += Glib::ustring::compose("<draw:gradient draw:name=\"%1\" draw:display-name=\"%1\" ", gi.name);
1604 g_warning("unsupported gradient style '%s'", gi.style.c_str());