Empirical
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
emp::web::CanvasRotate Class Reference

Rotate the entire canvas for subsequent drawings. More...

#include <CanvasAction.h>

Inheritance diagram for emp::web::CanvasRotate:
emp::web::CanvasAction

Public Member Functions

 CanvasRotate (double a)
 
void Apply ()
 Apply current action to emp_i.ctx. More...
 
CanvasActionClone () const
 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...
 

Protected Attributes

double angle
 

Detailed Description

Rotate the entire canvas for subsequent drawings.

Constructor & Destructor Documentation

emp::web::CanvasRotate::CanvasRotate ( double  a)
inline

Member Function Documentation

void emp::web::CanvasRotate::Apply ( )
inlinevirtual

Apply current action to emp_i.ctx.

Implements emp::web::CanvasAction.

CanvasAction* emp::web::CanvasRotate::Clone ( ) const
inlinevirtual

Make a copy of the current action.

Implements emp::web::CanvasAction.

void emp::web::CanvasAction::Fill ( const std::string &  style = "")
inlineprotectedinherited

Helper function to set the fill status.

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

Helper function to set the stroke status.

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

Helper function to set the stroke status.

Member Data Documentation

double emp::web::CanvasRotate::angle
protected

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