Gnash  0.8.11dev
Public Member Functions | List of all members
gnash::SolidFill Struct Reference

A SolidFill containing one color. More...

#include <FillStyle.h>

Public Member Functions

 SolidFill (rgba c)
 Construct a SolidFill. More...
 
 SolidFill (const SolidFill &other)
 Copy a SolidFill. More...
 
void setLerp (const SolidFill &a, const SolidFill &b, double ratio)
 Set this fill to a lerp of two other SolidFills. More...
 
rgba color () const
 Get the color of the fill. More...
 

Detailed Description

A SolidFill containing one color.

SolidFills are the simplest fill, containing only a single color.

Constructor & Destructor Documentation

§ SolidFill() [1/2]

gnash::SolidFill::SolidFill ( rgba  c)
inlineexplicit

Construct a SolidFill.

§ SolidFill() [2/2]

gnash::SolidFill::SolidFill ( const SolidFill other)
inline

Copy a SolidFill.

Member Function Documentation

§ color()

rgba gnash::SolidFill::color ( ) const
inline

§ setLerp()

void gnash::SolidFill::setLerp ( const SolidFill a,
const SolidFill b,
double  ratio 
)
inline

Set this fill to a lerp of two other SolidFills.

References color(), gnash::lerp(), and gnash::GradientRecord::ratio.


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