33 #include "../../Core/Math/rect.h"
34 #include "../../Core/Math/mat4.h"
35 #include "../../Display/2D/color.h"
94 std::shared_ptr<PathImpl>
get_impl()
const {
return impl; }
111 std::shared_ptr<PathImpl> impl;
void stroke(Canvas &canvas, const Pen &pen)
Strokes a path.
void bezier_to(const Pointf &control1, const Pointf &control2, const Pointf &point)
std::shared_ptr< PathImpl > get_impl() const
Definition: path.h:94
void fill(Canvas &canvas, const Brush &brush)
Fills a path.
friend class CanvasImpl
Definition: path.h:112
Vec2< Type > operator+(const Vec2< Type > &v1, const Vec2< Type > &v2)
operator.
Definition: vec2.h:276
static Path line(float x1, float y1, float x2, float y2)
Definition: path.h:82
2D (x,y) point structure - Float
Definition: point.h:73
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:485
static Path rect(const Rectf &box)
void line_to(const Pointf &point)
2D Graphics Canvas
Definition: canvas.h:73
static Path ellipse(float center_x, float center_y, float radius_x, float radius_y)
Definition: path.h:87
void set_fill_mode(PathFillMode fill_mode)
void move_to(float x, float y)
Definition: path.h:60
void move_to(const Pointf &point)
Font class.
Definition: font.h:54
void line_to(float x, float y)
Definition: path.h:62
PathFillMode
Definition: path.h:47
static Path rect(const Rectf &box, const clan::Sizef &corner)
static Path rect(float x, float y, float width, float height)
Definition: path.h:80
static Path line(const Pointf &start, const Pointf &end)
void fill_and_stroke(Canvas &canvas, const Pen &pen, const Brush &brush)
First fills a path, then strokes on top.
void bezier_to(const Pointf &control, const Pointf &point)
static Path glyph(Canvas &canvas, Font &font, unsigned int glyph, GlyphMetrics &out_metrics)
static Path circle(float center_x, float center_y, float radius)
Definition: path.h:86
static Path circle(const Pointf ¢er, float radius)
Definition: path.h:88
void operator+=(const Path &path)
+= operator to concatenate a path onto this path.
Path & transform_self(const Mat3f &transform)
Transform this path.
2D (width,height) size structure - Float
Definition: size.h:170
static Path ellipse(const Pointf ¢er, const Sizef &radius)
Glyph metrics class.
Definition: glyph_metrics.h:42