39 const Mask* mask =
nullptr);
43 Transform transform = Transform::identity(),
const Mask* mask =
nullptr);
47 Transform transform = Transform::identity(),
const Mask* mask =
nullptr);
51 Transform transform = Transform::identity(),
const Mask* mask =
nullptr);
Geometric primitives: Rect, IntRect, ScreenIntRect, IntSize.
Alpha mask for clipping drawing operations.
Paint configuration for drawing operations.
Immutable vector path and related types.
FillRule
Fill rule for path filling.
Definition Path.h:220
Pixmap-based pattern shader and PixmapPaint settings.
Pixel buffers and views for RGBA image data.
Stroke properties and dash patterns.
Drawing surface backed by a mutable pixel buffer.
Definition Canvas.h:29
void strokePath(const Path &path, const Paint &paint, const Stroke &stroke, Transform transform=Transform::identity(), const Mask *mask=nullptr)
Strokes a path with the given stroke settings.
Canvas(Pixmap &pixmap)
Constructs a Canvas from an owned Pixmap.
Definition Canvas.h:35
void drawPixmap(std::int32_t x, std::int32_t y, PixmapView src, const PixmapPaint &paint, Transform transform=Transform::identity(), const Mask *mask=nullptr)
Composites a source pixmap onto this canvas at offset (x, y).
void applyMask(const Mask &mask)
Applies a mask to already-drawn content.
void fillRect(const Rect &rect, const Paint &paint, Transform transform=Transform::identity(), const Mask *mask=nullptr)
Fills an axis-aligned rectangle.
void fillPath(const Path &path, const Paint &paint, FillRule fillRule, Transform transform=Transform::identity(), const Mask *mask=nullptr)
Fills a path using the given fill rule.
Canvas(MutablePixmapView view)
Constructs a Canvas from a mutable view.
Definition Canvas.h:32
8-bit alpha mask for clipping.
Definition Mask.h:49
Mutable view into RGBA pixel data. Does not own memory. Primary drawing target for all rendering oper...
Definition Pixmap.h:65
Immutable vector path — a sequence of lines, quadratics, and cubics.
Definition Path.h:56
Immutable view into RGBA pixel data. Does not own memory.
Definition Pixmap.h:26
Owned RGBA pixel buffer. Always premultiplied alpha internally.
Definition Pixmap.h:116
Floating-point rectangle (left, top, right, bottom). All components must be finite,...
Definition Geom.h:119
Controls how a shape is painted (shader, blend mode, anti-aliasing).
Definition Paint.h:15
Paint settings for Painter::drawPixmap.
Definition Pattern.h:21
Stroke properties for Painter::strokePath.
Definition Stroke.h:36