1541d8b666
app: make the shift-coordinates-by-anchor functions public API
2010-11-09 11:27:51 +01:00
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
22db39afd2
app: fix incomplete earlier s/GtkAnchorType/GimpHandleAnchor/ change
2010-10-18 20:13:09 +02:00
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
5b64b83569
app: introduce enum GimpHandleAnchor as replacement for GtkAnchorType
...
because the latter is gone in GTK+ 3.0
2010-10-18 12:50:17 +02:00
b74811324a
app: don't use PROJ_ROUND() for pixel-adjusting canvas item drawing
...
When PROJ_ROUND()ing e.g. 3.8, it ends up at 4, then we added the 0.5
offset to draw a nice cairo line in the middle of the pixel,
effectively drawing a line that's meant to be at 3.8 at 4.5. Instead,
we now use floor(x)+0.5 now which snaps the above example to 3.5.
Also, calculate arcs like we calculate rectangles (transform the arc's
bounding box and pixel-align that, then recalculate the center), so
arcs properly align with rectangles.
2010-10-04 21:48:39 +02:00
d3f19baf0d
app: remove "shell" parameter from GimpCanvasItem's public APIs
...
because each item has a shell now. Keep the parameter in the virtual
functions though because that saves a lot of code in the subclasses.
2010-10-01 14:54:53 +02:00
201bfe3e25
app: add a "shell" property to GimpCanvasItem
...
and pass it to all constructors. The GimpDisplayShell is needed
because items are going to become more powerful soon.
2010-10-01 14:13:45 +02:00
b0a22bc285
app: change the default item line cap to round
...
but add and API to configure it and set it to suare for handles which
are always axis-aligned.
2010-09-26 17:40:10 +02:00
74fe162f93
app: move adding an arc path out to a utility function
2010-09-24 13:12:34 +02:00
6ebc29818e
app: add arc slices to GimpCanvasHandle
2010-09-24 01:32:09 +02:00
74bc42edf3
app: implement square handles
2010-09-23 19:24:40 +02:00
ddc63de6d6
app: remove "gboolean use_offsets" from gimpdisplayshell-transform.[ch]
2010-09-23 19:24:04 +02:00
f719cf1ea2
app: implement circle handles
2010-09-23 00:00:57 +02:00
d0f6846ff5
app: remove premature canvas item extents caching optimization again
2010-09-22 10:33:41 +02:00
de2ae87047
app: add GimpCanvasHandle which draws tool handles
...
Currently only a centered cross is implemented.
2010-09-21 19:22:29 +02:00