Searched refs:rect (Results 1 - 25 of 118) sorted by relevance

12345

/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...]
H A D2geom.h43 #include <2geom/rect.h>
H A Dint-rect.h36 #include <2geom/generic-rect.h>
H A Drect.h33 * Authors of original rect class:
46 #include <2geom/int-rect.h>
211 Coord distanceSq(Point const &p, Rect const &rect);
212 Coord distance(Point const &p, Rect const &rect);
214 Coord distanceSq(Point const &p, OptRect const &rect);
216 Coord distance(Point const &p, OptRect const &rect);
/inkscape/share/extensions/
H A DjessyInk_view.py69 rect = None
72 if rect == None:
73 rect = node
78 if rect == None:
84 for node in rect.xpath("ancestor::svg:g[@inkscape:groupmode='layer']/descendant::*[@jessyink:view]", namespaces=inkex.NSS):
91 rect.set("{" + inkex.NSS["jessyink"] + "}view","name:view;order:" + self.options.viewOrder + ";length:" + str(int(self.options.viewDuration * 1000)))
94 if rect.attrib.has_key("{" + inkex.NSS["jessyink"] + "}effectIn"):
95 del rect.attrib["{" + inkex.NSS["jessyink"] + "}effectIn"]
97 if rect.attrib.has_key("{" + inkex.NSS["jessyink"] + "}effectOut"):
98 del rect
[all...]
H A Dwebslicer_create_rect.py107 rect = inkex.etree.SubElement(layer, 'rect')
111 rect.set('id', self.options.name)
112 rect.set('fill', 'red')
113 rect.set('opacity', '0.5')
114 rect.set('x', str(-scale*100))
115 rect.set('y', str(-scale*100))
116 rect.set('width', str(scale*200))
117 rect.set('height', str(scale*200))
118 desc = inkex.etree.SubElement(rect, 'des
[all...]
H A DjessyInk_core_mouseHandler_zoomControl.js140 * @param rect The rectangle to project.
144 obj.projectRect = function (rect, projectionMatrix)
147 pntUL.x = rect.x;
148 pntUL.y = rect.y;
152 pntLL.x = rect.x;
153 pntLL.y = rect.y + rect.height;
157 pntUR.x = rect.x + rect.width;
158 pntUR.y = rect
[all...]
H A Dnicechart.py373 shadow = inkex.etree.Element(inkex.addNS("rect", "svg"))
390 rect = inkex.etree.Element(inkex.addNS('rect', 'svg'))
394 rect.set('x', str(width/2 + offset))
395 rect.set('y', str(height/2 - int(value)))
396 rect.set("width", str(bar_width))
397 rect.set("height", str(int(value)))
399 rect.set('y', str(width/2 + offset))
400 rect.set('x', str(height/2))
401 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/display/
H A Dguideline.cpp86 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top());
109 cairo_move_to(buf->ct, position + 0.5, buf->rect.top() + 0.5);
110 cairo_line_to(buf->ct, position + 0.5, buf->rect.bottom() - 0.5);
114 cairo_move_to(buf->ct, buf->rect.left() + 0.5, position + 0.5);
115 cairo_line_to(buf->ct, buf->rect.right() - 0.5, position + 0.5);
121 //try to intersect with left vertical of rect
122 double y_intersect_left = (buf->rect.left() - point_on_line_dt[Geom::X]) * parallel_to_line[Geom::Y] / parallel_to_line[Geom::X] + point_on_line_dt[Geom::Y];
123 if ( (y_intersect_left >= buf->rect.top()) && (y_intersect_left <= buf->rect
[all...]
H A Dcanvas-axonomgrid.cpp73 if ((x < buf->rect.left()) || (x >= buf->rect.right()))
534 cairo_translate(buf->ct, -buf->rect.left(), -buf->rect.top());
539 // sc = screencoordinates ( for example "buf->rect.left()" is in screencoordinates )
545 buf_tl_gc[Geom::X] = buf->rect.left() - ow[Geom::X];
546 buf_tl_gc[Geom::Y] = buf->rect.top() - ow[Geom::Y];
547 buf_br_gc[Geom::X] = buf->rect.right() - ow[Geom::X];
548 buf_br_gc[Geom::Y] = buf->rect.bottom() - ow[Geom::Y];
554 gdouble const xstart_y_sc = ( xintercept_y_bc - floor(xintercept_y_bc/lyw)*lyw ) + buf->rect
[all...]
H A Dsodipodi-ctrlrect.h22 #include <2geom/rect.h>
23 #include <2geom/int-rect.h>
H A Dsp-ctrlcurve.cpp89 cairo_move_to (buf->ct, p0[Geom::X] - buf->rect.left(), p0[Geom::Y] - buf->rect.top());
91 p1[Geom::X] - buf->rect.left(), p1[Geom::Y] - buf->rect.top(),
92 p2[Geom::X] - buf->rect.left(), p2[Geom::Y] - buf->rect.top(),
93 p3[Geom::X] - buf->rect.left(), p3[Geom::Y] - buf->rect.top() );
H A Dsp-ctrlline.cpp91 cairo_move_to(buf->ct, s[Geom::X] - buf->rect.left(), s[Geom::Y] - buf->rect.top());
92 cairo_line_to(buf->ct, e[Geom::X] - buf->rect.left(), e[Geom::Y] - buf->rect.top());
101 cairo_move_to(buf->ct, s[Geom::X] - buf->rect.left(), s[Geom::Y] - buf->rect.top());
102 cairo_line_to(buf->ct, e[Geom::X] - buf->rect.left(), e[Geom::Y] - buf->rect.top());
H A Dcanvas-grid.cpp868 if ((y < buf->rect.top()) || (y >= buf->rect.bottom()))
880 if ((x < buf->rect.left()) || (x >= buf->rect.right()))
892 if ( (y < buf->rect.top()) || (y >= buf->rect.bottom())
893 || (x < buf->rect.left()) || (x >= buf->rect.right()) )
904 gdouble const sxg = floor ((buf->rect.left() - ow[Geom::X]) / sw[Geom::X]) * sw[Geom::X] + ow[Geom::X];
906 gdouble const syg = floor ((buf->rect
[all...]
/inkscape/src/ui/tools/
H A Drect-tool.cpp25 #include "sp-rect.h"
36 #include "pixmaps/cursor-rect.xpm"
37 #include "ui/tools/rect-tool.h"
57 const std::string RectTool::prefsPath = "/tools/shapes/rect";
61 , rect(NULL)
85 if (this->rect) {
245 // we've been dragging, finish the rect
277 _("<b>Ctrl</b>: make square or integer-ratio rect, lock a rounded corner circular"),
294 desktop->setToolboxFocusTo ("altx-rect");
325 // we've been dragging, finish the rect
[all...]
H A Drect-tool.h23 #include "sp-rect.h"
45 SPRect *rect; member in class:Inkscape::UI::Tools::RectTool
/inkscape/src/libuemf/
H A Duwmf_print.h32 void rect16_ltrb_print(U_RECT16 rect);
33 void rect16_brtl_print(U_RECT16 rect);
/inkscape/src/
H A Dviewbox.h18 #include <2geom/rect.h>
/inkscape/share/extensions/Barcode/
H A DBase.py120 rect = etree.SubElement(barcode, '{%s}rect' % SVG_URI)
121 rect.set('x', str(bar_offset))
122 rect.set('y', str(style['top']))
124 rect.set('y', str(style['top'] + self.font_size))
125 rect.set('id', "%s_bar%d" % (name, bar_id))
126 rect.set('width', str(width))
127 rect.set('height', str(style['height']))
/inkscape/src/libgdl/
H A Dgdl-dock-paned.c431 my_request.rect.x = bw;
432 my_request.rect.y = bw;
433 my_request.rect.width = alloc.width - 2*bw;
434 my_request.rect.height = alloc.height - 2*bw;
441 my_request.rect.width *= SPLIT_RATIO;
445 my_request.rect.x += my_request.rect.width * (1 - SPLIT_RATIO);
446 my_request.rect.width *= SPLIT_RATIO;
450 my_request.rect.height *= SPLIT_RATIO;
454 my_request.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/tool/
H A Dselector.h16 #include <2geom/rect.h>
/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...]

Completed in 55 milliseconds

12345