Searched refs:width (Results 1 - 25 of 316) sorted by relevance

1234567891011>>

/inkscape/src/libdepixelize/priv/
H A Dintegral.h40 const T width = (end - begin) / samples; local
43 ret += width * f(begin + width * (i + .5));
/inkscape/src/libnrtype/
H A Done-box.h13 double width; member in struct:one_box
/inkscape/share/extensions/
H A Dseamless_pattern.py12 self.OptionParser.add_option("-w", "--width", action="store", type="int", dest="desktop_width", default="100", help="Custom width")
18 width = self.options.desktop_width
20 if height == 0 | width == 0:
22 factor = float(width)/float(height)
27 root.set("width", str(width))
29 root.set("viewBox", "0 0 " + str(width) + " " + str(height) )
34 clipPathRect[0].set("width", str(width))
[all...]
H A Dempty_page.py17 width = 300
22 width = 148
27 width = 210
32 width = 297
37 width = 8.5
42 width, height = height, width
46 root.set("width", str(width) + units)
48 root.set("viewBox", "0 0 " + str(width)
[all...]
H A Dempty_dvd_cover.py10 self.OptionParser.add_option("-s", "--spine", action="store", type="string", dest="dvd_cover_spine", default="normal", help="Dvd spine width")
30 width = 259.0 # Before adding spine width or bleed
36 width += spine
37 width += 2.0 * bleed
42 self.root.set("width", str(width) + 'mm')
44 self.root.set("viewBox", "0 0 " + str(width) + " " + str(height) )
53 namedview.set(inkex.addNS('cx', 'inkscape'), str(self.uutounit( width, 'px' )/2.0 ) )
59 self.create_vertical_guideline("left spline", str(self.uutounit( (width
[all...]
H A Dempty_desktop.py13 self.OptionParser.add_option("-w", "--width", action="store", type="int", dest="desktop_width", default="1920", help="Custom width")
19 width = self.options.desktop_width
25 width = int(m.group(1))
31 root.set("width", str(width) + 'px')
33 root.set("viewBox", "0 0 " + str(width) + " " + str(height) )
41 namedview.set(inkex.addNS('cx', 'inkscape'), str(width/2.0) )
H A Dempty_video.py13 self.OptionParser.add_option("-w", "--width", action="store", type="int", dest="video_width", default="1920", help="Custom width")
19 width = self.options.video_width
25 width = int(m.group(1))
31 root.set("width", str(width) + 'px')
33 root.set("viewBox", "0 0 " + str(width) + " " + str(height) )
41 namedview.set(inkex.addNS('cx', 'inkscape'), str(width/2.0) )
H A Dempty_business_card.py19 width = m.group(1)
26 root.set("width", width + width_unit)
28 root.set("viewBox", "0 0 " + width + " " + height )
36 width_int = int(self.uutounit(float(width), 'px'))
/inkscape/src/ui/widget/
H A Dcolor-preview.cpp44 ColorPreview::get_preferred_height_for_width_vfunc(int /* width */, int& minimum_height, int& natural_height) const
64 req->width = SPCP_DEFAULT_WIDTH;
77 event->area.width, event->area.height);
104 warea.width = allocation.get_width();
109 w2 = warea.width / 2;
113 carea.width = w2;
118 cr->rectangle(carea.x, carea.y, carea.width, carea.height);
130 carea.width = warea.width - w2;
133 cr->rectangle(carea.x, carea.y, carea.width, care
141 toPixbuf(int width, int height) argument
[all...]
H A Dcolor-preview.h31 GdkPixbuf* toPixbuf (int width, int height);
38 virtual void get_preferred_height_for_width_vfunc(int width, int& minimum_height, int& natural_height) const;
H A Dhighlight-picker.cpp74 int* width,
77 Gtk::CellRendererPixbuf::get_size_vfunc( widget, cell_area, x_offset, y_offset, width, height );
79 if ( width ) {
80 *width = 10;//+= (*width) >> 1;
111 carea.width = 10;
116 cairo_rectangle(ct, carea.x, carea.y, carea.width, carea.height / 2);
124 cairo_rectangle(ct, carea.x, carea.y + carea.height / 2, carea.width, carea.height / 2);
128 cairo_rectangle(ct, carea.x, carea.y, carea.width, carea.height);
70 get_size_vfunc(Gtk::Widget& widget, const Gdk::Rectangle* cell_area, int* x_offset, int* y_offset, int* width, int* height ) const argument
/inkscape/src/trace/
H A Dimagemap.h64 int width; member in struct:GrayMap_def
87 GrayMap *GrayMapCreate(int width, int height);
152 int width; member in struct:PackedPixelMap_def
178 PackedPixelMap *PackedPixelMapCreate(int width, int height);
248 int width; member in struct:RgbMap_def
273 RgbMap *RgbMapCreate(int width, int height);
336 int width; member in struct:IndexedMap_def
371 IndexedMap *IndexedMapCreate(int width, int height);
H A Dimagemap-gdk.cpp15 int width = gdk_pixbuf_get_width(buf); local
21 GrayMap *grayMap = GrayMapCreate(width, height);
31 for (x=0 ; x<width ; x++)
52 malloc(sizeof(guchar) * grayMap->width * grayMap->height * 3);
57 int rowstride = grayMap->width * 3;
60 0, 8, grayMap->width, grayMap->height,
69 for (x=0 ; x<grayMap->width ; x++)
92 int width = gdk_pixbuf_get_width(buf); local
98 PackedPixelMap *ppMap = PackedPixelMapCreate(width, height);
108 for (x=0 ; x<width ;
135 int width = gdk_pixbuf_get_width(buf); local
[all...]
H A Dimagemap.cpp36 fprintf(f, "P6 %d %d 255\n", me->width, me->height);
40 for (int x=0 ; x<me->width ; x++)
63 GrayMap *GrayMapCreate(int width, int height) argument
77 me->width = width;
80 malloc(sizeof(unsigned long) * width * height);
99 row += width;
146 fprintf(f, "P6 %d %d 255\n", me->width, me->height);
150 for (int x=0 ; x<me->width ; x++)
177 PackedPixelMap *PackedPixelMapCreate(int width, in argument
286 RgbMapCreate(int width, int height) argument
396 IndexedMapCreate(int width, int height) argument
[all...]
H A Dfilterset.cpp42 int width = me->width; local
45 int lastX = width-3;
49 GrayMap *newGm = GrayMapCreate(width, height);
55 for (int x = 0 ; x<width ; x++)
92 int width = me->width; local
95 int lastX = width-3;
99 RgbMap *newGm = RgbMapCreate(width, height);
105 for (int x = 0 ; x<width ;
172 int width = gm->width; local
[all...]
/inkscape/src/livarot/
H A DPathStroke.cpp41 void Path::Stroke(Shape *dest, bool doClose, double width, JoinType join, argument
73 DoStroke(lastM, lastP - lastM, dest, true, width, join, butt, miter, true);
75 DoStroke(lastM, lastP - lastM, dest, doClose, width, join, butt, miter, true);
83 DoButt(dest, width, butt, pos, dir, last[RIGHT], last[LEFT]);
86 DoButt(dest, width, butt, pos, dir, end[LEFT], end[RIGHT]);
94 void Path::DoStroke(int off, int N, Shape *dest, bool doClose, double width, JoinType join, argument
149 DoButt(dest, width, butt, curP, dir, last[RIGHT], last[LEFT]);
152 DoButt(dest, width, butt, curP, dir, end[LEFT], end[RIGHT]);
170 DoJoin(dest, width, join, curP, prevD, nextD, miter, prevLe, nextLe, start, last);
173 DoButt(dest, width, but
242 DoButt(Shape *dest, double width, ButtType butt, Geom::Point pos, Geom::Point dir, int &leftNo, int &rightNo) argument
289 DoJoin(Shape *dest, double width, JoinType join, Geom::Point pos, Geom::Point prev, Geom::Point next, double miter, double , double , int *stNo, int *enNo) argument
413 DoLeftJoin(Shape * dest, double width, JoinType join, Geom::Point pos, Geom::Point prev, Geom::Point next, double miter, double , double , int &leftStNo, int &leftEnNo,int pathID,int pieceID,double tID) argument
557 DoRightJoin(Shape * dest, double width, JoinType join, Geom::Point pos, Geom::Point prev, Geom::Point next, double miter, double , double , int &rightStNo, int &rightEnNo,int pathID,int pieceID,double tID) argument
705 RecRound(Shape *dest, int sNo, int eNo, Geom::Point const &iS, Geom::Point const &iE, Geom::Point const &nS, Geom::Point const &nE, Geom::Point &origine, float width) argument
[all...]
H A DPathOutline.cpp24 void Path::Outline(Path *dest, double width, JoinType join, ButtType butt, double miter) argument
150 dest, calls, 0.0025 * width * width, width,
153 dest, calls, 0.0025 * width * width,
154 width, join, butt, miter, true, false, endPos, endButt);
157 dest, calls, 0.0025 * width * width, width,
201 OutsideOutline(Path * dest, double width, JoinType join, ButtType butt, double miter) argument
226 InsideOutline(Path * dest, double width, JoinType join, ButtType butt, double miter) argument
341 SubContractOutline(int off, int num_pd, Path *dest, outline_callbacks & calls, double tolerance, double width, JoinType join, ButtType , double miter, bool closeIfNeeded, bool skipMoveto, Geom::Point &lastP, Geom::Point &lastT) argument
1170 OutlineJoin(Path * dest, Geom::Point pos, Geom::Point stNor, Geom::Point enNor, double width, JoinType join, double miter, int nType) argument
1281 RecStdCubicTo(outline_callback_data * data, double tol, double width, int lev) argument
1385 StdCubicTo(Path::outline_callback_data * data, double tol, double width) argument
1392 StdBezierTo(Path::outline_callback_data * data, double tol, double width) argument
1411 RecStdArcTo(outline_callback_data * data, double tol, double width, int lev) argument
1508 StdArcTo(Path::outline_callback_data * data, double tol, double width) argument
[all...]
/inkscape/src/
H A Dviewbox.cpp49 double width = g_ascii_strtod (eptr, &eptr); local
61 if ((width > 0) && (height > 0)) {
63 this->viewBox = Geom::Rect::from_xywh(x, y, width, height);
76 // double x, y, width, height;
77 // ss >> x >> y >> width >> height;
171 double scale_x = in.width() / this->viewBox.width();
187 double width = this->viewBox.width() * scale_uniform; local
195 x = 0.5 * (in.width()
[all...]
H A Dsp-root.cpp45 this->width.unset(SVGLength::PERCENT, 1.0, 1.0);
67 this->readAttr("width");
131 if (!this->width.read(value) || !(this->width.computed > 0.0)) {
132 this->width.unset(SVGLength::PERCENT, 1.0, 1.0);
217 * x, y, width, and height apply to positioning the SVG element inside a parent.
219 * If width, height not set, width = 100%, height = 100% (as always).
220 * If width and height are in percent, they are percent of viewBox width/heigh
[all...]
H A Dsvg-view-widget.cpp40 static void sp_svg_view_widget_view_resized (SPViewWidget *vw, Inkscape::UI::View::View *view, gdouble width, gdouble height);
156 req->width=width_min;
168 gdouble width, height; local
171 width = (v->doc())->getWidth().value("px") * svgv->_hscale;
174 if (width <= vw->maxwidth) {
176 req->width = (gint) (width + 0.5);
179 req->width = (gint) (vw->maxwidth + 0.5);
197 *minimal_width = *natural_width = requisition.width;
221 (gdouble) allocation->width
228 sp_svg_view_widget_view_resized(SPViewWidget *vw, Inkscape::UI::View::View * , gdouble width, gdouble height) argument
251 setResize(bool resize, gdouble width, gdouble height) argument
[all...]
/inkscape/src/helper/
H A Dgeom-pathstroke.h38 * Joins may behave oddly if the width is negative.
41 * @param[in] width Stroke width.
50 Geom::PathVector outline(Geom::Path const& input, double width, double miter, LineJoinType join = JOIN_BEVEL, LineCapType cap = BUTT_FLAT);
53 * Offset the input path by @a width.
54 * Joins may behave oddly if the width is negative.
57 * @param[in] width Amount to offset.
63 Geom::Path half_outline(Geom::Path const& input, double width, double miter, LineJoinType join = JOIN_BEVEL);
67 * Joins may behave oddly if the width is negative.
76 * @param[in] width
[all...]
H A Dpixbuf-ops.h21 unsigned int width, unsigned int height, double xdpi, double ydpi, unsigned long bgcolor, double quality, GSList *items_only = NULL);
25 unsigned width, unsigned height, double xdpi, double ydpi,
H A Dpng-write.h35 unsigned long int width, unsigned long int height, double xdpi, double ydpi,
41 unsigned long int width, unsigned long int height, double xdpi, double ydpi,
/inkscape/src/widgets/
H A Deek-preview.cpp129 gint width = 0; local
137 gboolean worked = gtk_icon_size_lookup( sizes[i], &width, &height );
139 if ( width < smallest ) {
140 smallest = width;
142 if ( width > largest ) {
143 largest = width;
154 sizeThings[i].width = val;
163 gint width = 0; local
179 width = sizeThings[priv->size].width;
[all...]
/inkscape/src/libgdl/
H A Dgdl-dock-bar.c1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
472 requisition->width = 0;
506 requisition->width = MAX (requisition->width, child_requisition.width);
520 requisition->width += border_width * 2;
594 child_allocation.width = MAX (1, (gint) allocation->width - (gint) border_width * 2);
735 gint width; local
739 requisition->width
802 gint width; local
[all...]

Completed in 86 milliseconds

1234567891011>>