|
CTurtle
|
The Pen State structure Holds all pen attributes, which are grouped in this way to allow stack-based undo for Turtle objects. Instances of this object are self-contained, and has ownership of all objects and memory referenced by itself. More...
#include <CTurtle.hpp>

Public Member Functions | |
| PenState (const PenState ©) | |
| PenState & | operator= (const PenState ©) |
Public Attributes | |
| Transform | transform |
| float | moveSpeed = TS_NORMAL |
| bool | tracing = true |
| bool | angleMode = false |
| int | penWidth = 1 |
| bool | filling = false |
| Color | penColor = Color("black") |
| Color | fillColor = Color("black") |
| size_t | objectsBefore = 0 |
| std::unique_ptr< AbstractDrawableObject > | cursor = nullptr |
| int | curStamp = 0 |
| bool | visible = true |
| float | cursorTilt = 0 |
The Pen State structure Holds all pen attributes, which are grouped in this way to allow stack-based undo for Turtle objects. Instances of this object are self-contained, and has ownership of all objects and memory referenced by itself.
| bool cturtle::PenState::angleMode = false |
The angle mode. False for degrees, true for radians.
| std::unique_ptr<AbstractDrawableObject> cturtle::PenState::cursor = nullptr |
The turtle's cursor geometry. MUST ASSIGN BEFORE USE.
| float cturtle::PenState::cursorTilt = 0 |
A float for cursor tilt (e.g, rotation appleid to the cursor itself)
| int cturtle::PenState::curStamp = 0 |
The current stamp ID.
| bool cturtle::PenState::filling = false |
A boolean indicating if we're trying to fill a shape.
| float cturtle::PenState::moveSpeed = TS_NORMAL |
The movement speed of the turtle, in range of 0...10
| size_t cturtle::PenState::objectsBefore = 0 |
The total number of objects in the screen's object stack prior to the addition of this state->
| int cturtle::PenState::penWidth = 1 |
The width of the pen, in pixels.
| bool cturtle::PenState::tracing = true |
Whether or not the turtle's "tail" (or pen) is down.
| Transform cturtle::PenState::transform |
The transform of the pen. holds position, rotation, and scale of the turtle.
| bool cturtle::PenState::visible = true |
A boolean indicating if this turtle is visible.