/inkscape/src/ |
H A D | sp-gradient-test.h | 33 SPGradient *gr = static_cast<SPGradient *>(g_object_new(SP_TYPE_GRADIENT, NULL)); local 34 if ( gr ) { 35 UTEST_ASSERT(gr->gradientTransform.isIdentity()); 36 UTEST_ASSERT(gr->gradientTransform == Geom::identity()); 37 g_object_unref(gr); 55 SPGradient *gr = static_cast<SPGradient *>(g_object_new(SP_TYPE_GRADIENT, NULL)); local 56 SP_OBJECT(gr)->document = _doc; 58 SP_OBJECT(gr)->setKeyValue( SP_ATTR_GRADIENTTRANSFORM, "translate(5, 8)"); 59 TS_ASSERT_EQUALS( gr->gradientTransform, Geom::Affine(Geom::Translate(5, 8)) ); 61 SP_OBJECT(gr) 73 SPGradient *gr = static_cast<SPGradient *>(g_object_new(SP_TYPE_GRADIENT, NULL)); local 94 SPGradient *gr = static_cast<SPGradient *>(g_object_new(SP_TYPE_GRADIENT, NULL)); local [all...] |
H A D | sp-gradient.cpp | 424 void SPGradient::gradientRefChanged(SPObject *old_ref, SPObject *ref, SPGradient *gr) argument 427 gr->modified_connection.disconnect(); 430 && ref != gr ) 432 gr->modified_connection = ref->connectModified(sigc::bind<2>(sigc::ptr_fun(&SPGradient::gradientRefModified), gr)); 439 if (!gr->units_set) { 440 gr->units = gr->fetchUnits(); 442 if (!gr->spread_set) { 443 gr 752 has_stopsFN(SPGradient const *gr) argument 760 has_spread_set(SPGradient const *gr) argument 769 has_units_set(SPGradient const *gr) argument 816 sp_gradient_repr_clear_vector(SPGradient *gr) argument 843 sp_gradient_repr_write_vector(SPGradient *gr) argument 1053 sp_gradient_get_g2d_matrix(SPGradient const *gr, Geom::Affine const &ctm, Geom::Rect const &bbox) argument 1065 sp_gradient_get_gs2d_matrix(SPGradient const *gr, Geom::Affine const &ctm, Geom::Rect const &bbox) argument 1078 sp_gradient_set_gs2d_matrix(SPGradient *gr, Geom::Affine const &ctm, Geom::Rect const &bbox, Geom::Affine const &gs2d) argument 1098 sp_gradient_pattern_common_setup(cairo_pattern_t *cp, SPGradient *gr, Geom::OptRect const &bbox, double opacity) argument 1136 sp_gradient_create_preview_pattern(SPGradient *gr, double width) argument [all...] |
H A D | gradient-chemistry.cpp | 87 static void sp_gradient_repr_set_link(Inkscape::XML::Node *repr, SPGradient *gr); 89 SPGradient *sp_gradient_ensure_vector_normalized(SPGradient *gr) argument 92 g_message("sp_gradient_ensure_vector_normalized(%p)", gr); 94 g_return_val_if_fail(gr != NULL, NULL); 95 g_return_val_if_fail(SP_IS_GRADIENT(gr), NULL); 98 if (gr->state == SP_GRADIENT_STATE_VECTOR) return gr; 100 if (gr->state != SP_GRADIENT_STATE_UNKNOWN) { 101 g_warning("file %s: line %d: Cannot normalize private gradient to vector (%s)", __FILE__, __LINE__, gr->getId()); 105 /* First make sure we have vector directly defined (i.e. gr ha 169 SPGradient *gr = static_cast<SPGradient *>(document->getObjectByRepr(repr)); local 179 count_gradient_hrefs(SPObject *o, SPGradient *gr) argument 213 sp_gradient_fork_private_if_necessary(SPGradient *gr, SPGradient *vector, SPGradientType type, SPObject *o) argument 287 sp_gradient_fork_vector_if_necessary(SPGradient *gr) argument 333 sp_gradient_reset_to_userspace(SPGradient *gr, SPItem *item) argument 430 sp_gradient_convert_to_userspace(SPGradient *gr, SPItem *item, gchar const *property) argument 1392 sp_item_set_gradient(SPItem *item, SPGradient *gr, SPGradientType type, Inkscape::PaintTarget fill_or_stroke) argument 1532 SPGradient *gr = static_cast<SPGradient *>(document->getObjectByRepr(repr)); local [all...] |
/inkscape/src/widgets/ |
H A D | gradient-vector.h | 49 SPGradient *gr; member in struct:SPGradientVectorSelector 70 void (* vector_set) (SPGradientVectorSelector *gvs, SPGradient *gr); 77 void sp_gradient_vector_selector_set_gradient (SPGradientVectorSelector *gvs, SPDocument *doc, SPGradient *gr);
|
H A D | gradient-image.cpp | 145 SPGradient *gr = image->gradient; local 154 if (gr) { 155 cairo_pattern_t *p = sp_gradient_create_preview_pattern(gr, allocation.width); 175 sp_gradient_to_pixbuf (SPGradient *gr, int width, int height) argument 185 if (gr) { 186 cairo_pattern_t *p = sp_gradient_create_preview_pattern(gr, width);
|
H A D | fill-style.cpp | 580 SPGradient *gr = sp_gradient_vector_for_object( document, local 585 if ( gr && createSwatch ) { 586 gr->setSwatch(); 589 gr, 605 SPGradient *gr = sp_item_set_gradient(*i, vector, gradient_type, (kind == FILL) ? Inkscape::FOR_FILL : Inkscape::FOR_STROKE); local 606 psel->pushAttrsToGradient( gr );
|
H A D | gradient-selector.cpp | 56 static void sp_gradient_selector_vector_set (SPGradientVectorSelector *gvs, SPGradient *gr, SPGradientSelector *sel); 479 return SP_GRADIENT_VECTOR_SELECTOR(vectors)->gr; 483 static void sp_gradient_selector_vector_set(SPGradientVectorSelector * /*gvs*/, SPGradient *gr, SPGradientSelector *sel) argument 488 gr = sp_gradient_ensure_vector_normalized (gr); 489 sel->setVector((gr) ? gr->document : 0, gr); 490 g_signal_emit (G_OBJECT (sel), signals[CHANGED], 0, gr); local 525 dialog = sp_gradient_vector_editor_new (SP_GRADIENT_VECTOR_SELECTOR (sel->vectors)->gr); [all...] |
H A D | gradient-toolbar.cpp | 50 void gr_apply_gradient_to_item( SPItem *item, SPGradient *gr, SPGradientType initialType, Inkscape::PaintTarget initialMode, Inkscape::PaintTarget mode ); 51 void gr_apply_gradient(Inkscape::Selection *selection, GrDrag *drag, SPGradient *gr); 73 void gr_apply_gradient_to_item( SPItem *item, SPGradient *gr, SPGradientType initialType, Inkscape::PaintTarget initialMode, Inkscape::PaintTarget mode ) argument 83 sp_item_set_gradient(item, gr, SP_GRADIENT_TYPE_LINEAR, mode); 85 sp_item_set_gradient(item, gr, SP_GRADIENT_TYPE_RADIAL, mode); 90 sp_item_set_gradient(item, gr, initialType, mode); 95 Applies gradient vector gr to the gradients attached to the selected dragger of drag, or if none, 100 void gr_apply_gradient(Inkscape::Selection *selection, GrDrag *drag, SPGradient *gr) argument 113 gr_apply_gradient_to_item(draggable->item, gr, initialType, initialMode, draggable->fill_or_stroke); 121 gr_apply_gradient_to_item(*i, gr, initialTyp 816 SPGradient *gr = NULL; local 912 SPGradient *gr = NULL; local 968 SPGradient *gr = gr_get_selected_gradient(data); local [all...] |
H A D | gradient-vector.cpp | 82 unsigned long sp_gradient_to_hhssll(SPGradient *gr); 131 gvs->gr = NULL; 151 if (gvs->gr) { 154 gvs->gr = NULL; 179 GtkWidget *sp_gradient_vector_selector_new(SPDocument *doc, SPGradient *gr) argument 183 g_return_val_if_fail(!gr || SP_IS_GRADIENT(gr), NULL); 184 g_return_val_if_fail(!gr || (gr->document == doc), NULL); 189 sp_gradient_vector_selector_set_gradient(SP_GRADIENT_VECTOR_SELECTOR(gvs), doc, gr); local 197 sp_gradient_vector_selector_set_gradient(SPGradientVectorSelector *gvs, SPDocument *doc, SPGradient *gr) argument 235 if (!suppress) g_signal_emit(G_OBJECT(gvs), signals[VECTOR_SET], 0, gr); local 243 g_signal_emit(G_OBJECT(gvs), signals[VECTOR_SET], 0, gr); local 329 SPGradient *gr; local 354 sp_gradient_to_hhssll(SPGradient *gr) argument 419 SPGradient *gr = NULL; local [all...] |
/inkscape/src/extension/internal/ |
H A D | metafile-print.cpp | 164 U_COLORREF PrintMetafile::avg_stop_color(SPGradient *gr) argument 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); 325 int PrintMetafile::hold_gradient(void *gr, int mode) argument 328 gv.grad = gr; 330 SPRadialGradient *rg = (SPRadialGradient *) gr; 341 SPLinearGradient *lg = (SPLinearGradient *) gr; [all...] |
/inkscape/src/ui/widget/ |
H A D | gimpcolorwheel.c | 1022 gint xl, xr, rl, rr, gl, gr, bl, br; /* Scanline data */ local 1120 gr = LERP (g1, g3, y1, y3, y_interp); 1127 SWAP (gl, gr, t); 1145 (LERP (gl, gr, xl, xr, x_interp) << 8) | 1149 c = (rr << 16) | (gr << 8) | br;
|