/inkscape/src/widgets/ |
H A D | button.h | 39 guchar *px; member in struct:SPBChoiceData
|
H A D | ruler.cpp | 213 "px", 273 priv->unit = unit_table.getUnit("px"); 875 gdouble px, py; local 877 gdk_window_coords_to_parent (w, *x, *y, &px, &py); 879 *x += px; 880 *y += px; 1278 if (*unit == *unit_table.getUnit("px") && scale == 1 && i == 1)
|
H A D | stroke-style.cpp | 117 Gtk::Widget *px = Gtk::manage(Glib::wrap(sp_icon_new(Inkscape::ICON_SIZE_LARGE_TOOLBAR, icon))); local 118 g_assert(px != NULL); 119 px->show(); 120 add(*px); 929 double avgwidth = Inkscape::Util::Quantity::convert(query.stroke_width.computed, "px", unit); 1071 width = Inkscape::Util::Quantity::convert(width_typed, unit, "px");
|
/inkscape/src/extension/ |
H A D | print.cpp | 93 Print::image (unsigned char *px, unsigned int w, unsigned int h, unsigned int rs, argument 96 return imp->image (this, px, w, h, rs, transform, style);
|
/inkscape/src/livarot/ |
H A D | sweep-event.cpp | 22 SweepEvent *SweepEventQueue::add(SweepTree *iLeft, SweepTree *iRight, Geom::Point &px, double itl, double itr) argument 29 events[n].MakeNew (iLeft, iRight, px, itl, itr); 46 if (px[1] < events[no].posx[1] 47 || (px[1] == events[no].posx[1] && px[0] < events[no].posx[0])) 65 bool SweepEventQueue::peek(SweepTree * &iLeft, SweepTree * &iRight, Geom::Point &px, double &itl, double &itr) argument 75 px = e.posx; 82 bool SweepEventQueue::extract(SweepTree * &iLeft, SweepTree * &iRight, Geom::Point &px, double &itl, double &itr) argument 92 px = e.posx; 125 Geom::Point const px member in class:Geom 238 MakeNew(SweepTree *iLeft, SweepTree *iRight, Geom::Point const &px, double itl, double itr) argument [all...] |
H A D | sweep-tree.cpp | 76 // lying at y=px[1]. 77 // px is the upper endpoint of newOne 79 SweepTree::Find(Geom::Point const &px, SweepTree *newOne, SweepTree *&insertL, argument 94 diff = px - bOrig; 96 // compute (px-orig)^dir to know on which side of this edge the point px lies 105 // that damn point px lies on me, so i need to consider to direction of the edge in 135 return (static_cast<SweepTree *>(child[LEFT]))->Find(px, newOne, 149 return (static_cast<SweepTree *>(child[RIGHT]))->Find(px, newOne, 167 SweepTree::Find(Geom::Point const &px, SweepTre argument [all...] |
H A D | ShapeMisc.cpp | 1032 // double px=pts[getEdge(bord).st].x,py=pts[getEdge(bord).st].y; 1157 Geom::Point px = getPoint(getEdge(bord).st).x; local 1227 ReFormeBezierChunk (px, nx, dest, inBezier, nbInterm, from, ps, 1273 ReFormeBezierChunk (px, tx, dest, inBezier, nbInterm, 1291 ReFormeBezierChunk (px, tx, dest, inBezier, nbInterm, 1353 ReFormeBezierChunk (px, tx, dest, inBezier, nbInterm, 1371 ReFormeBezierChunk (px, tx, dest, inBezier, nbInterm, 1394 Shape::ReFormeBezierChunk (Geom::Point px, Geom::Point nx, argument 1445 cx = 2 * cx - (px + nx) / 2;
|
/inkscape/src/ |
H A D | print.cpp | 65 guchar *px, unsigned int w, unsigned int h, unsigned int rs, 68 return ctx->module->image(px, w, h, rs, transform, style); 64 sp_print_image_R8G8B8A8_N(SPPrintContext *ctx, guchar *px, unsigned int w, unsigned int h, unsigned int rs, Geom::Affine const &transform, SPStyle const *style) argument
|
H A D | sp-image.cpp | 266 guchar* px = pixbuf->pixels(); local 268 if ( px ) { 304 guchar* currLine = px; 491 guchar *px = pb->pixels(); local 503 sp_print_image_R8G8B8A8_N(ctx, px, w, h, rs, t, this->style);
|
H A D | sp-offset.cpp | 774 * 'px inside source'. 777 sp_offset_distance_to_original (SPOffset * offset, Geom::Point px) argument 818 Geom::Point nxpx = px-nx; 824 // now we need to wheck if px is inside or outside (for the sign) 825 nx = px - theRes->getPoint(i).x; 889 Geom::Point pxsx=px-sx; 937 sp_offset_top_point (SPOffset const * offset, Geom::Point *px) argument 939 (*px) = Geom::Point(0, 0); 947 (*px) = offset->knot; 982 *px [all...] |
H A D | sp-namedview.cpp | 71 this->svg_units = unit_table.getUnit("px"); // legacy behavior: if no viewbox present, default to 'px' units 106 const char* gridspacingx = "1px"; 107 const char* gridspacingy = "1px"; 108 const char* gridoriginy = "0px"; 109 const char* gridoriginx = "0px"; 271 } else { // force the document units to be px 272 repr->setAttribute("inkscape:document-units", "px"); 552 * We default to `px'. 554 static Inkscape::Util::Unit const *px member in class:Inkscape::Util [all...] |
/inkscape/src/ui/cache/ |
H A D | svg_preview_cache.cpp | 104 void SvgPreview::set_preview_in_cache(const Glib::ustring& key, GdkPixbuf* px) { argument 105 g_object_ref(px); 106 _pixmap_cache[key] = px; 113 GdkPixbuf* px = get_preview_from_cache(key); local 115 if (px == NULL) { 117 px = render_pixbuf(root, scale_factor, dbox, psize); 118 set_preview_in_cache(key, px); 121 return px;
|
/inkscape/src/display/ |
H A D | drawing-image.cpp | 225 guint32 px = *reinterpret_cast<guint32 const *>(pix_ptr); local 226 alpha = (px & 0xff000000) >> 24;
|
H A D | cairo-utils.h | 202 #define EXTRACT_ARGB32(px,a,r,g,b) \ 204 a = ((px) & 0xff000000) >> 24; \ 205 r = ((px) & 0x00ff0000) >> 16; \ 206 g = ((px) & 0x0000ff00) >> 8; \ 207 b = ((px) & 0x000000ff); 209 #define ASSEMBLE_ARGB32(px,a,r,g,b) \ 210 guint32 px = (a << 24) | (r << 16) | (g << 8) | b; 226 inline void ExtractARGB32(guint32 px, guint32 &a, guint32 &r, guint32 &g, guint &b) argument 228 a = ((px) & 0xff000000) >> 24; 229 r = ((px) 234 ExtractRGB32(guint32 px, guint32 &r, guint32 &g, guint &b) argument [all...] |
H A D | guideline.cpp | 96 int px = round(point_on_line_dt[Geom::X]); local 99 cairo_translate(buf->ct, px, py);
|
H A D | nr-filter-convolve-matrix.cpp | 70 guint32 px = pixelAt(startx + j, starty + i); local 72 EXTRACT_ARGB32(px, a,r,g,b)
|
H A D | sodipodi-ctrl.cpp | 433 unsigned char *px; local 435 px = gdk_pixbuf_get_pixels (ctrl->pixbuf); 440 s = px + y * rs; 462 guint32 *px; local 466 px = reinterpret_cast<guint32*>(data + y * r); 468 *p++ = *px++; 534 ASSEMBLE_ARGB32(px, ab,ro,go,bo) 535 *pb++ = px;
|
H A D | cairo-templates.h | 395 unsigned char *px = _px + y*_stride + x; local 396 return *px << 24; 398 unsigned char *px = _px + y*_stride + x*4; local 399 return *reinterpret_cast<guint32*>(px); 404 unsigned char *px = _px + y*_stride + x; local 405 return *px; 407 unsigned char *px = _px + y*_stride + x*4; local 408 guint32 p = *reinterpret_cast<guint32*>(px); 666 guint32 *px = reinterpret_cast<guint32*>(_px +real_y*_stride + real_x*4); 667 return *px; [all...] |
/inkscape/src/extension/internal/ |
H A D | metafile-inout.cpp | 97 void Metafile::toPNG(PMEMPNG accum, int width, int height, const char *px){ argument 102 bitmap->pixels=(pixel_t *)px; 204 double scale = Inkscape::Util::Quantity::convert(1, "px", doc_unit); 208 dh = SP_ACTIVE_DOCUMENT->getHeight().value("px"); 211 dh = doc->getHeight().value("px");
|
H A D | metafile-print.cpp | 315 void PrintMetafile::swapRBinRGBA(char *px, int pixels) argument 318 for (int i = 0; i < pixels * 4; px += 4, i += 4) { 319 tmp = px[2]; 320 px[2] = px[0]; 321 px[0] = tmp;
|
/inkscape/src/libcola/ |
H A D | straightener.cpp | 36 static bool pointOnLine(double px,double py, double ax, double ay, double bx, double by, double& tx) { argument 42 tx=px-ax; 47 if(fabs(px-ax)<0.01) { 51 tx=(px-ax)/dx; 78 double px=nodes[*j]->x; local 86 //printf(" px=%f, py=%f, ax=%f, ay=%f, bx=%f, by=%f\n",px,py,ax,ay,bx,by); 87 if(pointOnLine(px,py,ax,ay,bx,by,t)) {
|
/inkscape/src/2geom/ |
H A D | pathvector.cpp | 184 std::vector<PathIntersection> px = ii->path->intersect(*i->path, _precision); local 185 for (std::size_t k = 0; k < px.size(); ++k) { 186 PathVectorTime tw(ii->index, px[k].first), tow(i->index, px[k].second); 190 px[k].point()));
|
/inkscape/src/ui/dialog/ |
H A D | icon-preview.cpp | 457 guchar * px = sp_icon_doc_icon( doc, drawing, id, sizes[i], unused); local 458 // g_message( " size %d %s", sizes[i], (px ? "worked" : "failed") ); 459 if ( px ) { 460 memcpy( pixMem[i], px, sizes[i] * stride ); 461 g_free( px ); 462 px = 0;
|
H A D | text-edit.cpp | 119 GtkWidget *px = sp_icon_new( Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("text_line_spacing") ); local 120 layout_hbox.pack_start(*Gtk::manage(Glib::wrap(px)), false, false); 130 gtk_widget_set_tooltip_text (px, _("Spacing between baselines (percent of font size)")); 427 double pt_size = Inkscape::Util::Quantity::convert(sp_style_css_size_units_to_px(sp_font_selector_get_size(fsel), unit), "px", "pt");
|
/inkscape/src/helper/ |
H A D | png-write.cpp | 57 guchar *px; member in struct:SPEBP 65 guchar const *px; member in struct:SPPNGBD 334 unsigned char *px = g_new(guchar, num_rows * stride); local 337 px, CAIRO_FORMAT_ARGB32, ebp->width, num_rows, stride); 348 *to_free = px; 352 convert_pixels_argb32_to_pixbuf(px, ebp->width, num_rows, stride); 355 rows[r] = px + r * stride; 419 Geom::Point translation = Geom::Point(-area[Geom::X][0], area[Geom::Y][1] - doc->getHeight().value("px")); 470 ebp.px = g_try_new(guchar, 4 * ebp.sheight * width); 472 if (ebp.px) { [all...] |