Searched refs:canvas (Results 1 - 25 of 76) sorted by relevance

1234

/inkscape/src/display/
H A Dsp-canvas.cpp31 #include "display/sp-canvas.h"
32 #include "display/sp-canvas-group.h"
53 // The canvas stores a 2D array of ints, each representing a TILE_SIZExTILE_SIZE pixels tile.
69 * Adds an item to a canvas group.
74 * Removes an item from a canvas group.
95 * Update handler for canvas groups.
100 * Point handler for canvas groups.
105 * Renders all visible canvas group items in buf rectangle.
131 GdkWindow *getWindow(SPCanvas *canvas) argument
133 return gtk_widget_get_window(reinterpret_cast<GtkWidget *>(canvas));
939 sp_canvas_init(SPCanvas *canvas) argument
996 SPCanvas *canvas = SP_CANVAS(object); local
1039 SPCanvas *canvas = SP_CANVAS(g_object_new(SP_TYPE_CANVAS, NULL)); local
1106 SPCanvas *canvas = SP_CANVAS (widget); local
1146 SPCanvas *canvas = SP_CANVAS (widget); local
1436 SPCanvas *canvas = SP_CANVAS (widget); local
1519 SPCanvas *canvas = SP_CANVAS (widget); local
1791 SPCanvas *canvas = SP_CANVAS(widget); local
1844 SPCanvas *canvas = SP_CANVAS (widget); local
1858 SPCanvas *canvas = SP_CANVAS (widget); local
1869 SPCanvas *canvas = SP_CANVAS(widget); local
1940 SPCanvas *canvas = SP_CANVAS (data); local
2088 sp_canvas_window_to_world(SPCanvas const *canvas, double winx, double winy, double *worldx, double *worldy) argument
2100 sp_canvas_world_to_window(SPCanvas const *canvas, double worldx, double worldy, double *winx, double *winy) argument
2112 sp_canvas_window_to_world(SPCanvas const *canvas, Geom::Point const win) argument
2123 sp_canvas_world_to_window(SPCanvas const *canvas, Geom::Point const world) argument
2134 sp_canvas_world_pt_inside_window(SPCanvas const *canvas, Geom::Point const &world) argument
[all...]
H A Dsodipodi-ctrlrect.cpp18 #include "sp-canvas-util.h"
20 #include "display/sp-canvas.h"
182 canvas->requestRedraw(area_old[X].min() - 1, area_old[Y].min() - 1,
186 canvas->requestRedraw(area[X].min() - 1, area[Y].min() - 1,
194 canvas->requestRedraw(area_old[X].min() - 1, area_old[Y].min() - 1,
198 canvas->requestRedraw(area[X].min() - 1, area[Y].min() - 1,
202 canvas->requestRedraw(MIN(area_old[X].min(),area[X].min()) - 1, area[Y].min() - 1,
206 canvas->requestRedraw(MIN(area_old[X].max(),area[X].max()) - 1, area[Y].min() - 1,
214 canvas->requestRedraw(area_old[X].min() - 1, area_old[Y].min() - 1,
218 canvas
[all...]
H A Dsp-canvas.h49 * Structure used when rendering canvas items.
73 /// Scrolls canvas to specific position (cx and cy are measured in screen pixels).
76 /// Synchronously updates the canvas if necessary.
79 /// Queues a redraw of rectangular canvas area.
93 /// Returns new canvas as widget.
97 /// Emits an event for an item in the canvas, be it the current
101 /// Re-picks the current item in the canvas, based on the event's
106 /// Allocates a new tile array for the canvas, copying overlapping tiles from the old array
115 /// Invokes update, paint, and repick on canvas.
128 /// Draws a specific rectangular part of the canvas
[all...]
H A Dsp-canvas-util.cpp16 #include "sp-canvas-util.h"
17 #include "sp-canvas-item.h"
18 #include "sp-canvas.h"
22 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
27 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
H A Dsp-ctrlquadr.cpp17 #include "sp-canvas-item.h"
18 #include "sp-canvas.h"
19 #include "sp-canvas-util.h"
116 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
136 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
149 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
H A Dcanvas-bpath.cpp19 #include "display/sp-canvas-group.h"
20 #include "display/sp-canvas-util.h"
21 #include "display/canvas-bpath.h"
25 #include "display/sp-canvas.h"
74 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
99 item->canvas->requestRedraw((int)item->x1, (int)item->y1, (int)item->x2, (int)item->y2);
157 Geom::Rect viewbox = item->canvas->getViewbox();
H A Dsp-ctrlline.cpp26 #include "display/sp-canvas-util.h"
29 #include "display/sp-canvas.h"
111 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
133 item->canvas->requestRedraw(item->x1, item->y1, item->x2, item->y2);
143 canvas->requestRedraw(x1, y1, x2, y2);
/inkscape/share/extensions/
H A Dink2canvas.py21 from ink2canvas.canvas import Canvas
30 self.canvas = None
34 sys.stdout.write(self.canvas.output())
72 elem = getattr(svg, class_name)(tag, node, self.canvas)
85 self.canvas = Canvas(self, width, height)
/inkscape/src/ui/tool/
H A Devent-utils.cpp14 #include "display/sp-canvas.h"
56 unsigned combine_motion_events(SPCanvas *canvas, GdkEventMotion &event, gint mask) argument
58 if (canvas == NULL) {
63 event.x -= canvas->_x0;
64 event.y -= canvas->_y0;
95 event.x += canvas->_x0;
96 event.y += canvas->_y0;
H A Dcontrol-point.cpp15 #include "display/sp-canvas.h"
282 Ca = _desktop->canvas;
302 _desktop->canvas->forceFullRedrawAfterInterruptions(5);
344 _desktop->canvas->endForcedFullRedraws();
372 _desktop->canvas->endForcedFullRedraws();
420 _desktop->canvas->endForcedFullRedraws();
538 _desktop->canvas->forceFullRedrawAfterInterruptions(5);
/inkscape/src/
H A Dsvg-view-widget.cpp17 #include "display/sp-canvas.h"
18 #include "display/sp-canvas-group.h"
19 #include "display/canvas-arena.h"
91 vw->canvas = SPCanvas::createAA();
95 GtkStyleContext *style_context = gtk_widget_get_style_context(GTK_WIDGET(vw->canvas));
108 GtkStyle *style = gtk_style_copy (gtk_widget_get_style (vw->canvas));
110 gtk_widget_set_style (vw->canvas, style);
114 gtk_container_add (GTK_CONTAINER (vw->sw), vw->canvas);
116 gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (vw->sw), vw->canvas);
119 gtk_widget_show (vw->canvas);
[all...]
H A Dsvg-view-widget.h36 * An SPSVGSPViewWidget is an SVG view together with a canvas.
43 GtkWidget *canvas; member in struct:SPSVGSPViewWidget
H A Dsp-guide.h61 void hideSPGuide(SPCanvas *canvas);
65 void sensitize(SPCanvas *canvas, bool sensitive);
H A Dsp-guide.cpp26 #include "display/sp-canvas.h"
300 void SPGuide::hideSPGuide(SPCanvas *canvas) argument
302 g_assert(canvas != NULL);
303 g_assert(SP_IS_CANVAS(canvas));
305 if (canvas == SP_CANVAS_ITEM(*it)->canvas) {
325 void SPGuide::sensitize(SPCanvas *canvas, bool sensitive) argument
327 g_assert(canvas != NULL);
328 g_assert(SP_IS_CANVAS(canvas));
331 if (canvas
[all...]
H A Drubberband.cpp17 #include "display/sp-canvas.h"
18 #include "display/sp-canvas-item.h"
19 #include "display/canvas-bpath.h"
58 _desktop->canvas->forceFullRedrawAfterInterruptions(5);
72 _desktop->canvas->endForcedFullRedraws();
H A Dsvg-view.cpp17 #include "display/canvas-arena.h"
108 GdkWindow *window = gtk_widget_get_window (GTK_WIDGET(SP_CANVAS_ITEM(_drawing)->canvas));
119 GdkWindow *window = gtk_widget_get_window (GTK_WIDGET(SP_CANVAS_ITEM(_drawing)->canvas));
H A Ddesktop.cpp43 #include "display/canvas-arena.h"
44 #include "display/canvas-grid.h"
45 #include "display/canvas-temporary-item-list.h"
47 #include "display/gnome-canvas-acetate.h"
51 #include "display/sp-canvas-group.h"
52 #include "display/sp-canvas.h"
53 #include "display/sp-canvas-util.h"
98 canvas( NULL ),
166 canvas = aCanvas;
202 g_object_set_data (G_OBJECT (canvas), "SPDeskto
[all...]
/inkscape/src/widgets/
H A Dspinbutton-events.cpp54 // defocus spinbuttons by moving focus to the canvas, unless "stay" is on
59 GtkWidget *canvas = GTK_WIDGET(g_object_get_data(G_OBJECT(container), "dtw")); local
60 if (canvas) {
61 gtk_widget_grab_focus(GTK_WIDGET(canvas));
H A Dcalligraphy-toolbar.cpp431 _("The width of the calligraphic pen (relative to the visible canvas area)"),
433 GTK_WIDGET(desktop->canvas), holder, TRUE, "altx-calligraphy",
450 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
466 GTK_WIDGET(desktop->canvas), holder, TRUE, "calligraphy-angle",
484 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
501 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
517 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
535 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
552 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
H A Ddesktop-widget.cpp37 #include "display/sp-canvas.h"
38 #include "display/canvas-arena.h"
259 GdkWindow *window = gtk_widget_get_window(GTK_WIDGET(canvas));
319 * Callback for changes in size of the canvas table (i.e. the container for
320 * the canvas, the rulers etc).
566 dtw->canvas = SP_CANVAS(SPCanvas::createAA());
568 dtw->canvas->_enable_cms_display_adj = prefs->getBool("/options/displayprofile/enable");
570 gtk_widget_set_can_focus (GTK_WIDGET (dtw->canvas), TRUE);
572 sp_ruler_add_track_widget (SP_RULER(dtw->hruler), GTK_WIDGET(dtw->canvas));
573 sp_ruler_add_track_widget (SP_RULER(dtw->vruler), GTK_WIDGET(dtw->canvas));
[all...]
H A Dspiral-toolbar.cpp247 GTK_WIDGET(desktop->canvas), holder, TRUE, "altx-spiral",
261 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
275 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
H A Dspray-toolbar.cpp297 _("Width"), _("Width:"), _("The width of the spray area (relative to the visible canvas area)"),
299 GTK_WIDGET(desktop->canvas), holder, true, "altx-spray",
328 GTK_WIDGET(desktop->canvas), holder, true, "spray-mean",
344 GTK_WIDGET(desktop->canvas), holder, true, "spray-standard_deviation",
414 GTK_WIDGET(desktop->canvas), holder, true, "spray-population",
445 GTK_WIDGET(desktop->canvas), holder, true, "spray-rotation",
463 GTK_WIDGET(desktop->canvas), holder, true, "spray-scale",
611 GTK_WIDGET(desktop->canvas), holder, FALSE, NULL,
/inkscape/src/ui/dialog/
H A Ddialog.cpp258 default: { // pass keypress to the canvas
299 Gtk::Widget *canvas = Glib::wrap(GTK_WIDGET(desktop->canvas)); local
301 // make sure the canvas window is present before giving it focus
302 Gtk::Window *toplevel_window = dynamic_cast<Gtk::Window *>(canvas->get_toplevel());
306 canvas->grab_focus();
/inkscape/src/ui/tools/
H A Dspiral-tool.cpp24 #include "display/sp-canvas.h"
44 #include "display/sp-canvas-item.h"
359 desktop->canvas->forceFullRedrawAfterInterruptions(5);
408 this->desktop->canvas->endForcedFullRedraws();
431 this->desktop->canvas->endForcedFullRedraws();
H A Dstar-tool.cpp27 #include "display/sp-canvas.h"
46 #include "display/sp-canvas-item.h"
375 desktop->canvas->forceFullRedrawAfterInterruptions(5);
432 desktop->canvas->endForcedFullRedraws();
456 desktop->canvas->endForcedFullRedraws();

Completed in 61 milliseconds

1234