/inkscape/src/display/ |
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 | 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))
|
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 | 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-diffuselighting.cpp | 183 cairo_t *ct = cairo_create(out); local 184 cairo_set_source_rgba(ct, 0,0,0,1); 185 cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE); 186 cairo_paint(ct); 187 cairo_destroy(ct);
|
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 | nr-filter-specularlighting.cpp | 198 cairo_t *ct = cairo_create(out); local 199 cairo_set_source_rgba(ct, 0,0,0,1); 200 cairo_set_operator(ct, CAIRO_OPERATOR_SOURCE); 201 cairo_paint(ct); 202 cairo_destroy(ct);
|
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 | 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 | sp-canvas.h | 52 cairo_t *ct; member in struct:SPCanvasBuf
|
H A D | nr-filter-gaussian.cpp | 638 cairo_t *ct = cairo_create(downsampled); local 639 cairo_scale(ct, static_cast<double>(w_downsampled)/w_orig, static_cast<double>(h_downsampled)/h_orig); 640 cairo_set_source_surface(ct, in, 0, 0); 641 cairo_paint(ct); 642 cairo_destroy(ct); 675 cairo_t *ct = cairo_create(upsampled); local 676 cairo_scale(ct, static_cast<double>(w_orig)/w_downsampled, static_cast<double>(h_orig)/h_downsampled); 677 cairo_set_source_surface(ct, downsampled, 0, 0); 678 cairo_paint(ct); 679 cairo_destroy(ct); [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...] |
/inkscape/src/ |
H A D | sp-radial-gradient.cpp | 144 cairo_pattern_t* SPRadialGradient::pattern_new(cairo_t *ct, Geom::OptRect const &bbox, double opacity) { argument 153 double tolerance = cairo_get_tolerance(ct); 182 cairo_user_to_device_distance(ct, &dx, &dy); 189 cairo_device_to_user_distance(ct, &tx, &ty);
|
/inkscape/src/ui/widget/ |
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...] |
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...] |
/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/src/ui/dialog/ |
H A D | color-item.cpp | 227 cairo_t *ct = cairo_create(s); local 228 cairo_set_source(ct, gradient); 229 cairo_paint(ct); 230 cairo_destroy(ct); 550 cairo_t *ct = cairo_create(s); local 551 cairo_set_source(ct, _pattern); 552 cairo_paint(ct); 553 cairo_destroy(ct);
|
/inkscape/src/extension/internal/ |
H A D | wmf-print.cpp | 467 U_RGBQUAD *ct; local 473 (void) RGBA_to_DIB(&px, &cbPx, &ct, &numCt, rgba_px, width, height, width * 4, colortype, 0, 1); 477 Bmi = bitmapinfo_set(Bmih, ct); 483 free(Bmi); // ct will be NULL because of colortype 1134 U_RGBQUAD *ct; local 1139 (void) RGBA_to_DIB(&px, &cbPx, &ct, &numCt, (char *) rgba_px, w, h, w * 4, colortype, 0, 1); 1141 Bmi = bitmapinfo_set(Bmih, ct); 1164 free(ct);
|
H A D | wmf-inout.cpp | 451 const U_RGBQUAD *ct = NULL; // DIB color table local 456 dibparams = wget_DIB_params(dib, &px, &ct, &numCt, &width, &height, &colortype, &invert); 460 ct, // DIB color table 549 const U_RGBQUAD *ct = NULL; // color table, always NULL here local 560 ct, // DIB color table (always NULL here) 1321 const U_RGBQUAD *ct = NULL; // color table local 1326 dibparams = wget_DIB_params(dib, &px, &ct, &numCt, &width, &height, &colortype, &invert); 1334 ct, // DIB color table 1421 const U_RGBQUAD *ct = NULL; // color table local 1439 ct, // DI [all...] |
/inkscape/src/libuemf/ |
H A D | uemf_endian.c | 304 const U_RGBQUAD *ct = NULL; // DIB color table local 315 dibparams = get_DIB_params(record, offBits, offBmi, &px, (const U_RGBQUAD **) &ct, 320 dibparams = get_DIB_params(record, offBits, offBmi, &px, (const U_RGBQUAD **) &ct,
|
H A D | uemf_safe.c | 138 const U_RGBQUAD *ct = NULL; // DIB color table local 149 dibparams = get_DIB_params(record, offBits, offBmi, &px, (const U_RGBQUAD **) &ct,
|
/inkscape/src/livarot/ |
H A D | PathCutting.cpp | 1136 float ct=poss[curP].t; local 1137 if ( ct < 0 ) continue; 1138 if ( ct > 1 ) continue; 1157 TangentOnCubAt (ct, startP, *oData,true, theP,theT,len,rad); 1162 InsertCubicTo(endP,(1-ct)*theT,(1-ct)*enD,cp+1); 1166 nData->start=ct*stD; 1167 nData->end=ct*theT; 1174 poss[j].t=(poss[j].t-ct)/(1-ct); [all...] |