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;
static Path ellipse(float center_x, float center_y, float radius_x, float radius_y)
Definition: path.h:87
2D Graphics Canvas
Definition: canvas.h:71
void fill(Canvas &canvas, const Brush &brush)
Fills a path.
static Path line(const Pointf &start, const Pointf &end)
std::shared_ptr< PathImpl > get_impl() const
Definition: path.h:94
void move_to(const Pointf &point)
void operator+=(const Path &path)
+= operator to concatenate a path onto this path.
static Path rect(float x, float y, float width, float height)
Definition: path.h:80
friend class CanvasImpl
Definition: path.h:112
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
Glyph metrics class.
Definition: glyph_metrics.h:40
void fill_and_stroke(Canvas &canvas, const Pen &pen, const Brush &brush)
First fills a path, then strokes on top.
void stroke(Canvas &canvas, const Pen &pen)
Strokes a path.
Vec2< Type > operator+(const Vec2< Type > &v1, const Vec2< Type > &v2)
operator.
Definition: vec2.h:266
2D (left,top,right,bottom) rectangle structure - Float
Definition: rect.h:502
void line_to(float x, float y)
Definition: path.h:62
static Path rect(const Rectf &box)
void line_to(const Pointf &point)
void bezier_to(const Pointf &control, const Pointf &point)
Font class.
Definition: font.h:59
static Path line(float x1, float y1, float x2, float y2)
Definition: path.h:82
Path & transform_self(const Mat3f &transform)
Transform this path.
void set_fill_mode(PathFillMode fill_mode)
2D (x,y) point structure - Float
Definition: point.h:71
static Path circle(const Pointf ¢er, float radius)
Definition: path.h:88
PathFillMode
Definition: path.h:46
void move_to(float x, float y)
Definition: path.h:60
2D (width,height) size structure - Float
Definition: size.h:183