papyrus logo

Papyrus::Color Class Reference

Solid color paint suitable for fills and strokes. More...

#include <color.h>

Inheritance diagram for Papyrus::Color:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PAPYRUS_RENDERABLE (Color)
 ~Color ()
Coloroperator= (pointer other)
Coloroperator= (Cairo::RefPtr< Cairo::Pattern > p)
Coloroperator= (Cairo::RefPtr< Cairo::Context > c)
 Sets to the current cairo pattern.
Coloroperator= (const Color &other)
void set (pointer other)
void set (Cairo::RefPtr< Cairo::Pattern > p)
void set (Cairo::RefPtr< Cairo::Context > cairo)
 Sets to the current cairo pattern.
Cairo::RefPtr< Cairo::Pattern > cairo_pattern () const
 operator Cairo::RefPtr< Cairo::Pattern > () const
virtual void render (Context &cairo) const

Static Public Member Functions

static pointer create ()
static pointer create (const Glib::ustring &color_string)
static pointer create (Cairo::RefPtr< Cairo::Pattern > p)
static pointer create (const Glib::ustring &id, const Glib::ustring &color_string)
static pointer create (const Glib::ustring &id, Cairo::RefPtr< Cairo::Pattern > p)

Protected Member Functions

 Color (const Glib::ustring &id, Cairo::RefPtr< Cairo::Pattern > pattern)

Protected Attributes

Cairo::RefPtr< Cairo::Pattern > m_pattern

Detailed Description

Solid color paint suitable for fills and strokes.

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

Constructor & Destructor Documentation

Papyrus::Color::Color ( const Glib::ustring &  id,
Cairo::RefPtr< Cairo::Pattern >  pattern 
) [protected]

Referenced by create().

Papyrus::Color::~Color (  ) 

Member Function Documentation

Cairo::RefPtr< Cairo::Pattern > Papyrus::Color::cairo_pattern (  )  const

References m_pattern.

Color::pointer Papyrus::Color::create ( const Glib::ustring &  id,
Cairo::RefPtr< Cairo::Pattern >  p 
) [static]

References Color().

Color::pointer Papyrus::Color::create ( const Glib::ustring &  id,
const Glib::ustring &  color_string 
) [static]

References Color().

Color::pointer Papyrus::Color::create ( Cairo::RefPtr< Cairo::Pattern >  p  )  [static]

References Color().

Color::pointer Papyrus::Color::create ( const Glib::ustring &  color_string  )  [static]

References Color().

Color::pointer Papyrus::Color::create (  )  [static]
Papyrus::Color::operator Cairo::RefPtr< Cairo::Pattern > (  )  const
Color & Papyrus::Color::operator= ( const Color other  ) 
Color & Papyrus::Color::operator= ( Cairo::RefPtr< Cairo::Context >  c  ) 

Sets to the current cairo pattern.

Color & Papyrus::Color::operator= ( Cairo::RefPtr< Cairo::Pattern >  p  ) 
Color & Papyrus::Color::operator= ( Color::pointer  other  ) 
Papyrus::Color::PAPYRUS_RENDERABLE ( Color   ) 
void Papyrus::Color::render ( Context cairo  )  const [virtual]

Implements Papyrus::Renderable.

References m_pattern.

void Papyrus::Color::set ( Cairo::RefPtr< Cairo::Context >  cairo  ) 

Sets to the current cairo pattern.

References m_pattern, and Papyrus::Object::m_signal_changed.

void Papyrus::Color::set ( Cairo::RefPtr< Cairo::Pattern >  p  ) 
void Papyrus::Color::set ( Color::pointer  other  ) 

Member Data Documentation

Cairo::RefPtr<Cairo::Pattern> Papyrus::Color::m_pattern [protected]

Referenced by cairo_pattern(), operator=(), render(), and set().


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

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