Gnash
0.8.11dev
|
#include <Renderer_agg_style.h>
Public Member Functions | |
StyleHandler () | |
~StyleHandler () | |
bool | is_solid (unsigned style) const |
Called by AGG to ask if a certain style is a solid color. More... | |
void | add_color (const agg::rgba8 &color) |
Adds a new solid fill color style. More... | |
void | add_bitmap (const agg_bitmap_info *bi, const SWFMatrix &mat, const SWFCxForm &cx, bool repeat, bool smooth) |
Adds a new bitmap fill style. More... | |
template<typename T > | |
void | addLinearGradient (const GradientFill &fs, const SWFMatrix &mat, const SWFCxForm &cx) |
template<typename T > | |
void | addFocalGradient (const GradientFill &fs, const SWFMatrix &mat, const SWFCxForm &cx) |
template<typename T > | |
void | addRadialGradient (const GradientFill &fs, const SWFMatrix &mat, const SWFCxForm &cx) |
agg::rgba8 | color (unsigned style) const |
Returns the color of a certain fill style (solid) More... | |
void | generate_span (agg::rgba8 *span, int x, int y, unsigned len, unsigned style) |
Called by AGG to generate a scanline span for non-solid fills. More... | |
template<typename Filter > | |
void | addBitmap (const agg_bitmap_info *bi, const SWFMatrix &mat, const SWFCxForm &cx) |
Add a bitmap with the specified filter. More... | |
Public Attributes | |
boost::ptr_vector< AggStyle > | _styles |
agg::rgba8 | m_transparent |
Style handler for AGG's compound rasterizer. This is the class which is called by AGG itself. It provides an interface to the various fill style classes defined above.
|
inline |
|
inline |
|
inline |
Adds a new bitmap fill style.
|
inline |
Adds a new solid fill color style.
References _styles.
|
inline |
Add a bitmap with the specified filter.
Filter | The FilterType to use. This affects scaling quality, pixel type etc. |
References _styles, gnash::agg_bitmap_info::get_data(), gnash::agg_bitmap_info::get_height(), gnash::agg_bitmap_info::get_rowlen(), and gnash::agg_bitmap_info::get_width().
|
inline |
References _styles, and gnash::GradientFill::focalPoint().
|
inline |
References _styles.
|
inline |
References _styles.
|
inline |
Returns the color of a certain fill style (solid)
References _styles, and m_transparent.
Referenced by gnash::AddStyles::operator()().
|
inline |
Called by AGG to generate a scanline span for non-solid fills.
References _styles.
Referenced by gnash::AggStyle::color().
|
inline |
Called by AGG to ask if a certain style is a solid color.
References _styles.
boost::ptr_vector<AggStyle> gnash::StyleHandler::_styles |
Referenced by add_color(), addBitmap(), addFocalGradient(), addLinearGradient(), addRadialGradient(), color(), generate_span(), and is_solid().
agg::rgba8 gnash::StyleHandler::m_transparent |
Referenced by color().