5#include <cairomm-1.16/cairomm/cairomm.h>
6#include <tracy/Tracy.hpp>
36 double odd_offset = 0.0;
44 editor->rectangle(
x,
y,
_w,
_h);
47 r = std::min(
_w / 2,
r);
48 r = std::min(
_h / 2,
r);
49 editor->move_to(
x +
r,
y);
50 editor->arc(
x +
_w -
r,
y +
r,
r, 3 * M_PI / 2, 0);
51 editor->arc(
x +
_w -
r,
y +
_h -
r,
r, 0, M_PI / 2);
52 editor->arc(
x +
r,
y +
_h -
r,
r, M_PI / 2, M_PI);
53 editor->arc(
x +
r,
y +
r,
r, M_PI, 3 * M_PI / 2);
57 editor->fill_preserve();
rectangle & r(const quantify::quantity_t< UNIT, T > &_r_)
rectangle & x(const quantify::quantity_t< UNIT, T > &_x_)
rectangle & y(const quantify::quantity_t< UNIT, T > &_y_)
void apply_fill(pixelmap_editor_t &editor) const
void set_source_to_fill(pixelmap_editor_t &editor) const
void set_source_to_stroke(pixelmap_editor_t &editor) const
void apply_stroke(pixelmap_editor_t &editor) const
footprint get_footprint() const override
void apply_to(pixelmap_editor_t &editor) const override