Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::renderer::openvg::StyleHandler Struct Reference

Transfer FillStyles to OpenVG styles. More...

#include <OpenVGStyle.h>

Inheritance diagram for gnash::renderer::openvg::StyleHandler:

Public Member Functions

 StyleHandler (const SWFCxForm &cx, const VGPaint &p, float x, float y)
 
void operator() (const GradientFill &g) const
 
void operator() (const SolidFill &f) const
 
void operator() (const BitmapFill &b) const
 

Detailed Description

Transfer FillStyles to OpenVG styles.

Note
These helper functions are used by the boost::variant used for fill styles. A variant is a C++ style version of the C union. Before accessing any of the data of the variant, we have to use boost::apply_visitor() to bind one of these classes to the style to extract the data.

Constructor & Destructor Documentation

§ StyleHandler()

gnash::renderer::openvg::StyleHandler::StyleHandler ( const SWFCxForm cx,
const VGPaint &  p,
float  x,
float  y 
)
inline

Member Function Documentation

§ operator()() [1/3]

void gnash::renderer::openvg::StyleHandler::operator() ( const GradientFill g) const
inline

§ operator()() [2/3]

void gnash::renderer::openvg::StyleHandler::operator() ( const SolidFill f) const
inline

§ operator()() [3/3]

void gnash::renderer::openvg::StyleHandler::operator() ( const BitmapFill b) const
inline

The documentation for this struct was generated from the following file: