Gnash  0.8.11dev
Public Types | Public Member Functions | Public Attributes | List of all members
gnash::FillStyle Class Reference

FillStyle describes the various fill styles for shapes. More...

#include <FillStyle.h>

Public Types

typedef boost::variant< BitmapFill, SolidFill, GradientFillFill
 

Public Member Functions

template<typename T >
 FillStyle (const T &f)
 Construct a FillStyle from any Fill. More...
 
 FillStyle (const FillStyle &other)
 

Public Attributes

Fill fill
 

Detailed Description

FillStyle describes the various fill styles for shapes.

The FillStyle class is effectively a boost::variant, but to allow passing FillStyles using a forward declaration (and reducing compile times), it's necessary to use a class.

Member Typedef Documentation

§ Fill

Constructor & Destructor Documentation

§ FillStyle() [1/2]

template<typename T >
gnash::FillStyle::FillStyle ( const T &  f)
inline

Construct a FillStyle from any Fill.

The non-explicit templated contructor allows the same syntax as a simple boost::variant: FillStyle f = GradientFill();

§ FillStyle() [2/2]

gnash::FillStyle::FillStyle ( const FillStyle other)
inline

Member Data Documentation

§ fill

Fill gnash::FillStyle::fill

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