22 #ifndef GNASH_LINESTYLE_H
23 #define GNASH_LINESTYLE_H
30 class movie_definition;
72 bool pixelHinting=
false,
84 _pixelHinting(pixelHinting),
115 return _scaleVertically;
120 return _scaleHorizontally;
125 return _startCapStyle;
140 return _miterLimitFactor;
151 return _pixelHinting;
169 boost::uint16_t m_width;
173 bool _scaleVertically;
175 bool _scaleHorizontally;
187 float _miterLimitFactor;
bool doPixelHinting() const
Return true if pixel hinting should be activated.
Definition: LineStyle.h:150
JoinStyle joinStyle() const
Return the join style.
Definition: LineStyle.h:134
Client program's interface to the definition of a movie or sprite.
Definition: movie_definition.h:95
LineStyle(boost::uint16_t width, const rgba &color, bool scaleThicknessVertically=true, bool scaleThicknessHorizontally=true, bool pixelHinting=false, bool noClose=false, CapStyle startCapStyle=CAP_ROUND, CapStyle endCapStyle=CAP_ROUND, JoinStyle joinStyle=JOIN_ROUND, float miterLimitFactor=1.0f)
Definition: LineStyle.h:69
SWFStream & s
Definition: DefineBitsTag.cpp:73
TagType
SWF tag types. Symbolic names copied from Ming.
Definition: SWF.h:30
void read(SWFStream &in, SWF::TagType t, movie_definition &md, const RunResources &r)
Read the line style from an SWF stream.
Definition: LineStyle.cpp:123
boost::uint16_t getThickness() const
Return thickness of the line, in TWIPS.
Definition: LineStyle.h:109
Definition: LineStyle.h:38
bool scaleThicknessVertically() const
Return true if line thickness should be scaled vertically.
Definition: LineStyle.h:114
bool noClose() const
Definition: LineStyle.h:145
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:40
CapStyle endCapStyle() const
Return the end cap style.
Definition: LineStyle.h:129
Definition: klash_part.cpp:329
Definition: GnashKey.h:152
const rgba & get_color() const
Return line color and alpha.
Definition: LineStyle.h:155
const VGfloat color[4]
Definition: testr_gtk.cpp:82
Definition: GnashKey.h:164
void set_lerp(const LineStyle &ls1, const LineStyle &ls2, float ratio)
Set this style to the interpolation of the given one.
Definition: LineStyle.cpp:179
Definition: GnashKey.h:166
Definition: LineStyle.h:39
Definition: LineStyle.h:44
Class to group together per-run and external resources for Gnash.
Definition: RunResources.h:43
void read_morph(SWFStream &in, SWF::TagType t, movie_definition &md, const RunResources &r, LineStyle *pOther)
Definition: LineStyle.cpp:71
LineStyle()
Construct a default LineStyle.
Definition: LineStyle.cpp:55
Definition: LineStyle.h:43
float miterLimitFactor() const
Return the miter limit factor.
Definition: LineStyle.h:139
For the outside of outline shapes, or just bare lines.
Definition: LineStyle.h:49
JoinStyle
Definition: LineStyle.h:42
CapStyle startCapStyle() const
Return the start cap style.
Definition: LineStyle.h:124
Definition: LineStyle.h:45
bool scaleThicknessHorizontally() const
Return true if line thickness should be scaled horizontally.
Definition: LineStyle.h:119
void setLerp(FillStyle &f, const FillStyle &a, const FillStyle &b, double t)
Set the FillStyle to a lerp of a and b.
Definition: FillStyle.cpp:221
CapStyle
Definition: LineStyle.h:36
Definition: LineStyle.h:37
SWF stream wrapper class.
Definition: SWFStream.h:58
A basic RGBA type.
Definition: RGBA.h:35