Searched defs:rect (Results 1 - 25 of 26) sorted by relevance

12

/inkscape/src/ui/tools/
H A Drect-tool.h23 #include "sp-rect.h"
45 SPRect *rect; member in class:Inkscape::UI::Tools::RectTool
/inkscape/src/2geom/
H A Drect.cpp32 #include <2geom/rect.h>
130 Coord distanceSq(Point const &p, Rect const &rect) argument
133 if ( p[X] < rect.left() ) {
134 dx = p[X] - rect.left();
135 } else if ( p[X] > rect.right() ) {
136 dx = rect.right() - p[X];
138 if (p[Y] < rect.top() ) {
139 dy = rect.top() - p[Y];
140 } else if ( p[Y] > rect.bottom() ) {
141 dy = p[Y] - rect
148 distance(Point const &p, Rect const &rect) argument
165 distanceSq(Point const &p, OptRect const &rect) argument
170 distance(Point const &p, OptRect const &rect) argument
[all...]
/inkscape/share/extensions/ink2canvas/
H A Dcanvas.py148 def rect(self, x, y, w, h, rx = 0, ry = 0): member in class:Canvas
161 self.write("ctx.rect(%f, %f, %f, %f);" % (x, y, w, h))
/inkscape/src/display/
H A Dsp-canvas.h31 #include <2geom/rect.h>
53 Geom::IntRect rect; member in struct:SPCanvasBuf
121 * Paint the given rect, recursively subdividing the region until it is the size of a single
H A Dcurve.cpp42 SPCurve::new_from_rect(Geom::Rect const &rect, bool all_four_sides) argument
46 Geom::Point p = rect.corner(0);
50 c->lineto(rect.corner(i));
57 c->lineto(rect.corner(0));
/inkscape/src/libgdl/
H A Dgdl-dock-object.h77 GdkRectangle rect; member in struct:_GdlDockRequest
H A Dgdl-dock-tablabel.c359 GdkRectangle dest, rect; local
370 rect.x = widget_allocation.x + border_width;
371 rect.y = widget_allocation.y + border_width;
372 rect.width = tablabel->drag_handle_size * HANDLE_RATIO;
373 rect.height = widget_allocation.height - 2*border_width;
375 if (gdk_rectangle_intersect (&event->area, &rect, &dest)) {
380 rect.x, rect.y, rect.width, rect
[all...]
H A Dgdl-dock-master.c553 my_request.rect.width = req.width;
554 my_request.rect.height = req.height;
556 my_request.rect.x = root_x - GDL_DOCK_ITEM (request->applicant)->dragoff_x;
557 my_request.rect.y = root_y - GDL_DOCK_ITEM (request->applicant)->dragoff_y;
564 g_value_set_boxed (&my_request.extra, &my_request.rect);
575 if (!(my_request.rect.x == request->rect.x &&
576 my_request.rect.y == request->rect.y &&
577 my_request.rect
613 GdkRectangle *rect; local
[all...]
H A Dgdl-dock.c819 my_request.rect.x = alloc.x + bw;
820 my_request.rect.y = alloc.y + bw;
821 my_request.rect.width = alloc.width - 2*bw;
822 my_request.rect.height = alloc.height - 2*bw;
835 my_request.rect.width *= SPLIT_RATIO;
838 my_request.rect.x += my_request.rect.width * (1 - SPLIT_RATIO);
839 my_request.rect.width *= SPLIT_RATIO;
842 my_request.rect.height *= SPLIT_RATIO;
845 my_request.rect
882 GdkRectangle *rect; local
974 GdkRectangle *rect; local
1323 gdl_dock_xor_rect(GdlDock *dock, GdkRectangle *rect) argument
[all...]
/inkscape/src/ui/dialog/
H A Dspellcheck.cpp590 // draw rect
593 if (points.size() >= 4) { // we may not have a single quad if this is a clipped part of text on path; in that case skip drawing the rect
615 SPCanvasItem *rect = sp_canvas_bpath_new(desktop->getSketch(), NULL); local
616 sp_canvas_bpath_set_stroke(SP_CANVAS_BPATH(rect), 0xff0000ff, 3.0, SP_STROKE_LINEJOIN_MITER, SP_STROKE_LINECAP_BUTT);
617 sp_canvas_bpath_set_fill(SP_CANVAS_BPATH(rect), 0, SP_WIND_RULE_NONZERO);
624 sp_canvas_bpath_set_bpath(SP_CANVAS_BPATH(rect), curve);
625 sp_canvas_item_show(rect);
626 _rects = g_slist_prepend(_rects, rect);
721 _rects = _rects->next; // pop latest-prepended rect
H A Dlayers.cpp675 Gdk::Rectangle rect; local
676 _tree.get_background_area (target_path, *target_column, rect);
677 int cell_height = rect.get_height();
H A Dtags.cpp753 Gdk::Rectangle rect; local
754 _tree.get_background_area (target_path, *target_column, rect);
755 int cell_height = rect.get_height();
H A Dobjects.cpp1006 Gdk::Rectangle rect; local
1007 _tree.get_background_area (target_path, *target_column, rect);
1008 int cell_height = rect.get_height();
/inkscape/src/
H A Dsp-image.cpp25 #include <2geom/rect.h>
646 to another. Therefore we will create some snappoints at the corner, similar to a rect. If
647 the image is rotated, then the snappoints will rotate with it. Again, just like a rect.
724 Geom::OptRect rect = image->bbox(Geom::identity(), SPItem::VISUAL_BBOX); local
725 SPCurve *c = SPCurve::new_from_rect(*rect, true);
H A Dobject-snapper.cpp19 #include <2geom/rect.h>
454 Geom::OptRect rect = root_item->bounds(bbox_type, i2doc); local
455 if (rect) {
456 Geom::PathVector *path = _getPathvFromRect(*rect);
457 rect = root_item->desktopBounds(bbox_type);
458 _paths_to_snap_to->push_back(SnapCandidatePath(path, SNAPTARGET_BBOX_EDGE, rect));
757 Geom::PathVector* Inkscape::ObjectSnapper::_getPathvFromRect(Geom::Rect const rect) const
759 SPCurve const *border_curve = SPCurve::new_from_rect(rect, true);
H A Dsp-flowtext.cpp27 #include "sp-rect.h"
630 Inkscape::XML::Node *rect_repr = xml_doc->createElement("svg:rect"); // FIXME: use path!!! after rects are converted to use path
633 SPRect *rect = dynamic_cast<SPRect *>(doc->getObjectByRepr(rect_repr)); local
634 g_assert(rect != NULL);
647 rect->setPosition(x0, y0, w, h);
648 rect->updateRepr();
695 SPRect *rect = dynamic_cast<SPRect *>(region->firstChild()); local
696 if (rect) {
697 rect->set_i2d_affine(xform * rect
[all...]
H A Ddocument.cpp784 * this function fits the canvas to that rect by resizing the canvas
786 * \param rect fit document size to this
787 * \param with_margins add margins to rect, by taking margins from this
791 void SPDocument::fitToRect(Geom::Rect const &rect, bool with_margins) argument
793 double const w = rect.width();
794 double const h = rect.height();
822 rect.min() - Geom::Point(margin_left, margin_bottom),
823 rect.max() + Geom::Point(margin_right, margin_top));
H A Dgradient-drag.cpp1783 * Select all stops/draggers that fall within the rect.
2288 Geom::OptRect rect = item->desktopVisualBounds(); local
2289 if (rect) {
2291 hor_levels.push_back(rect->min()[Geom::Y]);
2292 hor_levels.push_back(rect->max()[Geom::Y]);
2293 hor_levels.push_back(rect->midpoint()[Geom::Y]);
2294 vert_levels.push_back(rect->min()[Geom::X]);
2295 vert_levels.push_back(rect->max()[Geom::X]);
2296 vert_levels.push_back(rect->midpoint()[Geom::X]);
H A Dsp-item.cpp35 #include "sp-rect.h"
56 #include <2geom/rect.h>
1351 SPRect *rect = dynamic_cast<SPRect *>(item); local
1352 if (rect) {
1353 rect->compensateRxRy(advertized_transform);
1457 // recursively compensate rx/ry of a rect if requested
H A Dselection-chemistry.cpp52 #include "sp-rect.h"
3360 Inkscape::XML::Node *rect = xml_doc->createElement("svg:rect"); local
3362 rect->setAttribute("style", style_str);
3368 sp_repr_set_svg_double(rect, "width", max[Geom::X] - min[Geom::X]);
3369 sp_repr_set_svg_double(rect, "height", max[Geom::Y] - min[Geom::Y]);
3370 sp_repr_set_svg_double(rect, "x", min[Geom::X]);
3371 sp_repr_set_svg_double(rect, "y", min[Geom::Y]);
3374 parent->getRepr()->appendChild(rect);
3375 rect
[all...]
/inkscape/src/ui/
H A Dobject-edit.cpp21 #include "sp-rect.h"
138 SPRect *rect = dynamic_cast<SPRect *>(item); local
139 g_assert(rect != NULL);
141 return Geom::Point(rect->x.computed + rect->width.computed - rect->rx.computed, rect->y.computed);
147 SPRect *rect = dynamic_cast<SPRect *>(item); local
148 g_assert(rect != NULL);
153 Geom::Point const s = snap_knot_position_constrained(p, Inkscape::Snapper::SnapConstraint(Geom::Point(rect
170 SPRect *rect = dynamic_cast<SPRect *>(item); local
187 SPRect *rect = dynamic_cast<SPRect *>(item); local
196 SPRect *rect = dynamic_cast<SPRect *>(item); local
228 SPRect *rect = dynamic_cast<SPRect *>(item); local
243 sp_rect_clamp_radii(SPRect *rect) argument
257 SPRect *rect = dynamic_cast<SPRect *>(item); local
266 SPRect *rect = dynamic_cast<SPRect *>(item); local
347 SPRect *rect = dynamic_cast<SPRect *>(item); local
356 SPRect *rect = dynamic_cast<SPRect *>(item); local
1416 SPRect const *rect = dynamic_cast<SPRect const *>(item); local
[all...]
/inkscape/src/widgets/
H A Druler.cpp1049 GdkRectangle rect; local
1055 rect = sp_ruler_get_pos_rect (ruler, priv->position);
1057 xdiff = rect.x - priv->last_pos_rect.x;
1058 ydiff = rect.y - priv->last_pos_rect.y;
1419 GdkRectangle rect = { 0, 0, 0, 0 }; local
1422 return rect;
1445 rect.width = height / 2 + 2;
1446 rect.width |= 1; /* make sure it's odd */
1447 rect.height = rect
1500 const GdkRectangle rect = sp_ruler_get_pos_rect (ruler, priv->position); local
[all...]
/inkscape/src/libuemf/
H A Duemf_endian.c75 \brief Convert rect and rectl objects from Upper Left and Lower Right corner points.
76 \param rect U_RECTL object
80 PU_RECTL rect,
83 U_swap4(rect,4*count);
641 // Functions that take a rect and a pair of points, starting with U_EMRARC_swap
79 rectl_swap( PU_RECTL rect, unsigned int count ) argument
H A Duemf.c483 \brief Derive from bounding rect, start and end radials, for arc, chord, or pie, the center, start, and end points, and the bounding rectangle.
492 \param start Start coordinates (point on the ellipse defined by rect)
493 \param end End coordinates (point on the ellipse defined by rect)
589 \param start Start coordinates (point on the ellipse defined by rect)
590 \param end End coordinates (point on the ellipse defined by rect)
1597 \brief Set rect and rectl objects from Upper Left and Lower Right corner points.
1614 \brief Set rect and rectl objects from Upper Left and Lower Right corner points.
1690 U_RECT rect={INT32_MAX, INT32_MAX, INT32_MIN, INT32_MIN }; local
1694 if ( pts->x < rect.left ) rect
1720 U_RECT rect={INT16_MAX, INT16_MAX, INT16_MIN, INT16_MIN }; local
[all...]
/inkscape/src/extension/internal/pdfinput/
H A Dsvg-builder.cpp1741 Inkscape::XML::Node *rect = _xml_doc->createElement("svg:rect"); local
1742 sp_repr_set_svg_double(rect, "x", 0.0);
1743 sp_repr_set_svg_double(rect, "y", 0.0);
1744 sp_repr_set_svg_double(rect, "width", 1.0);
1745 sp_repr_set_svg_double(rect, "height", 1.0);
1746 svgSetTransform(rect, 1.0, 0.0, 0.0, -1.0, 0.0, 1.0);
1750 sp_repr_css_change(rect, css, "style");
1765 rect->setAttribute("mask", mask_url);
1771 _container->appendChild(rect);
[all...]

Completed in 161 milliseconds

12