Commit 02427b8d authored by Paul Asmuth's avatar Paul Asmuth
Browse files

graphics: add strokePath helper function

parent cb8c2f13
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -33,6 +33,13 @@

namespace plotfx {

void strokePath(
    Layer* layer,
    const Path& path,
    const StrokeStyle& style) {
  strokePath(layer, path.data(), path.size(), style);
}

void strokePath(
    Layer* layer,
    const PathData* point_data,
+5 −0
Original line number Diff line number Diff line
@@ -53,6 +53,11 @@ struct StrokeStyle {
  Colour colour;
};

void strokePath(
    Layer* layer,
    const Path& path,
    const StrokeStyle& style);

void strokePath(
    Layer* layer,
    const PathData* path_data,