oscr::QPainterAdapter Struct Reference

Public Member Functions

void begin_path ()
 
void close_path ()
 
void stroke ()
 
void fill ()
 
void update ()
 
void move_to (double x, double y)
 
void line_to (double x, double y)
 
void arc_to (double x, double y, double w, double h, double start, double length)
 
void cubic_to (double c1x, double c1y, double c2x, double c2y, double endx, double endy)
 
void quad_to (double x1, double y1, double x2, double y2)
 
void translate (double x, double y)
 
void scale (double x, double y)
 
void rotate (double a)
 
void reset_transform ()
 
void set_stroke_color (rgba_color c)
 
void set_stroke_width (double w)
 
void set_fill_color (rgba_color c)
 
void set_linear_gradient (double x1, double y1, double x2, double y2, rgba_color c1, rgba_color c2)
 
void set_radial_gradient (double cx, double cy, double cr, rgba_color c1, rgba_color c2)
 
void set_conical_gradient (double x, double y, double a, rgba_color c1, rgba_color c2)
 
void set_font (std::string_view f)
 
void set_font_size (double f)
 
void draw_text (double x, double y, std::string_view str)
 
void draw_line (double x1, double y1, double x2, double y2)
 
void draw_triangle (double x1, double y1, double x2, double y2, double x3, double y3)
 
void draw_rect (double x, double y, double w, double h)
 
void draw_rounded_rect (double x, double y, double w, double h, double r)
 
void draw_pixmap (double x, double y, const QString &str)
 
void draw_ellipse (double x, double y, double w, double h)
 
void draw_circle (double cx, double cy, double cr)
 
void draw_polygon (const double *tab, int count)
 
void draw_bytes (int x, int y, int w, int h, const unsigned char *image, int img_w, int img_h)
 

Public Attributes

QPainter & painter
 
QGraphicsItem & item
 
QPainterPath path
 

The documentation for this struct was generated from the following file: