21 #ifndef GNASH_DYNAMIC_SHAPE_H 22 #define GNASH_DYNAMIC_SHAPE_H 56 void moveTo(std::int32_t
x, std::int32_t
y);
59 void lineTo(std::int32_t x, std::int32_t y,
int swfVersion);
64 void curveTo(std::int32_t cx, std::int32_t cy,
65 std::int32_t ax, std::int32_t ay,
int swfVersion);
96 bool vScale=
true,
bool hScale=
true,
97 bool pixelHinting=
false,
102 float miterLimitFactor=1.0f);
181 void startNewPath(
bool newShape);
197 mutable bool _changed;
210 #endif // GNASH_DYNAMIC_SHAPE_H
DynamicShape()
Definition: DynamicShape.cpp:28
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
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
void setBounds(const SWFRect &bounds)
Definition: DynamicShape.h:77
const SWFRect & getBounds() const
Definition: DynamicShape.h:73
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
Base class for render handlers.
Definition: Renderer.h:188
const VGfloat color[4]
Definition: testr_gtk.cpp:82
The DynamicShape class represents a mutable shape.
Definition: DynamicShape.h:44
bool pointTestLocal(std::int32_t x, std::int32_t y, const SWFMatrix &wm) const
Definition: DynamicShape.h:146
void moveTo(std::int32_t x, std::int32_t y)
Move pen to given coordinates.
Definition: DynamicShape.cpp:184
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
std::int32_t x
Definition: BitmapData_as.cpp:434
bool pointTest(std::int32_t x, std::int32_t y, const SWFMatrix &wm) const
Definition: ShapeRecord.h:183
Definition: LineStyle.h:44
void setBounds(const SWFRect &bounds)
Definition: ShapeRecord.h:179
void lineStyle(std::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
For the outside of outline shapes, or just bare lines.
Definition: LineStyle.h:50
std::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
void lineTo(std::int32_t x, std::int32_t y, int swfVersion)
Draw a straight line from current position to given one.
Definition: DynamicShape.cpp:196
void display(Renderer &renderer, const Transform &xform) const
Display a DynamicShape object.
Definition: DynamicShape.cpp:49
const SWFRect & getBounds() const
Definition: ShapeRecord.h:166
JoinStyle
Definition: LineStyle.h:43
void finalize() const
Always call this function before displaying !
Definition: DynamicShape.cpp:139
const SWF::ShapeRecord & shapeRecord() const
Definition: DynamicShape.h:153
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:37
Definition: LineStyle.h:38
void endFill()
Close an existing filled path, if any.
Definition: DynamicShape.cpp:63
void curveTo(std::int32_t cx, std::int32_t cy, std::int32_t ax, std::int32_t ay, int swfVersion)
Draw a curve from current position to given one using given control points.
Definition: DynamicShape.cpp:227
A basic RGBA type.
Definition: RGBA.h:35