/inkscape/src/ |
H A D | sp-gradient-vector.h | 22 * The effective gradient vector, after copying stops from the referenced gradient if necessary. 26 std::vector<SPGradientStop> stops; member in struct:SPGradientVector
|
H A D | sp-gradient.cpp | 119 // drop down to check stops. 261 this->vector.stops.clear(); 750 * True if gradient has stops. 820 /* Collect stops from original repr */ 827 /* Remove all stops */ 839 * Writes the gradient's internal vector (whether from its own stops, or 854 for (guint i = 0; i < gr->vector.stops.size(); i++) { 857 sp_repr_set_css_double(child, "offset", gr->vector.stops[i].offset); 860 os << "stop-color:" << gr->vector.stops[i].color.toString() << ";stop-opacity:" << gr->vector.stops[ [all...] |
H A D | gradient-chemistry.cpp | 80 // "vector" is a gradient that has stops but not position coords. It can be referenced by one or 83 // "private" is a gradient that has no stops but has position coords (e.g. center, radius etc for a 105 /* First make sure we have vector directly defined (i.e. gr has its own stops) */ 107 /* We do not have stops ourselves, so flatten stops as well */ 110 // this adds stops from gr->vector as children to gr 222 // Orphaned gradient, no vector with stops at the end of the line; this used to be an assert 1074 lg->vector.stops.at(point_i).offset = offset; 1169 rg->vector.stops.at(point_i).offset = offset; 1186 rg->vector.stops [all...] |
H A D | gradient-drag.cpp | 248 // acceptable for gradient stops 275 // Make sure the style is allowed for gradient stops. 957 guint num = SP_LINEARGRADIENT(server)->vector.stops.size(); 974 guint num = SP_RADIALGRADIENT(server)->vector.stops.size(); 1118 if (gradient->vector.stops.size() > 2) { // 2 is the minimum 1509 guint num = SP_GRADIENT(server)->vector.stops.size(); 1717 * Deselect all stops/draggers (private). 1727 * Deselect all stops/draggers (public; emits signal). 1736 * Select all stops/draggers. 1747 * Select all stops/dragger [all...] |
/inkscape/src/extension/internal/ |
H A D | odf.h | 183 stops = other.stops; 199 stops.clear(); 222 if (stops.size() != other.stops.size()) 224 for (unsigned int i=0 ; i<stops.size() ; i++) 226 GradientStop g1 = stops[i]; 227 GradientStop g2 = other.stops[i]; 247 std::vector<GradientStop> stops; member in class:Inkscape::Extension::Internal::GradientInfo
|
H A D | javafx-out.cpp | 313 std::vector<SPGradientStop> stops = g->vector.stops; local 314 if (!stops.empty()) 316 out(" stops:\n"); 318 for (unsigned int i = 0 ; i<stops.size() ; i++) 320 SPGradientStop stop = stops[i]; 343 std::vector<SPGradientStop> stops = g->vector.stops; local 344 if (!stops.empty()) 346 out(" stops [all...] |
H A D | wmf-print.cpp | 405 // currently we do not do anything with gradients, the code below just sets the color to the average of the stops 662 Can handle gradients with multiple stops. 680 nstops = tg->vector.stops.size(); 681 sp_color_get_rgb_floatv(&tg->vector.stops[0].color, rgb); 682 opa = tg->vector.stops[0].opacity; 684 sp_color_get_rgb_floatv(&tg->vector.stops[nstops - 1].color, rgb); 685 opa = tg->vector.stops[nstops - 1].opacity; 690 doff_range = tg->vector.stops[1].offset; // next or last stop 714 sp_color_get_rgb_floatv(&tg->vector.stops[istop].color, rgb); 715 opa = tg->vector.stops[isto [all...] |
H A D | metafile-print.cpp | 167 int last = gr->vector.stops.size() - 1; 173 ops = gr->vector.stops[0 ].opacity; 174 ope = gr->vector.stops[last].opacity; 175 sp_color_get_rgb_floatv(&gr->vector.stops[0 ].color, rgbs); 176 sp_color_get_rgb_floatv(&gr->vector.stops[last].color, rgbe);
|
H A D | emf-print.cpp | 414 // currently we do not do anything with gradients, the code below just sets the color to the average of the stops 1154 Can handle gradients with multiple stops. 1172 nstops = tg->vector.stops.size(); 1173 sp_color_get_rgb_floatv(&tg->vector.stops[0].color, rgb); 1174 opa = tg->vector.stops[0].opacity; // first stop 1176 sp_color_get_rgb_floatv(&tg->vector.stops[nstops - 1].color, rgb); 1177 opa = tg->vector.stops[nstops - 1].opacity; // last stop 1182 doff_range = tg->vector.stops[1].offset; // next or last stop 1206 sp_color_get_rgb_floatv(&tg->vector.stops[istop].color, rgb); 1207 opa = tg->vector.stops[isto [all...] |
H A D | odf.cpp | 1486 gi.stops.push_back(gs); 1556 if (gi.stops.size() < 2) 1558 g_warning("Need at least 2 stops for a linear gradient"); 1564 snprintf(buf, 127, " draw:start-color=\"#%06lx\" draw:end-color=\"#%06lx\"", gi.stops[0].rgb, gi.stops[1].rgb); 1572 gi.stops[0].opacity * 100.0, gi.stops[1].opacity * 100.0, angle);// draw:border=\"0%%\" 1588 if (gi.stops.size() < 2) 1590 g_warning("Need at least 2 stops for a radial gradient"); 1596 snprintf(buf, 127, "draw:start-color=\"#%06lx\" draw:end-color=\"#%06lx\" ", gi.stops[ [all...] |
H A D | cairo-render-context.cpp | 1233 // add stops 1234 for (gint i = 0; unsigned(i) < lg->vector.stops.size(); i++) { 1236 sp_color_get_rgb_floatv(&lg->vector.stops[i].color, rgb); 1237 cairo_pattern_add_color_stop_rgba(pattern, lg->vector.stops[i].offset, rgb[0], rgb[1], rgb[2], lg->vector.stops[i].opacity * alpha); 1255 // add stops 1256 for (gint i = 0; unsigned(i) < rg->vector.stops.size(); i++) { 1258 sp_color_get_rgb_floatv(&rg->vector.stops[i].color, rgb); 1259 cairo_pattern_add_color_stop_rgba(pattern, rg->vector.stops[i].offset, rgb[0], rgb[1], rgb[2], rg->vector.stops[ [all...] |
/inkscape/src/livarot/ |
H A D | LivarotDefs.h | 118 grad_stop stops[2]; member in struct:lin_grad 131 grad_stop stops[2]; member in struct:rad_grad
|
/inkscape/share/extensions/ |
H A D | synfig_output.py | 285 # Value is a dictionary of color stops 518 def add_linear_gradient(self, gradient_id, p1, p2, mtx=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]], stops=[], link="", spread_method="pad"): 527 if stops != []: 528 gradient["stops"] = stops 533 raise MalformedSVGError, "Gradient has neither stops nor link" 536 def add_radial_gradient(self, gradient_id, center, radius, focus, mtx=[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0]], stops=[], link="", spread_method="pad"): 546 if stops != []: 547 gradient["stops"] = stops [all...] |
/inkscape/share/extensions/ink2canvas/ |
H A D | svg.py | 36 def __init__(self, node, stops): 38 self.stops = stops
|
/inkscape/src/widgets/ |
H A D | gradient-vector.cpp | 511 //FIXME!!! We must also listen to attr changes on all children (i.e. stops) too, 527 /* count stops */ 614 gtk_list_store_set (store, &iter, 0, NULL, 1, _("No stops in gradient"), 2, NULL, -1); 813 if (gradient->vector.stops.size() > 2) { // 2 is the minimum 863 /* ComboBox of stops with 3 columns, 1167 // Once the user edits a gradient, it stops being auto-collectable 1345 /* We rely on normalized vector, i.e. stops HAVE to exist */
|