papyrus logo

Papyrus::Gradient::Stop Class Reference

A gradient stop for use with LinearGradient or RadialGradient. More...

#include <gradient.h>

Inheritance diagram for Papyrus::Gradient::Stop:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Stop ()
 Stop (const RGBA &rgba, double offset)
 Stop (const RGBA &rgba, double offset, double alpha)
 Stop (const Glib::ustring &id)
 Stop (const Glib::ustring &id, const RGBA &rgba, double offset)
 Stop (const Glib::ustring &id, const RGBA &rgba, double offset, double alpha)
 ~Stop ()
double offset () const
void set_offset (double off)
const RGBAcolor () const
RGBAcolor ()
void set_color (const RGBA &rgba)
void unset_color ()
double red () const
double green () const
double blue () const
double alpha () const
void set_alpha (double opa)

Protected Attributes

bool m_offset_set
bool m_color_set
bool m_alpha_set
double m_offset
RGBA m_color
double m_alpha

Detailed Description

A gradient stop for use with LinearGradient or RadialGradient.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>

Constructor & Destructor Documentation

Papyrus::Gradient::Stop::Stop (  ) 
Papyrus::Gradient::Stop::Stop ( const RGBA rgba,
double  offset 
)
Papyrus::Gradient::Stop::Stop ( const RGBA rgba,
double  offset,
double  alpha 
)
Papyrus::Gradient::Stop::Stop ( const Glib::ustring &  id  ) 
Papyrus::Gradient::Stop::Stop ( const Glib::ustring &  id,
const RGBA rgba,
double  offset 
)
Papyrus::Gradient::Stop::Stop ( const Glib::ustring &  id,
const RGBA rgba,
double  offset,
double  alpha 
)
Papyrus::Gradient::Stop::~Stop (  ) 

Member Function Documentation

double Papyrus::Gradient::Stop::alpha (  )  const
double Papyrus::Gradient::Stop::blue (  )  const

References Papyrus::RGBA::blue, and m_color.

RGBA & Papyrus::Gradient::Stop::color (  ) 

References m_color.

const RGBA & Papyrus::Gradient::Stop::color (  )  const

References m_color.

double Papyrus::Gradient::Stop::green (  )  const

References Papyrus::RGBA::green, and m_color.

double Papyrus::Gradient::Stop::offset (  )  const

References m_offset.

double Papyrus::Gradient::Stop::red (  )  const

References m_color, and Papyrus::RGBA::red.

void Papyrus::Gradient::Stop::set_alpha ( double  opa  ) 

References m_alpha, and m_alpha_set.

void Papyrus::Gradient::Stop::set_color ( const RGBA rgba  ) 

References m_color, and m_color_set.

void Papyrus::Gradient::Stop::set_offset ( double  off  ) 

References m_offset, and m_offset_set.

void Papyrus::Gradient::Stop::unset_color (  ) 

References m_color, and m_color_set.


Member Data Documentation

Referenced by alpha(), and set_alpha().

Referenced by alpha(), and set_alpha().

Referenced by set_color(), and unset_color().

Referenced by offset(), and set_offset().

Referenced by set_offset().


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

Generated on Fri Apr 16 12:41:07 2010 for papyrus by doxygen 1.6.1