Lines Matching defs:stop
45 #include "sp-stop.h"
596 for (SPStop *stop = gradient->getFirstStop(); stop != NULL; stop = stop->getNextStop()) {
597 if (stop->getNextStop() == NULL)
598 return stop;
605 SPStop *stop = gradient->getFirstStop();
606 if (!stop) {
610 // if this is valid but weird gradient without an offset-zero stop element,
612 // so when it asks for stop N that corresponds to stop element N-1
613 if (stop->offset != 0)
619 if (!stop) {
622 stop = stop->getNextStop();
625 return stop;
658 os << "stop-color:" << c << ";stop-opacity:" << opacity <<";";
799 void sp_item_gradient_stop_set_style(SPItem *item, GrPointType point_type, guint point_i, Inkscape::PaintTarget fill_or_stroke, SPCSSAttr *stop)
802 g_message("sp_item_gradient_stop_set_style(%p, %d, %d, %d, %p)", item, point_type, point_i, fill_or_stroke, stop);
828 sp_repr_css_change(first->getRepr(), stop, "style");
839 sp_repr_css_change(last->getRepr(), stop, "style");
850 sp_repr_css_change(stopi->getRepr(), stop, "style");
868 gchar const* color_str = sp_repr_css_property( stop, "stop-color", NULL );
879 gchar const* opacity_str = sp_repr_css_property( stop, "stop-opacity", NULL );
996 sp_repr_css_set_property (css, "stop-color", c);
1491 Inkscape::XML::Node *stop = parent->document()->createElement("svg:stop");
1493 gchar *tmp = g_strdup_printf( "stop-color:%s;stop-opacity:%d;", color.c_str(), opacity );
1494 stop->setAttribute( "style", tmp );
1498 stop->setAttribute( "offset", offset );
1500 parent->appendChild(stop);
1501 Inkscape::GC::release(stop);