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

Change the default font to be used. More...

#include <CanvasAction.h>

Inheritance diagram for emp::web::CanvasFont:
emp::web::CanvasAction

Public Member Functions

 CanvasFont (const std::string &f)
 
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

std::string font
 

Detailed Description

Change the default font to be used.

Constructor & Destructor Documentation

emp::web::CanvasFont::CanvasFont ( const std::string &  f)
inline

Member Function Documentation

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

Apply current action to emp_i.ctx.

Implements emp::web::CanvasAction.

CanvasAction* emp::web::CanvasFont::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

std::string emp::web::CanvasFont::font
protected

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