Empirical
Public Member Functions | Protected Member Functions | List of all members
emp::web::CanvasAction Class Referenceabstract

Base class to maintain canvas actions. More...

#include <CanvasAction.h>

Inheritance diagram for emp::web::CanvasAction:
emp::web::CanvasFont emp::web::CanvasImage emp::web::CanvasRotate emp::web::CanvasShape emp::web::CanvasStrokeColor emp::web::CanvasCircle emp::web::CanvasClearRect emp::web::CanvasLine emp::web::CanvasMultiLine emp::web::CanvasPolygon emp::web::CanvasRect emp::web::CanvasText

Public Member Functions

 CanvasAction ()
 
 CanvasAction (const CanvasAction &)
 
virtual ~CanvasAction ()
 
virtual void Apply ()=0
 Apply current action to emp_i.ctx. More...
 
virtual CanvasActionClone () const =0
 Make a copy of the current action. More...
 

Protected Member Functions

void Fill (const std::string &style="")
 Helper function to set the fill status. More...
 
void Stroke (const std::string &style="")
 Helper function to set the stroke status. More...
 
void LineWidth (double line_width=1.0)
 Helper function to set the stroke status. More...
 

Detailed Description

Base class to maintain canvas actions.

Constructor & Destructor Documentation

emp::web::CanvasAction::CanvasAction ( )
inline
emp::web::CanvasAction::CanvasAction ( const CanvasAction )
inline
virtual emp::web::CanvasAction::~CanvasAction ( )
inlinevirtual

Member Function Documentation

virtual void emp::web::CanvasAction::Apply ( )
pure virtual
virtual CanvasAction* emp::web::CanvasAction::Clone ( ) const
pure virtual
void emp::web::CanvasAction::Fill ( const std::string &  style = "")
inlineprotected

Helper function to set the fill status.

void emp::web::CanvasAction::LineWidth ( double  line_width = 1.0)
inlineprotected

Helper function to set the stroke status.

void emp::web::CanvasAction::Stroke ( const std::string &  style = "")
inlineprotected

Helper function to set the stroke status.


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