/*
7 * Krzysztof KosiĆski <tweenk.pl@gmail.com>
9 * Copyright (C) 2011 Authors
10 * Released under GNU GPL v2+, read the file
'COPYING' for more information.
78 , _delete_surface(true)
79 , _restore_context(false)
86 : _ct(s.createRawContext())
88 , _delete_surface(false)
89 , _restore_context(false)
106 double from = angle.initialAngle();
107 double to = angle.finalAngle();
109 cairo_arc(
_ct, center[X], center[Y], radius, from, to);
111 cairo_arc_negative(
_ct, center[X], center[Y], radius, to, from);
125 if (alpha == 1.0) cairo_paint(
_ct);
126 else cairo_paint_with_alpha(
_ct, alpha);
void ink_cairo_transform(cairo_t *ct, Geom::Affine const &m)
void feed_pathvector_to_cairo(cairo_t *ct, Geom::PathVector const &pathv, Geom::Affine trans, Geom::OptRect area, bool optimize_stroke, double stroke_width)
Feeds path-creating calls to the cairo context translating them from the PathVector,...
void ink_cairo_set_hairline(cairo_t *ct)
void ink_cairo_set_source_rgba32(cairo_t *ct, guint32 rgba)
Cairo integration helpers.
Cairo::RefPtr< Cairo::ImageSurface > surface
3x3 matrix representing an affine transformation.
Directed angular interval.
Two-dimensional point that doubles as a vector.
Axis aligned, non-empty rectangle.
void save(DrawingContext &dc)
Minimal wrapper over Cairo.
void arc(Geom::Point const ¢er, double radius, Geom::AngleInterval const &angle)
void path(Geom::PathVector const &pv)
Geom::Rect targetLogicalBounds() const
void setSource(cairo_pattern_t *source)
DrawingSurface * _surface
void transform(Geom::Affine const &trans)
void paint(double alpha=1.0)
DrawingContext(cairo_t *ct, Geom::Point const &origin)
Drawing surface that remembers its origin.
cairo_t * createRawContext()
Create a drawing context for this surface.
Geom::Point origin() const
Geom::Rect area() const
Get the logical extents of the surface.
Cairo drawing context with Inkscape extensions.
Cairo surface that remembers its origin.
struct _cairo_surface cairo_surface_t
Helper class to stream background task notifications as a series of messages.