/inkscape/src/widgets/ |
H A D | gradient-image.h | 5 * A simple gradient preview 30 SPGradient *gradient; member in struct:SPGradientImage 42 GtkWidget *sp_gradient_image_new (SPGradient *gradient);
|
H A D | swatch-selector.cpp | 6 #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 D | gradient-image.cpp | 2 * 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 D | mesh-toolbar.cpp | 33 #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 D | paint-selector.h | 24 #include "sp-gradient-spread.h" 25 #include "sp-gradient-units.h" 76 GtkWidget *gradient; member in struct:SPPaintSelector
|
H A D | gradient-toolbar.cpp | 27 #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 D | gradient-vector.cpp | 27 #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 D | paint-selector.cpp | 34 #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 D | gimpgrad.cpp | 65 \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 D | odf.cpp | 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)); 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/src/ui/tools/ |
H A D | mesh-tool.cpp | 44 #include "gradient-drag.h" 45 #include "gradient-chemistry.h" 46 #include "pixmaps/cursor-gradient.xpm" 47 #include "pixmaps/cursor-gradient-add.xpm" 68 // TODO: The gradient tool class looks like a 1:1 copy. 93 N_("Mesh gradient <b>corner</b>"), 94 N_("Mesh gradient <b>handle</b>"), 95 N_("Mesh gradient <b>tensor</b>") 141 //TRANSLATORS: Mind the space in front. (Refers to gradient handles selected). This is part of a compound message 152 // We need to update mesh gradient handle 345 SPMesh *gradient = SP_MESH( getGradient (d->item, d->fill_or_stroke) ); local [all...] |
H A D | gradient-tool.cpp | 29 #include "pixmaps/cursor-gradient.xpm" 30 #include "pixmaps/cursor-gradient-add.xpm" 31 #include "ui/tools/gradient-tool.h" 32 #include "gradient-chemistry.h" 35 #include "gradient-drag.h" 36 #include "gradient-chemistry.h" 40 #include "sp-linear-gradient.h" 41 #include "sp-radial-gradient.h" 64 const std::string GradientTool::prefsPath = "/tools/gradient"; 90 N_("Linear gradient < 237 SPGradient *gradient = getGradient(d->item, d->fill_or_stroke); local 328 SPGradient *gradient = getGradient(d->item, d->fill_or_stroke); local [all...] |
H A D | tweak-tool.cpp | 63 #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/ |
H A D | sp-gradient.cpp | 42 #include "sp-gradient.h" 43 #include "gradient-chemistry.h" 44 #include "sp-gradient-reference.h" 45 #include "sp-linear-gradient.h" 46 #include "sp-radial-gradient.h" 94 gchar const* paintVal = swatch ? (isSolid() ? "solid" : "gradient") : 0; 103 * return true if this gradient is "equivalent" to that gradient. 105 * @param that - A gradient to compare this to 127 else { break; } // this should never happen, some unhandled type of gradient 878 gradientRefModified(SPObject * , guint , SPGradient *gradient) argument [all...] |
H A D | gradient-chemistry.cpp | 21 #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 D | gradient-drag.cpp | 2 * 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...] |
H A D | sp-item.cpp | 44 #include "gradient-chemistry.h" 1250 * \note Bbox units for a gradient are generally a bad idea because 1252 * object and its gradient after rotation or skew. So now we 1258 SPGradient *gradient = sp_gradient_convert_to_userspace( serverGrad, this, "fill" ); local 1260 sp_gradient_transform_multiply( gradient, postmul, set ); 1268 SPGradient *gradient = sp_gradient_convert_to_userspace( serverGrad, this, "stroke"); local 1269 sp_gradient_transform_multiply( gradient, postmul, set ); 1366 // _Before_ full pattern/gradient transform: t_paint * t_item * t_ancestors 1367 // _After_ full pattern/gradient transform: t_paint_new * t_item * t_ancestors * advertised_transform 1467 /// recursively compensate gradient fil [all...] |
/inkscape/src/ui/ |
H A D | clipboard.cpp | 56 #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...] |
/inkscape/src/ui/dialog/ |
H A D | color-item.cpp | 37 #include "sp-gradient.h" 43 #include "widgets/gradient-vector.h" 226 cairo_pattern_t *gradient = sp_gradient_create_preview_pattern(item->getGradient(), width); local 228 cairo_set_source(ct, gradient); 231 cairo_pattern_destroy(gradient);
|
H A D | swatches.cpp | 45 #include "sp-gradient.h" 46 #include "sp-gradient-vector.h" 50 #include "widgets/gradient-vector.h" 53 #include "sp-gradient-reference.h" 57 #include "gradient-chemistry.h" 149 // Legacy gradient dialog 153 // Invoke the gradient tool 174 std::set<SPObject *> gradients = doc->getResourceList("gradient"); 195 std::set<SPObject *> gradients = doc->getResourceList("gradient"); 202 _("Add gradient sto 949 cairo_pattern_t *gradient = sp_gradient_create_preview_pattern(grad, PREVIEW_PIXBUF_WIDTH); local [all...] |
/inkscape/src/livarot/ |
H A D | PathCutting.cpp | 976 double gradient = (p2[Geom::X] - p1[Geom::X]) / (p2[Geom::Y] - p1[Geom::Y]); local 977 double intersection = p1[Geom::X] - gradient * p1[Geom::Y]; 979 orthogonalGradient = -1.0 / gradient; // you are going to have numerical problems here. 981 nearestY = (orthogonalIntersection - intersection) / (gradient - orthogonalGradient); 984 nearestY = (localPos[Geom::X] - (-1.0 / gradient) * localPos[Geom::Y] - intersection) / (gradient - (-1.0 / gradient)); 986 multiply top and bottom by gradient: 987 nearestY = (localPos[Geom::X] * gradient - (-1.0) * localPos[Geom::Y] - intersection * gradient) / (gradien [all...] |
/inkscape/src/2geom/ |
H A D | conicsec.cpp | 299 Point g = xC0.gradient(trial_pt); 302 g = xC0.gradient(trial_pt); 305 g = xC0.gradient(trial_pt); 308 g = xC0.gradient(trial_pt); 311 g = xC0.gradient(trial_pt); 330 Line Lx = Line::from_origin_and_vector(trial_pt, g); // a line along the gradient 458 Point xAx::gradient(Point p) const{ function in class:Geom::xAx 514 Point dA = rot90(gradient(A)); 543 Point dA = gradient(A); 544 Point dC = gradient( [all...] |
/inkscape/src/extension/internal/pdfinput/ |
H A D | svg-builder.cpp | 746 * \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...] |