Public Types | Public Member Functions | Public Attributes

gnash::FillStyle Class Reference

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

#include <FillStyle.h>

List of all members.

Public Types

typedef boost::variant
< BitmapFill, SolidFill,
GradientFill
Fill

Public Member Functions

template<typename T >
 FillStyle (const T &f)
 Construct a FillStyle from any Fill.
 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


Constructor & Destructor Documentation

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();

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

Member Data Documentation


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