/inkscape/src/svg/ |
H A D | css-ostringstream.cpp | 23 char buf[32]; // haven't thought about how much is really required. local 25 case 9: g_ascii_formatd(buf, sizeof(buf), "%.9f", d); break; 26 case 8: g_ascii_formatd(buf, sizeof(buf), "%.8f", d); break; 27 case 7: g_ascii_formatd(buf, sizeof(buf), "%.7f", d); break; 28 case 6: g_ascii_formatd(buf, sizeof(buf), "%.6f", d); break; 29 case 5: g_ascii_formatd(buf, sizeo [all...] |
H A D | svg-color.h | 9 void sp_svg_write_color(char *buf, unsigned int buflen, unsigned int rgba32);
|
H A D | svg-length.cpp | 63 static unsigned int sp_svg_number_write_ui(gchar *buf, unsigned int val) argument 72 memcpy(buf, &c[16u - i], i); 73 buf[i] = 0; 80 static unsigned int sp_svg_number_write_i(gchar *buf, int bufLen, int val) argument 85 buf[p++] = '-'; 91 p += sp_svg_number_write_ui(buf+p, uval); 98 static unsigned sp_svg_number_write_d(gchar *buf, int bufLen, double val, unsigned int tprec, unsigned int fprec) argument 103 buf[i++] = '-'; 122 i += sp_svg_number_write_ui(buf + i, (unsigned int)floor(dival/pow(10.0, idigits-tprec) + .5)); 124 buf[ 149 sp_svg_number_write_de(gchar *buf, int bufLen, double val, unsigned int tprec, int min_exp) argument [all...] |
H A D | svg-color.cpp | 406 gchar *buf = (gchar *) g_malloc(end + 1 - str); local 407 memcpy(buf, str, end - str); 408 buf[end - str] = '\0'; 409 gchar const *buf_end = buf; 410 guint32 const check = internal_sp_svg_read_color(buf, &buf_end, 1); 412 && buf_end - buf == end - str); 413 g_free(buf); 427 static void rgb24_to_css(char *const buf, unsigned const rgb24) argument 462 sprintf(buf, "#%x%x%x", 467 sprintf(buf, "# [all...] |
H A D | svg.h | 37 unsigned int sp_svg_number_write_de( char *buf, int bufLen, double val, unsigned int tprec, int min_exp );
|
H A D | svg-length-test.h | 149 char buf[256] = {0}; local 150 memset(buf, 0xCC, sizeof(buf)); // Make it easy to detect an overrun. 151 unsigned int retval = sp_svg_number_write_de( buf, sizeof(buf), precTests[i].val, precTests[i].prec, precTests[i].minexp ); 153 TSM_ASSERT_EQUALS("Numeric string written", std::string(buf), std::string(precTests[i].str)); 154 TSM_ASSERT_EQUALS(std::string("Buffer overrun ") + precTests[i].str, '\xCC', buf[retval + 1]); local
|
/inkscape/src/trace/ |
H A D | imagemap-gdk.h | 26 GrayMap *gdkPixbufToGrayMap(GdkPixbuf *buf); 28 PackedPixelMap *gdkPixbufToPackedPixelMap(GdkPixbuf *buf); 29 RgbMap *gdkPixbufToRgbMap(GdkPixbuf *buf);
|
H A D | imagemap-gdk.cpp | 10 GrayMap *gdkPixbufToGrayMap(GdkPixbuf *buf) argument 12 if (!buf) 15 int width = gdk_pixbuf_get_width(buf); 16 int height = gdk_pixbuf_get_height(buf); 17 guchar *pixdata = gdk_pixbuf_get_pixels(buf); 18 int rowstride = gdk_pixbuf_get_rowstride(buf); 19 int n_channels = gdk_pixbuf_get_n_channels(buf); 59 GdkPixbuf *buf = gdk_pixbuf_new_from_data(pixdata, GDK_COLORSPACE_RGB, local 78 return buf; 87 PackedPixelMap *gdkPixbufToPackedPixelMap(GdkPixbuf *buf) argument 130 gdkPixbufToRgbMap(GdkPixbuf *buf) argument 188 GdkPixbuf *buf = gdk_pixbuf_new_from_data(pixdata, GDK_COLORSPACE_RGB, local [all...] |
/inkscape/src/display/ |
H A D | guideline.cpp | 28 static void sp_guideline_render(SPCanvasItem *item, SPCanvasBuf *buf); 32 static void sp_guideline_drawline (SPCanvasBuf *buf, gint x0, gint y0, gint x1, gint y1, guint32 rgba); 77 static void sp_guideline_render(SPCanvasItem *item, SPCanvasBuf *buf) argument 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 280 sp_guideline_drawline(SPCanvasBuf *buf, gint x0, gint y0, gint x1, gint y1, guint32 ) argument [all...] |
H A D | sp-ctrlline.cpp | 36 void sp_ctrlline_render(SPCanvasItem *item, SPCanvasBuf *buf); 72 void sp_ctrlline_render(SPCanvasItem *item, SPCanvasBuf *buf) argument 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 [all...] |
H A D | sp-ctrlcurve.cpp | 29 static void sp_ctrlcurve_render(SPCanvasItem *item, SPCanvasBuf *buf); 68 sp_ctrlcurve_render(SPCanvasItem *item, SPCanvasBuf *buf) argument 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 [all...] |
H A D | sodipodi-ctrlrect.cpp | 32 static void sp_ctrlrect_render(SPCanvasItem *item, SPCanvasBuf *buf); 60 static void sp_ctrlrect_render(SPCanvasItem *item, SPCanvasBuf *buf) argument 62 SP_CTRLRECT(item)->render(buf); 93 void CtrlRect::render(SPCanvasBuf *buf) argument 104 if ( area_w_shadow.intersects(buf->rect) ) 107 cairo_save(buf->ct); 108 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top()); 109 cairo_set_line_width(buf [all...] |
H A D | canvas-axonomgrid.cpp | 62 sp_caxonomgrid_drawline (SPCanvasBuf *buf, gint x0, gint y0, gint x1, gint y1, guint32 rgba) argument 64 cairo_move_to(buf->ct, 0.5 + x0, 0.5 + y0); 65 cairo_line_to(buf->ct, 0.5 + x1, 0.5 + y1); 66 ink_cairo_set_source_rgba32(buf->ct, rgba); 67 cairo_stroke(buf->ct); 71 sp_grid_vline (SPCanvasBuf *buf, gint x, gint ys, gint ye, guint32 rgba) argument 73 if ((x < buf->rect.left()) || (x >= buf->rect.right())) 76 cairo_move_to(buf->ct, 0.5 + x, 0.5 + ys); 77 cairo_line_to(buf 521 Render(SPCanvasBuf *buf) argument [all...] |
H A D | canvas-bpath.cpp | 30 static void sp_canvas_bpath_render (SPCanvasItem *item, SPCanvasBuf *buf); 103 sp_canvas_bpath_render (SPCanvasItem *item, SPCanvasBuf *buf) argument 107 Geom::Rect area = buf->rect; 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 [all...] |
H A D | canvas-text.cpp | 28 static void sp_canvastext_render (SPCanvasItem *item, SPCanvasBuf *buf); 80 sp_canvastext_render (SPCanvasItem *item, SPCanvasBuf *buf) argument 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(), 94 item->y1 - buf->rect.top(), 98 ink_cairo_set_source_rgba32(buf->ct, cl->rgba_background); 99 cairo_fill(buf [all...] |
H A D | sp-ctrlquadr.cpp | 35 static void sp_ctrlquadr_render (SPCanvasItem *item, SPCanvasBuf *buf); 69 sp_ctrlquadr_render (SPCanvasItem *item, SPCanvasBuf *buf) argument 73 if (!buf->ct) 77 cairo_new_path(buf->ct); 79 Geom::Point min = buf->rect.min(); 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 [all...] |
H A D | canvas-grid.cpp | 73 static void grid_canvasitem_render (SPCanvasItem *item, SPCanvasBuf *buf); 104 grid_canvasitem_render (SPCanvasItem * item, SPCanvasBuf * buf) argument 109 sp_canvas_prepare_buffer (buf); 110 gridcanvasitem->grid->Render(buf); 866 grid_hline (SPCanvasBuf *buf, gint y, gint xs, gint xe, guint32 rgba) argument 868 if ((y < buf->rect.top()) || (y >= buf->rect.bottom())) 871 cairo_move_to(buf->ct, 0.5 + xs, 0.5 + y); 872 cairo_line_to(buf->ct, 0.5 + xe, 0.5 + y); 873 ink_cairo_set_source_rgba32(buf 878 grid_vline(SPCanvasBuf *buf, gint x, gint ys, gint ye, guint32 rgba) argument 890 grid_dot(SPCanvasBuf *buf, gint x, gint y, guint32 rgba) argument 902 Render(SPCanvasBuf *buf) argument [all...] |
H A D | sp-canvas-util.h | 29 void sp_canvas_prepare_buffer (SPCanvasBuf *buf);
|
H A D | sodipodi-ctrl.cpp | 32 static void sp_ctrl_render (SPCanvasItem *item, SPCanvasBuf *buf); 489 sp_ctrl_render (SPCanvasItem *item, SPCanvasBuf *buf) argument 513 cairo_set_source_surface(cr, cairo_get_target(buf->ct), buf->rect.left(), buf->rect.top()); 542 cairo_save(buf->ct); 543 cairo_set_source_surface(buf->ct, work, 544 ctrl->box.left() - buf->rect.left(), ctrl->box.top() - buf->rect.top()); 545 cairo_rectangle(buf [all...] |
/inkscape/src/io/ |
H A D | inkscapestream.cpp | 255 Glib::ustring buf = readWord(); local 256 if (buf == "true") 265 Glib::ustring buf = readWord(); local 267 if (getLong(buf, &ival)) 274 Glib::ustring buf = readWord(); local 276 if (getULong(buf, &ival)) 283 Glib::ustring buf = readWord(); local 285 if (getLong(buf, &ival)) 292 Glib::ustring buf = readWord(); local 294 if (getULong(buf, 301 Glib::ustring buf = readWord(); local 310 Glib::ustring buf = readWord(); local 319 Glib::ustring buf = readWord(); local 328 Glib::ustring buf = readWord(); local 480 gchar *buf = g_strdup_vprintf(fmt, args); local 554 gchar *buf = g_strdup_printf("%d", val); local 569 gchar *buf = g_strdup_printf("%u", val); local 582 gchar *buf = g_strdup_printf("%d", val); local 595 gchar *buf = g_strdup_printf("%u", val); local 608 gchar *buf = g_strdup_printf("%ld", val); local 621 gchar *buf = g_strdup_printf("%lu", val); local 635 gchar *buf = g_strdup_printf("%8.3f", val); local 653 gchar *buf = g_strdup_printf("%8.3f", val); local [all...] |
/inkscape/src/libdepixelize/ |
H A D | kopftracer2011.h | 86 static Splines to_voronoi(const Glib::RefPtr<Gdk::Pixbuf const> &buf, 103 static Splines to_grouped_voronoi(const Glib::RefPtr<Gdk::Pixbuf const> &buf, 115 static Splines to_splines(const Glib::RefPtr<Gdk::Pixbuf const> &buf, 123 _voronoi(const Glib::RefPtr<Gdk::Pixbuf const> &buf,
|
H A D | kopftracer2011.cpp | 87 Splines Kopf2011::to_voronoi(const Glib::RefPtr<Gdk::Pixbuf const> &buf, argument 92 = _voronoi<Precision, false>(buf, options); 106 return Splines(_voronoi<Precision, false>(buf, options)); 116 Splines Kopf2011::to_grouped_voronoi(const Glib::RefPtr<Gdk::Pixbuf const> &buf, argument 121 = _voronoi<Precision, false>(buf, options); 130 (buf, options)); 187 Splines Kopf2011::to_splines(const Glib::RefPtr<Gdk::Pixbuf const> &buf, argument 192 = _voronoi<Precision, true>(buf, options); 217 (buf, options)); 224 Kopf2011::_voronoi(const Glib::RefPtr<Gdk::Pixbuf const> &buf, argument [all...] |
/inkscape/src/ |
H A D | cms-system.h | 26 static Glib::ustring setDisplayPer( void* buf, unsigned int bufLen, int screen, int monitor );
|
/inkscape/src/2geom/ |
H A D | svg-path-parser.cpp | 1330 std::string buf(start, p); 1331 _push(g_ascii_strtod(buf.c_str(), NULL)); 1334 std::string buf(str, p); 1335 _push(g_ascii_strtod((_number_part + buf).c_str(), NULL)); 1460 std::string buf(start, p); 1461 _push(g_ascii_strtod(buf.c_str(), NULL)); 1464 std::string buf(str, p); 1465 _push(g_ascii_strtod((_number_part + buf).c_str(), NULL));
|
/inkscape/src/extension/internal/ |
H A D | odf.cpp | 1006 static void gatherText(Inkscape::XML::Node *node, Glib::ustring &buf) argument 1012 buf.append(s); 1018 gatherText(child, buf); 1077 char buf[64]; local 1078 snprintf(buf, sizeof(buf), "Pictures/image%u%s", 1080 Glib::ustring newName = buf; 1192 char buf [80]; local 1197 strftime (buf,80,"%Y-%m-%d %H:%M:%S",timeinfo); 1198 moddate = Glib::ustring(buf); 1343 char buf[16]; local 1368 char buf[16]; local 1542 char buf[128]; local [all...] |