gempyre  1.7.1
Gempyre::FrameComposer Class Reference

More...

#include <gempyre_graphics.h>

Public Member Functions

 FrameComposer ()
 Constructor.
 
 FrameComposer (Gempyre::CanvasElement::CommandList &lst)
 Construct from CommandList.
 
 FrameComposer (FrameComposer &&other)=default
 Move constructor.
 
 FrameComposer (const FrameComposer &other)=default
 Copy constructor.
 
FrameComposer stroke_rect (const Gempyre::Element::Rect &r)
 Visit the Mozilla documentation
 
FrameComposer stroke_rect (double x, double y, double w, double h)
 Visit the Mozilla documentation
 
FrameComposer clear_rect (const Gempyre::Element::Rect &r)
 Visit the Mozilla documentation
 
FrameComposer clear_rect (double x, double y, double w, double h)
 Visit the Mozilla documentation
 
FrameComposer fill_rect (const Gempyre::Element::Rect &r)
 Visit the Mozilla documentation
 
FrameComposer fill_rect (double x, double y, double w, double h)
 Visit the Mozilla documentation
 
FrameComposer fill_text (std::string_view text, double x, double y)
 Visit the Mozilla documentation
 
FrameComposer stroke_text (std::string_view text, double x, double y)
 Visit the Mozilla documentation
 
FrameComposer arc (double x, double y, double r, double sAngle, double eAngle)
 Visit the Mozilla documentation
 
FrameComposer ellipse (double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle)
 Visit the Mozilla documentation
 
FrameComposer begin_path ()
 Visit the Mozilla documentation
 
FrameComposer close_path ()
 Visit the Mozilla documentation
 
FrameComposer line_to (double x, double y)
 Visit the Mozilla documentation
 
FrameComposer move_to (double x, double y)
 Visit the Mozilla documentation
 
FrameComposer bezier_curve_to (double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
 Visit the Mozilla documentation
 
FrameComposer quadratic_curve_to (double cpx, double cpy, double x, double y)
 Visit the Mozilla documentation
 
FrameComposer arc_to (double x1, double y1, double x2, double y2, double radius)
 Visit the Mozilla documentation
 
FrameComposer rect (const Gempyre::Element::Rect &r)
 Visit the Mozilla documentation
 
FrameComposer rect (double x, double y, double w, double h)
 Visit the Mozilla documentation
 
FrameComposer stroke ()
 Visit the Mozilla documentation
 
FrameComposer fill ()
 Visit the Mozilla documentation
 
FrameComposer fill_style (std::string_view color)
 Visit the Mozilla documentation
 
FrameComposer stroke_style (std::string_view color)
 Visit the Mozilla documentation
 
FrameComposer line_width (double width)
 Visit the Mozilla documentation
 
FrameComposer font (std::string_view style)
 Visit the Mozilla documentation
 
FrameComposer text_align (std::string_view align)
 Visit the Mozilla documentation
 
FrameComposer save ()
 Visit the Mozilla documentation
 
FrameComposer restore ()
 Visit the Mozilla documentation
 
FrameComposer rotate (double angle)
 Visit the Mozilla documentation
 
FrameComposer translate (double x, double y)
 Visit the Mozilla documentation
 
FrameComposer scale (const double x, double y)
 Visit the Mozilla documentation
 
FrameComposer draw_image (std::string_view id, double x, double y)
 Visit the Mozilla documentation
 
FrameComposer draw_image (std::string_view id, const Gempyre::Element::Rect &rect)
 Visit the Mozilla documentation
 
FrameComposer draw_image (std::string_view id, double x, double y, double w, double h)
 Visit the Mozilla documentation
 
FrameComposer draw_image (std::string_view id, const Gempyre::Element::Rect &clip, const Gempyre::Element::Rect &rect)
 Visit the Mozilla documentation
 
FrameComposer draw_image (std::string_view id, double cx, double cy, double cw, double ch, double x, double y, double w, double h)
 Visit the Mozilla documentation
 
FrameComposer text_baseline (std::string_view textBaseline)
 Visit the Mozilla documentation
 
const Gempyre::CanvasElement::CommandListcomposed () const
 Get command list composed.
 

Detailed Description

  • wrap up Javascript draw commands.

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