Searched refs:gradient (Results 1 - 25 of 34) sorted by relevance

12

/inkscape/share/extensions/
H A Dink2canvas.py42 # get the gradient element
43 gradient = self.xpathSingle("//*[@id='%s']" % url_id)
45 url_stops = gradient.get(inkex.addNS("href", "xlink"))
50 if gradient.get("r"):
51 return svg.RadialGradientDef(gradient, colors)
53 return svg.LinearGradientDef(gradient, colors)
68 gradient = None
74 gradient = self.get_gradient_defs(elem)
75 elem.start(gradient)
H A Dsynfig_output.py283 elif param_type == "gradient":
284 el = etree.SubElement(param, "gradient")
519 """Register a linear gradient definition"""
520 gradient = {
528 gradient["stops"] = stops
529 gradient["stops_guid"] = self.new_guid()
531 gradient["link"] = link
534 self.gradients[gradient_id] = gradient
537 """Register a radial gradient definition"""
538 gradient
[all...]
/inkscape/src/
H A Dgradient-chemistry.h21 #include "sp-gradient.h"
28 * Either normalizes given gradient to vector, or returns fresh normalized
29 * vector - in latter case, original gradient is flattened and stops cleared.
33 SPGradient *sp_gradient_ensure_vector_normalized(SPGradient *gradient);
37 * Sets item fill or stroke to the gradient of the specified type with given vector, creating
38 * new private gradient, if needed.
44 * Get default normalized gradient vector of document, create if there is none
61 SPGradient *sp_gradient_get_forked_vector_if_necessary(SPGradient *gradient, bool force_vector);
64 SPStop* sp_last_stop(SPGradient *gradient);
65 SPStop* sp_get_stop_i(SPGradient *gradient, unsigne
[all...]
H A Dgradient-chemistry.cpp21 #include "widgets/gradient-vector.h"
40 #include "sp-gradient-reference.h"
41 #include "sp-gradient-vector.h"
42 #include "sp-linear-gradient.h"
43 #include "sp-radial-gradient.h"
46 #include "gradient-drag.h"
47 #include "gradient-chemistry.h"
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
101 g_warning("file %s: line %d: Cannot normalize private gradient t
314 sp_gradient_get_forked_vector_if_necessary(SPGradient *gradient, bool force_vector) argument
549 sp_gradient_transform_multiply(SPGradient *gradient, Geom::Affine postmul, bool set) argument
569 SPGradient *gradient = 0; local
594 sp_last_stop(SPGradient *gradient) argument
603 sp_get_stop_i(SPGradient *gradient, guint stop_i) argument
667 SPGradient *gradient = getGradient(item, fill_or_stroke); local
709 SPGradient *gradient = getGradient(item, fill_or_stroke); local
804 SPGradient *gradient = getGradient(item, fill_or_stroke); local
912 SPGradient *gradient = getGradient(item, fill_or_stroke); local
969 SPGradient *gradient = getGradient(item, fill_or_stroke); local
1012 SPGradient *gradient = getGradient(item, fill_or_stroke); local
1251 SPGradient *gradient = getGradient(item, fill_or_stroke); local
1262 SPGradient *gradient = getGradient(item, fill_or_stroke); local
1280 SPGradient *gradient = getGradient(item, fill_or_stroke); local
[all...]
H A Dsp-gradient.h24 #include "sp-gradient-spread.h"
25 #include "sp-gradient-units.h"
26 #include "sp-gradient-vector.h"
116 /** State in Inkscape gradient system */
153 * Returns private vector of given gradient (the gradient at the end of the href chain which has
156 * \pre SP_IS_GRADIENT(gradient).
157 * \pre There exists a gradient in the chain that has stops.
173 * Set spread property of gradient and emit modified.
182 static void gradientRefModified(SPObject *href, unsigned int flags, SPGradient *gradient);
[all...]
H A Dgradient-drag.cpp2 * On-canvas gradient dragging
44 #include "sp-linear-gradient.h"
45 #include "sp-radial-gradient.h"
49 #include "gradient-chemistry.h"
50 #include "gradient-drag.h"
77 // absolute distance between gradient points for them to become a single dragger when the drag is created:
80 // knot shapes corresponding to GrPointType enum (in sp-gradient.h)
97 N_("Linear gradient <b>start</b>"), //POINT_LG_BEGIN
98 N_("Linear gradient <b>end</b>"),
99 N_("Linear gradient <
361 SPGradient *gradient = 0; local
1116 SPGradient *gradient = getGradient(draggable->item, draggable->fill_or_stroke); local
1347 SPGradient *gradient = getGradient(draggable->item, draggable->fill_or_stroke); local
1372 SPGradient *gradient = getGradient(item, fill_or_stroke); local
1772 SPGradient *gradient = getGradient(d->item, d->fill_or_stroke); local
2457 SPGradient * gradient; member in struct:StructStopInfo
2467 SPGradient *gradient = getGradient(draggable->item, draggable->fill_or_stroke); local
[all...]
/inkscape/src/widgets/
H A Dgradient-image.cpp2 * A simple gradient preview
16 #include "gradient-image.h"
18 #include "sp-gradient.h"
68 image->gradient = NULL;
82 if (image->gradient) {
85 image->gradient = NULL;
145 SPGradient *gr = image->gradient;
165 sp_gradient_image_new (SPGradient *gradient) argument
169 sp_gradient_image_set_gradient (image, gradient);
202 sp_gradient_image_set_gradient (SPGradientImage *image, SPGradient *gradient) argument
[all...]
H A Dgradient-toolbar.cpp27 #include "gradient-chemistry.h"
28 #include "gradient-drag.h"
29 #include "gradient-toolbar.h"
35 #include "sp-linear-gradient.h"
36 #include "sp-radial-gradient.h"
41 #include "ui/tools/gradient-tool.h"
43 #include "widgets/gradient-image.h"
44 #include "widgets/gradient-vector.h"
55 static gboolean update_stop_list( GtkWidget *stop_combo, SPGradient *gradient, SPStop *new_stop, GtkWidget *widget, bool gr_multi);
56 static void sp_gradient_vector_widget_load_gradient(GtkWidget *widget, SPGradient *gradient);
183 SPGradient *gradient = SP_GRADIENT(*it); local
217 SPGradient *gradient = 0; local
261 SPGradient *gradient = sp_item_gradient_get_vector(draggable->item, draggable->fill_or_stroke); local
295 SPGradient *gradient = SP_GRADIENT(server)->getVector(); local
321 SPGradient *gradient = SP_GRADIENT(server)->getVector(); local
478 SPGradient *gradient=SP_GRADIENT(object); local
486 sp_gradient_vector_widget_load_gradient(GtkWidget *widget, SPGradient *gradient) argument
627 select_drag_by_stop( GtkWidget *data, SPGradient *gradient, ToolBase *ev) argument
643 select_stop_by_drag(GtkWidget *combo_box, SPGradient *gradient, ToolBase *ev, GtkWidget *data) argument
720 select_stop_in_list( GtkWidget *combo_box, SPGradient *gradient, SPStop *new_stop, GtkWidget *data, gboolean block) argument
737 update_stop_list( GtkWidget *stop_combo, SPGradient *gradient, SPStop *new_stop, GtkWidget *widget, bool gr_multi) argument
943 SPGradient *gradient = 0; local
[all...]
H A Dgradient-image.h5 * A simple gradient preview
30 SPGradient *gradient; member in struct:SPGradientImage
42 GtkWidget *sp_gradient_image_new (SPGradient *gradient);
H A Dgradient-vector.cpp27 #include "gradient-vector.h"
34 #include "../widgets/gradient-image.h"
37 #include "../gradient-chemistry.h"
48 #include "sp-linear-gradient.h"
49 #include "sp-radial-gradient.h"
301 std::set<SPObject *> gradients = gvs->gr->document->getResourceList("gradient");
325 row[gvs->columns->name] = _("No gradient selected");
380 * Return a SPItem's gradient
401 * Map each gradient to its usage count for both fill and stroke styles
433 /* Disconnect gradient */
507 SPGradient *gradient = static_cast<SPGradient *>(g_object_get_data(G_OBJECT(vb), "gradient")); local
523 verify_grad(SPGradient *gradient) argument
566 select_stop_in_list( GtkWidget *vb, SPGradient *gradient, SPStop *new_stop) argument
582 update_stop_list( GtkWidget *vb, SPGradient *gradient, SPStop *new_stop) argument
748 SPGradient *gradient = static_cast<SPGradient *>(g_object_get_data(G_OBJECT(vb), "gradient")); local
795 update_stop_list(GTK_WIDGET(vb), gradient, newstop); local
806 SPGradient *gradient = static_cast<SPGradient *>(g_object_get_data(G_OBJECT(vb), "gradient")); local
832 update_stop_list(GTK_WIDGET(vb), gradient, NULL); local
839 sp_gradient_vector_widget_new(SPGradient *gradient, SPStop *select_stop) argument
881 update_stop_list(GTK_WIDGET(vb), gradient, NULL); local
1001 select_stop_in_list(GTK_WIDGET(vb), gradient, select_stop); local
1009 sp_gradient_vector_editor_new(SPGradient *gradient, SPStop *stop) argument
1095 sp_gradient_vector_widget_load_gradient(GtkWidget *widget, SPGradient *gradient) argument
1142 g_object_set_data(G_OBJECT(widget), "gradient", gradient); local
1163 sp_gradient_image_set_gradient(SP_GRADIENT_IMAGE(w), gradient); local
1165 update_stop_list(GTK_WIDGET(widget), gradient, NULL); local
1243 SPObject *gradient = SP_OBJECT(g_object_get_data(G_OBJECT(object), "gradient")); local
1274 SPGradient *gradient=SP_GRADIENT(object); local
1284 SPGradient *gradient, *ngr; local
1329 SPGradient *gradient = static_cast<SPGradient*>(g_object_get_data(G_OBJECT(object), "gradient")); local
[all...]
H A Dmesh-toolbar.cpp33 #include "widgets/gradient-vector.h"
34 #include "widgets/gradient-image.h"
45 #include "ui/tools/gradient-tool.h"
47 #include "gradient-drag.h"
49 #include "gradient-chemistry.h"
50 #include "gradient-selector.h"
101 SPMesh *gradient = SP_MESH(server); // ->getVector(); local
102 SPMeshType type = gradient->type;
104 if (gradient != ms_selected) {
108 ms_selected = gradient;
126 SPMesh *gradient = SP_MESH(server); // ->getVector(); local
217 SPMesh *gradient = 0; local
307 SPMesh *gradient = 0; local
[all...]
H A Dswatch-selector.cpp6 #include "gradient-chemistry.h"
7 #include "gradient-selector.h"
65 SPGradient *gradient = _gsel->getVector(); local
66 SPGradient *ngr = sp_gradient_ensure_vector_normalized(gradient);
67 if (ngr != gradient) {
68 /* Our master gradient has changed */
H A Dgradient-vector.h24 #include "gradient-selector.h"
75 GtkWidget *sp_gradient_vector_selector_new (SPDocument *doc, SPGradient *gradient);
83 GtkWidget *sp_gradient_vector_editor_new (SPGradient *gradient, SPStop *stop = NULL);
H A Dpaint-selector.h24 #include "sp-gradient-spread.h"
25 #include "sp-gradient-units.h"
76 GtkWidget *gradient; member in struct:SPPaintSelector
H A Dpaint-selector.cpp34 #include "sp-linear-gradient.h"
35 #include "sp-radial-gradient.h"
39 #include "gradient-selector.h"
132 grad = reinterpret_cast<SPGradientSelector*>(g_object_get_data(G_OBJECT(psel->selector), "gradient-selector"));
222 psel->gradient = sp_paint_selector_style_button_add(psel, INKSCAPE_ICON("paint-gradient-linear"),
223 SPPaintSelector::MODE_GRADIENT_LINEAR, _("Linear gradient"));
224 psel->radial = sp_paint_selector_style_button_add(psel, INKSCAPE_ICON("paint-gradient-radial"),
225 SPPaintSelector::MODE_GRADIENT_RADIAL, _("Radial gradient"));
227 psel->mesh = sp_paint_selector_style_button_add(psel, INKSCAPE_ICON("paint-gradient
680 SPGradient *gradient = gsel->getVector(); local
[all...]
/inkscape/src/extension/internal/
H A Dgimpgrad.cpp65 \brief A function to turn a color into a gradient stop
67 \param location Where the stop is placed in the gradient
71 and the location into the gradient. It is really pretty simple except
97 \brief Actually open the gradient and turn it into an SPDocument
99 \param filename The filename of the gradient to be opened
100 \return A Document with the gradient in it.
126 linear gradient in it with all the stops of the colors in the GIMP
127 gradient that is passed in. This document is then turned into a
135 FILE *gradient = Inkscape::IO::fopen_utf8name(filename, "r"); local
136 if (gradient
[all...]
H A Djavafx-out.h21 #include <sp-gradient.h>
99 * Output gradient information to the buffer
H A Dodf.cpp67 #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)); local
1358 if (gradient)
1360 si.fill = "gradient";
1384 SPGradient *gradient = SP_GRADIENT(SP_STYLE_STROKE_SERVER(style)); local
1385 if (gradient)
1471 SPGradient *gradient = SP_GRADIENT((checkFillGradient?(SP_STYLE_FILL_SERVER(style)) :(SP_STYLE_STROKE_SERVER(style)))); local
[all...]
/inkscape/share/examples/
H A Distest.pov120 gradient y
/inkscape/src/extension/internal/pdfinput/
H A Dsvg-builder.cpp746 * \brief Creates a linear or radial gradient from poppler's data structure
748 * \param matrix gradient transformation, can be null
753 Inkscape::XML::Node *gradient; local
759 gradient = _xml_doc->createElement("svg:linearGradient");
763 sp_repr_set_svg_double(gradient, "x1", x1);
764 sp_repr_set_svg_double(gradient, "y1", y1);
765 sp_repr_set_svg_double(gradient, "x2", x2);
766 sp_repr_set_svg_double(gradient, "y2", y2);
772 gradient = _xml_doc->createElement("svg:radialGradient");
777 sp_repr_set_svg_double(gradient, "f
824 _addStopToGradient(Inkscape::XML::Node *gradient, double offset, GfxRGB *color, double opacity) argument
867 _addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading, Function *func) argument
[all...]
H A Dsvg-builder.h175 void _addStopToGradient(Inkscape::XML::Node *gradient, double offset,
177 bool _addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading,
/inkscape/src/2geom/
H A Dconicsec.h263 Point gradient(Point p) const;
425 Point dp0 = gradient (p0);
426 Point dp2 = gradient (p2);
432 * Return the angle related to the normal gradient computed at the passed
441 double angle = atan2 (gradient (_point));
/inkscape/share/extensions/ink2canvas/
H A Dsvg.py118 def start(self, gradient):
119 self.gradient = gradient
132 self.gradient.draw()
/inkscape/src/ui/tools/
H A Dtweak-tool.cpp63 #include "sp-gradient.h"
65 #include "sp-gradient-reference.h"
66 #include "sp-linear-gradient.h"
67 #include "sp-radial-gradient.h"
68 #include "gradient-chemistry.h"
765 SPGradient *gradient = getGradient(item, fill_or_stroke); local
767 if (!gradient || !dynamic_cast<SPGradient *>(gradient)) {
773 p *= (gradient->gradientTransform).inverse();
774 // now p is in gradient'
[all...]
/inkscape/src/ui/
H A Dclipboard.cpp56 #include "gradient-drag.h"
63 #include "sp-gradient.h"
64 #include "sp-gradient-reference.h"
65 #include "sp-linear-gradient.h"
66 #include "sp-radial-gradient.h"
205 // Special case for when the gradient dragger is active - copies gradient color
870 * Copy a single gradient to the clipboard's defs element.
872 void ClipboardManagerImpl::_copyGradient(SPGradient *gradient) argument
874 while (gradient) {
[all...]

Completed in 89 milliseconds

12