Text to be written on a canvas.
More...
#include <CanvasShape.h>
|
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...
|
|
Text to be written on a canvas.
emp::web::CanvasText::CanvasText |
( |
Point |
p, |
|
|
const std::string & |
_text, |
|
|
const std::string & |
fc = "" , |
|
|
const std::string & |
lc = "" |
|
) |
| |
|
inline |
void emp::web::CanvasText::Apply |
( |
| ) |
|
|
inlinevirtual |
void emp::web::CanvasShape::ApplyColor |
( |
| ) |
|
|
inlineinherited |
Actually change the color on screen.
void emp::web::CanvasText::Center |
( |
bool |
c = true | ) |
|
|
inline |
void emp::web::CanvasAction::Fill |
( |
const std::string & |
style = "" | ) |
|
|
inlineprotectedinherited |
Helper function to set the fill status.
bool emp::web::CanvasText::GetCenter |
( |
| ) |
const |
|
inline |
Identify if text is centered.
void emp::web::CanvasAction::LineWidth |
( |
double |
line_width = 1.0 | ) |
|
|
inlineprotectedinherited |
Helper function to set the stroke status.
void emp::web::CanvasShape::MoveTo |
( |
Point |
_p | ) |
|
|
inlineinherited |
Shift the position of this shape to a point.
void emp::web::CanvasShape::MoveTo |
( |
double |
_x, |
|
|
double |
_y |
|
) |
| |
|
inlineinherited |
Shift the position of this shape to coordinates.
void emp::web::CanvasShape::SetFillColor |
( |
const std::string & |
color | ) |
|
|
inlineinherited |
Change the fill color of this shape.
void emp::web::CanvasShape::SetLineColor |
( |
const std::string & |
color | ) |
|
|
inlineinherited |
Change the stroke color of this shape.
void emp::web::CanvasShape::SetLineWidth |
( |
double |
lw = 1.0 | ) |
|
|
inlineinherited |
Setup details needed before drawing lines.
void emp::web::CanvasAction::Stroke |
( |
const std::string & |
style = "" | ) |
|
|
inlineprotectedinherited |
Helper function to set the stroke status.
bool emp::web::CanvasText::center |
|
protected |
Should this text be centered (or is anchor on left side)?
std::string emp::web::CanvasShape::fill_color |
|
protectedinherited |
Internal color to fill shape with.
std::string emp::web::CanvasShape::line_color |
|
protectedinherited |
double emp::web::CanvasShape::line_width |
|
protectedinherited |
How wide should lines be?
Point emp::web::CanvasShape::p |
|
protectedinherited |
Anchor point for this shape.
std::string emp::web::CanvasText::text |
|
protected |
Specific text to be written.
The documentation for this class was generated from the following file: