Lines Matching defs:gr
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 )
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)
113 gr_apply_gradient_to_item(draggable->item, gr, initialType, initialMode, draggable->fill_or_stroke);
121 gr_apply_gradient_to_item(*i, gr, initialType, initialMode, initialMode);
816 SPGradient *gr = NULL;
823 gtk_tree_model_get(model, &iter, 2, &gr, -1);
824 return gr;
828 return gr;
834 SPGradient *gr = gr_get_selected_gradient(widget);
835 if (gr) {
836 GtkWidget *dialog = sp_gradient_vector_editor_new(gr);
912 SPGradient *gr = NULL;
917 gtk_tree_model_get(model, &iter, 2, &gr, -1);
920 if (gr) {
921 gr = sp_gradient_ensure_vector_normalized(gr);
927 gr_apply_gradient(selection, ev? ev->get_drag() : NULL, gr);
968 SPGradient *gr = gr_get_selected_gradient(data);
970 select_drag_by_stop(data, gr, ev);