Michael Natterer
0add37a6cc
app: remove GimpDisplayShell parameters from all GimpCanvasItem vfuncs
...
and get the shell from gimp_canvas_item_get_shell() if needed. Remove
some cairo_translate() that didn't have any effect and were leftovers
from a very early canvas item code.
2013-04-18 16:46:01 +02:00
Michael Natterer
59c7d42530
app: missed two shell->canvas, use gimp_canvas_item_get_canvas() instead
2013-04-18 16:46:01 +02:00
Michael Natterer
52b92e740f
app: rename gimpdisplayshell-style to gimpcanvas-style
...
because it doesn't and shouldn't depend on GimpDisplayShell at all.
In the future, it will take its defaults from the canvas' theme.
2013-04-18 16:46:01 +02:00
Michael Natterer
64c929a1d1
app: add an own GimpCanvasItem API for transforming coords
...
and use it in all subclasses. Removes all gimpdisplayshell-transform
dependency from all item implementations.
2013-04-18 16:46:00 +02:00
Martin Nordholts
a410716503
app: Remove unused variable
2011-07-03 16:38:37 +02:00
Michael Natterer
8b57ef51cc
app: clean up the new brush outline stuff a bit
2011-06-30 09:27:43 +02:00
Alexia Death
3c3657f780
app: Refactor path code to support styles and add outline style for use in brush outline
2011-06-29 23:05:14 +03:00
Michael Natterer
fde934ac58
app: s/GdkRectangle/cairo_rectangle_int_t/ in all GimpCanvasItems
2011-04-10 18:15:16 +02:00
Michael Natterer
46819a05da
app: fix transformation in GimpCanvasPath
2011-04-04 21:41:46 +02:00
Michael Natterer
99e0e73fc6
app: add "x" and "y" properties to GimpCanvasPath
...
so paths can be rendered at any position. Pass 0,0 from all places
that draw GimpVectors.
2011-04-04 20:58:38 +02:00
Michael Natterer
8b4870dad7
app: move GimpBezierDesc from app/vectors/ to app/core/
2011-04-04 18:40:12 +02:00
Michael Natterer
b529d556fa
app: add and use more GimpCanvasItem setters
2011-03-28 15:15:43 +02:00
Michael Natterer
ebe4b4102f
Bug 643587 - Opening two xcf with vectors crashes gimp
...
Fix the crash and the warning pointed out in the bug.
2011-03-01 17:05:58 +01:00
Michael Natterer
60d24b4c04
app: get rid of #ifdef USE_CAIRO_REGION almost everywhere
...
get replaced by GDK region functions and use the cairo region
functions unconditionally all over the place.
2010-10-22 19:58:11 +02:00
Michael Natterer
479082075b
app: use cairo_region_t for canvas items if cairo >= 1.10 is available
...
This is a gross hack that typedefs around between GdkRegion and
cairo_region_t and has some evil #ifdefs. This is going to die
immeditately once we can depend on cairo 1.10.
2010-10-18 20:01:05 +02:00
Michael Natterer
6b8141d548
app: wrap GimpBezierDesc in a boxed type to make property handling easier
2010-10-08 18:52:28 +02:00
Michael Natterer
0b078d3dad
app: several GimpCanvasPath fixes
...
- fix get_extents()
- don't use cairo_path_destroy() for a path we allocated ourselves
- pass a const GimpBezierDesc to new()
2010-10-07 14:08:48 +02:00
Michael Natterer
149ba1ec4b
app: add a path canvas item class based on cairo_path_t (GimpBezierDesc)
...
and use it in gimp_display_shell_draw_vectors().
2010-10-06 23:02:16 +02:00