Empirical
Classes | Namespaces
CanvasAction.h File Reference

Define a base class for all actions that can be done to widgets, plus simple actions. More...

#include <string>
#include "RawImage.h"
#include "Widget.h"

Go to the source code of this file.

Classes

class  emp::web::CanvasAction
 Base class to maintain canvas actions. More...
 
class  emp::web::CanvasStrokeColor
 Set the line color on subsequent draw-related actions. More...
 
class  emp::web::CanvasRotate
 Rotate the entire canvas for subsequent drawings. More...
 
class  emp::web::CanvasFont
 Change the default font to be used. More...
 
class  emp::web::CanvasImage
 Change the default font to be used. More...
 

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 
 emp::web
 

Detailed Description

Define a base class for all actions that can be done to widgets, plus simple actions.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2015-2018

CanvasAction objects modify the appearance of a canvas and can be tracked to reconstruct the state of the canvas from scratch.

Other, more specific actions defined here are: CanvasStrokeColor CanvasRotate CanvasFont

See also CanvasShape.h for more actions.