/inkscape/src/display/ |
H A D | canvas-text.cpp | 84 if (!buf->ct) 87 cairo_set_font_size(buf->ct, cl->fontsize); 91 cairo_text_extents(buf->ct, cl->text, &extents); 93 cairo_rectangle(buf->ct, item->x1 - buf->rect.left(), 98 ink_cairo_set_source_rgba32(buf->ct, cl->rgba_background); 99 cairo_fill(buf->ct); 106 cairo_move_to(buf->ct, round(offsetx), round(offsety)); 107 cairo_text_path(buf->ct, cl->text); 110 ink_cairo_set_source_rgba32(buf->ct, cl->rgba_stroke); 111 cairo_set_line_width (buf->ct, 2. 231 SPCanvasText *ct = SP_CANVASTEXT(item); local 244 sp_canvastext_set_rgba32(SPCanvasText *ct, guint32 rgba, guint32 rgba_stroke) argument 261 sp_canvastext_set_coords(SPCanvasText *ct, gdouble x0, gdouble y0) argument 267 sp_canvastext_set_coords(SPCanvasText *ct, const Geom::Point start) argument 282 sp_canvastext_set_text(SPCanvasText *ct, gchar const * new_text) argument 290 sp_canvastext_set_number_as_text(SPCanvasText *ct, int num) argument 298 sp_canvastext_set_fontsize(SPCanvasText *ct, double size) argument 304 sp_canvastext_set_anchor_manually(SPCanvasText *ct, double anchor_x, double anchor_y) argument [all...] |
H A D | canvas-text.h | 63 void sp_canvastext_set_rgba32 (SPCanvasText *ct, guint32 rgba, guint32 rgba_stroke); 64 void sp_canvastext_set_coords (SPCanvasText *ct, gdouble x0, gdouble y0); 65 void sp_canvastext_set_coords (SPCanvasText *ct, const Geom::Point start); 66 void sp_canvastext_set_text (SPCanvasText *ct, gchar const* new_text); 67 void sp_canvastext_set_number_as_text (SPCanvasText *ct, int num); 68 void sp_canvastext_set_fontsize (SPCanvasText *ct, double size); 69 void sp_canvastext_set_anchor_manually (SPCanvasText *ct, double anchor_x, double anchor_y);
|
H A D | nr-filter-composite.cpp | 86 cairo_t *ct = cairo_create(out); local 87 cairo_set_source_surface(ct, input1, 0, 0); 90 cairo_set_operator(ct, CAIRO_OPERATOR_IN); 93 cairo_set_operator(ct, CAIRO_OPERATOR_OUT); 96 cairo_set_operator(ct, CAIRO_OPERATOR_ATOP); 99 cairo_set_operator(ct, CAIRO_OPERATOR_XOR); 104 cairo_set_operator(ct, CAIRO_OPERATOR_CLEAR); 107 cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE); 110 cairo_set_operator(ct, CAIRO_OPERATOR_DEST); 113 cairo_set_operator(ct, CAIRO_OPERATOR_DEST_OVE [all...] |
H A D | nr-filter-flood.cpp | 94 cairo_t *ct = cairo_create(out); local 95 cairo_set_source_rgba(ct, r, g, b, a); 96 cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE); 97 cairo_rectangle(ct, dx, dy, overlap.width(), overlap.height() ); 98 cairo_fill(ct); 99 cairo_destroy(ct);
|
H A D | sp-ctrlline.cpp | 76 if (!buf->ct) { 87 ink_cairo_set_source_rgba32(buf->ct, 0xffffffbf); 88 cairo_set_line_width(buf->ct, 2); 89 cairo_new_path(buf->ct); 91 cairo_move_to(buf->ct, s[Geom::X] - buf->rect.left(), s[Geom::Y] - buf->rect.top()); 92 cairo_line_to(buf->ct, e[Geom::X] - buf->rect.left(), e[Geom::Y] - buf->rect.top()); 94 cairo_stroke(buf->ct); 97 ink_cairo_set_source_rgba32(buf->ct, cl->rgba); 98 cairo_set_line_width(buf->ct, 1); 99 cairo_new_path(buf->ct); [all...] |
H A D | guideline.cpp | 85 cairo_save(buf->ct); 86 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top()); 87 ink_cairo_set_source_rgba32(buf->ct, gl->rgba); 88 cairo_set_line_width(buf->ct, 1); 89 cairo_set_line_cap(buf->ct, CAIRO_LINE_CAP_SQUARE); 90 cairo_set_font_size(buf->ct, 10); 98 cairo_save(buf->ct); 99 cairo_translate(buf->ct, px, py); 100 cairo_rotate(buf->ct, atan2(normal_dt.cw())); 101 cairo_translate(buf->ct, [all...] |
H A D | canvas-bpath.cpp | 114 if (!buf->ct) 120 cairo_set_tolerance(buf->ct, 0.5); 121 cairo_new_path(buf->ct); 123 feed_pathvector_to_cairo (buf->ct, cbp->curve->get_pathvector(), cbp->affine, area, 128 ink_cairo_set_source_rgba32(buf->ct, cbp->fill_rgba); 129 cairo_set_fill_rule(buf->ct, cbp->fill_rule == SP_WIND_RULE_EVENODD? CAIRO_FILL_RULE_EVEN_ODD 131 cairo_fill_preserve(buf->ct); 135 ink_cairo_set_source_rgba32(buf->ct, cbp->stroke_rgba); 136 cairo_set_line_width(buf->ct, 1); 138 cairo_set_dash (buf->ct, cb [all...] |
H A D | sodipodi-ctrlrect.cpp | 107 cairo_save(buf->ct); 108 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top()); 109 cairo_set_line_width(buf->ct, 1); 110 if (_dashed) cairo_set_dash(buf->ct, dashes, 2, 0); 111 cairo_rectangle(buf->ct, 0.5 + area[X].min(), 0.5 + area[Y].min(), 116 cairo_set_source(buf->ct, cb); 118 cairo_fill_preserve(buf->ct); 121 ink_cairo_set_source_rgba32(buf->ct, _fill_color); 122 cairo_fill_preserve(buf->ct); 125 ink_cairo_set_source_rgba32(buf->ct, _border_colo [all...] |
H A D | cairo-utils.h | 43 cairo_t *ct; member in class:Inkscape::CairoGroup 51 : ct(_ct) 55 cairo_save(ct); 60 cairo_save(ct); 66 cairo_restore(ct); 69 cairo_t *ct; member in class:Inkscape::CairoSave 149 void ink_cairo_set_source_color(cairo_t *ct, SPColor const &color, double opacity); 150 void ink_cairo_set_source_rgba32(cairo_t *ct, guint32 rgba); 151 void ink_cairo_transform(cairo_t *ct, Geom::Affine const &m); 199 void feed_pathvector_to_cairo (cairo_t *ct, Geo [all...] |
H A D | cairo-utils.cpp | 44 CairoGroup::CairoGroup(cairo_t *_ct) : ct(_ct), pushed(false) {} 47 cairo_pattern_t *p = cairo_pop_group(ct); 52 cairo_push_group(ct); 56 cairo_push_group_with_content(ct, content); 61 cairo_pattern_t *ret = cairo_pop_group(ct); 70 cairo_pattern_t *ret = cairo_pop_group(ct); 80 cairo_pop_group_to_source(ct); 117 cairo_t *ct = cairo_create(target->cobj()); local 118 Cairo::RefPtr<CairoContext> ret(new CairoContext(ct, true)); 624 feed_path_to_cairo (cairo_t *ct, Geo argument 642 feed_path_to_cairo(cairo_t *ct, Geom::Path const &path, Geom::Affine trans, Geom::OptRect area, bool optimize_stroke, double stroke_width) argument 690 feed_pathvector_to_cairo(cairo_t *ct, Geom::PathVector const &pathv, Geom::Affine trans, Geom::OptRect area, bool optimize_stroke, double stroke_width) argument 705 feed_pathvector_to_cairo(cairo_t *ct, Geom::PathVector const &pathv) argument 753 ink_cairo_set_source_rgba32(cairo_t *ct, guint32 rgba) argument 759 ink_cairo_set_source_color(cairo_t *ct, SPColor const &c, double opacity) argument 785 ink_cairo_transform(cairo_t *ct, Geom::Affine const &m) argument 819 cairo_t *ct = cairo_create(ns); local 860 cairo_t *ct = cairo_create(alpha); local 903 cairo_t *ct = cairo_create(dest); local 1121 cairo_t *ct = cairo_create(s); local [all...] |
H A D | nr-filter-offset.cpp | 40 cairo_t *ct = cairo_create(out); local 63 cairo_set_source_surface(ct, in, offset[X], offset[Y]); 64 cairo_paint(ct); 65 cairo_destroy(ct);
|
H A D | nr-filter-tile.cpp | 58 cairo_t *ct = cairo_create(out); local 101 cairo_set_source_surface(ct, tile, offset[Geom::X], offset[Geom::Y]); 102 cairo_paint(ct); 108 cairo_destroy(ct);
|
H A D | sp-ctrlquadr.cpp | 73 if (!buf->ct) 77 cairo_new_path(buf->ct); 86 cairo_move_to(buf->ct, p1[Geom::X], p1[Geom::Y]); 87 cairo_line_to(buf->ct, p2[Geom::X], p2[Geom::Y]); 88 cairo_line_to(buf->ct, p3[Geom::X], p3[Geom::Y]); 89 cairo_line_to(buf->ct, p4[Geom::X], p4[Geom::Y]); 90 cairo_line_to(buf->ct, p1[Geom::X], p1[Geom::Y]); 93 //cairo_set_operator (buf->ct, CAIRO_OPERATOR_XOR); 95 cairo_set_source_rgba(buf->ct, SP_RGBA32_B_F(cq->rgba), SP_RGBA32_G_F(cq->rgba), SP_RGBA32_R_F(cq->rgba), SP_RGBA32_A_F(cq->rgba)); 96 cairo_fill(buf->ct); [all...] |
H A D | drawing-surface.cpp | 158 cairo_t *ct = cairo_create(_surface); local 160 cairo_scale(ct, _scale[X], _scale[Y]); 162 cairo_translate(ct, -_origin[X], -_origin[Y]); 163 return ct; 246 cairo_t *ct = createRawContext(); local 248 ink_cairo_transform(ct, _pending_transform); 250 cairo_set_source_surface(ct, old_surface, old_origin[X], old_origin[Y]); 251 cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE); 252 cairo_pattern_set_filter(cairo_get_source(ct), CAIRO_FILTER_NEAREST); 253 cairo_paint(ct); [all...] |
H A D | nr-filter-image.cpp | 182 cairo_t *ct = cairo_create(out); local 183 cairo_translate(ct, -sa.min()[Geom::X], -sa.min()[Geom::Y]); 185 // now ct is in pb coordinates, note the feWidth etc. are in user units 186 ink_cairo_transform(ct, slot.get_units().get_matrix_user2pb()); 188 // now ct is in the coordinates of feImageX etc. 276 cairo_translate(ct, feImageX, feImageY); 277 cairo_scale(ct, scaleX, scaleY); 278 cairo_set_source_surface(ct, image_surface, 0, 0); 279 cairo_paint(ct); 280 cairo_destroy(ct); [all...] |
H A D | sp-ctrlcurve.cpp | 72 if (!buf->ct) 80 ink_cairo_set_source_rgba32(buf->ct, cl->rgba); 81 cairo_set_line_width(buf->ct, 1); 82 cairo_new_path(buf->ct); 89 cairo_move_to (buf->ct, p0[Geom::X] - buf->rect.left(), p0[Geom::Y] - buf->rect.top()); 90 cairo_curve_to (buf->ct, 95 cairo_stroke(buf->ct);
|
H A D | drawing-context.cpp | 61 DrawingContext::DrawingContext(cairo_t *ct, Geom::Point const &origin) argument 62 : _ct(ct) 63 , _surface(new DrawingSurface(cairo_get_group_target(ct), origin))
|
/inkscape/src/ui/widget/ |
H A D | highlight-picker.cpp | 106 cairo_t *ct = cairo_create(s); local 116 cairo_rectangle(ct, carea.x, carea.y, carea.width, carea.height / 2); 117 cairo_set_source(ct, checkers); 118 cairo_fill_preserve(ct); 119 ink_cairo_set_source_rgba32(ct, _property_active.get_value()); 120 cairo_fill(ct); 124 cairo_rectangle(ct, carea.x, carea.y + carea.height / 2, carea.width, carea.height / 2); 125 ink_cairo_set_source_rgba32(ct, _property_active.get_value() | 0x000000ff); 126 cairo_fill(ct); 128 cairo_rectangle(ct, care [all...] |
H A D | color-preview.cpp | 148 cairo_t *ct = cairo_create(s); local 158 cairo_rectangle(ct, carea.x, carea.y, carea.width, carea.height); 159 cairo_set_source(ct, checkers); 160 cairo_fill_preserve(ct); 161 ink_cairo_set_source_rgba32(ct, _rgba); 162 cairo_fill(ct); 172 cairo_rectangle(ct, carea.x, carea.y, carea.width, carea.height); 173 ink_cairo_set_source_rgba32(ct, _rgba | 0xff); 174 cairo_fill(ct); 176 cairo_destroy(ct); [all...] |
/inkscape/src/widgets/ |
H A D | gradient-image.cpp | 127 cairo_t *ct = gdk_cairo_create(gtk_widget_get_window (widget)); local 128 cairo_rectangle(ct, event->area.x, event->area.y, 130 cairo_clip(ct); 133 cairo_translate(ct, allocation.x, allocation.y); 134 result = sp_gradient_image_draw(widget, ct); 135 cairo_destroy(ct); 142 static gboolean sp_gradient_image_draw(GtkWidget *widget, cairo_t *ct) argument 150 cairo_set_source(ct, check); 151 cairo_paint(ct); 156 cairo_set_source(ct, 178 cairo_t *ct = cairo_create(s); local [all...] |
H A D | dash-selector.cpp | 247 cairo_t *ct = cairo_create(s); local 249 cairo_set_line_width (ct, preview_lineheight); 250 cairo_scale (ct, preview_lineheight, 1); 251 //cairo_set_source_rgb (ct, 0, 0, 0); 252 cairo_move_to (ct, 0, preview_height/2); 253 cairo_line_to (ct, preview_width, preview_height/2); 254 cairo_set_dash(ct, pattern, n_dashes, 0); 255 cairo_stroke (ct); 257 cairo_destroy(ct); 270 cairo_t *ct local [all...] |
/inkscape/packaging/macosx/ |
H A D | create-stock-icon-theme.sh | 117 for ct in $contexts; do 118 echo "size: $size context: $ct" 119 mv "stock" "$ct" 120 $map_legacy_icons -c "$ct" 121 mv $ct "stock"
|
/inkscape/src/ |
H A D | sp-linear-gradient.h | 25 virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity);
|
H A D | sp-radial-gradient.h | 30 virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity);
|
H A D | sp-solid-color.h | 29 virtual cairo_pattern_t* pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity);
|