21 #ifndef GNASH_DYNAMIC_SHAPE_H
22 #define GNASH_DYNAMIC_SHAPE_H
56 void moveTo(boost::int32_t
x, boost::int32_t
y);
59 void lineTo(boost::int32_t
x, boost::int32_t
y,
int swfVersion);
64 void curveTo(boost::int32_t cx, boost::int32_t cy,
65 boost::int32_t ax, boost::int32_t ay,
int swfVersion);
96 bool vScale=
true,
bool hScale=
true,
97 bool pixelHinting=
false,
102 float miterLimitFactor=1.0
f);
181 void startNewPath(
bool newShape);
197 mutable bool _changed;
210 #endif // GNASH_DYNAMIC_SHAPE_H
void moveTo(boost::int32_t x, boost::int32_t y)
Move pen to given coordinates.
Definition: DynamicShape.cpp:184
void lineStyle(boost::uint16_t thickness, const rgba &color, bool vScale=true, bool hScale=true, bool pixelHinting=false, bool noClose=false, CapStyle startCapStyle=CAP_ROUND, CapStyle endCapStyle=CAP_ROUND, JoinStyle joinStyle=JOIN_ROUND, float miterLimitFactor=1.0f)
Set current line style and start a new path.
Definition: DynamicShape.cpp:163
const SWF::ShapeRecord & shapeRecord() const
Definition: DynamicShape.h:153
const SWFRect & getBounds() const
Definition: DynamicShape.h:73
void curveTo(boost::int32_t cx, boost::int32_t cy, boost::int32_t ax, boost::int32_t ay, int swfVersion)
Draw a curve from current position to given one using given control points.
Definition: DynamicShape.cpp:227
DynamicShape()
Definition: DynamicShape.cpp:28
bool pointTest(boost::int32_t x, boost::int32_t y, const SWFMatrix &wm) const
Definition: ShapeRecord.h:183
Definition: SWFMatrix.h:53
size_t addFillStyle(const FillStyle &stl)
Add a fill style, possibly reusing an existing one if existent.
Definition: DynamicShape.cpp:261
void setBounds(const SWFRect &bounds)
Definition: DynamicShape.h:77
void finalize() const
Always call this function before displaying !
Definition: DynamicShape.cpp:139
void lineTo(boost::int32_t x, boost::int32_t y, int swfVersion)
Draw a straight line from current position to given one.
Definition: DynamicShape.cpp:196
void add_path(const Path &pth)
Add a path, updating _currpath and recomputing bounds.
Definition: DynamicShape.cpp:55
Definition: GnashKey.h:152
Definition: ShapeRecord.h:41
const SWFRect & getBounds() const
Definition: ShapeRecord.h:166
Base class for render handlers.
Definition: Renderer.h:190
const VGfloat color[4]
Definition: testr_gtk.cpp:82
bool pointTestLocal(boost::int32_t x, boost::int32_t y, const SWFMatrix &wm) const
Definition: DynamicShape.h:146
The DynamicShape class represents a mutable shape.
Definition: DynamicShape.h:44
size_t add_line_style(const LineStyle &stl)
Add a line style, possibly reusing an existing one if existent.
Definition: DynamicShape.cpp:268
void beginFill(const FillStyle &f)
Start drawing with a solid fill.
Definition: DynamicShape.cpp:98
FillStyle describes the various fill styles for shapes.
Definition: FillStyle.h:281
A subset of a shape, a series of edges sharing a single set of styles.
Definition: Geometry.h:166
~DynamicShape()
Definition: DynamicShape.h:50
boost::int32_t x
Definition: BitmapData_as.cpp:434
void display(Renderer &renderer, const Transform &xform) const
Display a DynamicShape object.
Definition: DynamicShape.cpp:49
Definition: LineStyle.h:43
void setBounds(const SWFRect &bounds)
Definition: ShapeRecord.h:179
For the outside of outline shapes, or just bare lines.
Definition: LineStyle.h:49
boost::int32_t y
Definition: BitmapData_as.cpp:435
Rectangle class, see swf defined rectangle record.
Definition: SWFRect.h:44
void resetLineStyle()
Reset line style to no style and start a new path.
Definition: DynamicShape.cpp:177
JoinStyle
Definition: LineStyle.h:42
void clear()
Remove all paths and style informations.
Definition: DynamicShape.cpp:39
Holds information needed to draw a shape.
Definition: ShapeRecord.h:126
CapStyle
Definition: LineStyle.h:36
Definition: LineStyle.h:37
void endFill()
Close an existing filled path, if any.
Definition: DynamicShape.cpp:63
A basic RGBA type.
Definition: RGBA.h:35