2 #include "canvas/canvas.hpp"
3 #include <cairomm/cairomm.h>
12 void request_push()
override
15 Cairo::RefPtr<Cairo::Surface> get_surface()
20 void load(
const class Package &pkg);
22 void load(
const class Frame &frame);
23 Cairo::RefPtr<Cairo::Surface> get_image_surface(
double scale = 1,
double grid = -1);
26 void img_polygon(
const Polygon &poly,
bool tr)
override;
27 void img_line(
const Coordi &p0,
const Coordi &p1,
const uint64_t width,
int layer,
bool tr =
true)
override;
28 void img_hole(
const Hole &hole)
override;
29 void render_pad_names(
const Package &pkg);
30 void draw_text_box(
const Placement &q,
float width,
float height,
const std::string &s, ColorP color,
int layer,
31 uint64_t text_width, TextBoxMode mode);
33 bool layer_filter =
false;
34 int current_layer = 0;
35 bool cairo_layer_visible(
int l)
const;
37 double min_line_width = 0.1_mm;
39 cairo_surface_t *recording_surface;
40 Cairo::RefPtr<Cairo::Surface> surface;
41 Cairo::RefPtr<Cairo::Context> cr;
Definition: canvas_cairo2.hpp:6
Definition: canvas.hpp:24
A hole with diameter and position, that's it.
Definition: hole.hpp:15
Definition: package.hpp:29
Definition: placement.hpp:8
Polygon used in Padstack, Package and Board for specifying filled Regions.
Definition: polygon.hpp:25
Definition: symbol.hpp:72