papyrus logo

Papyrus::Paint Class Reference

#include <paint.h>

Inheritance diagram for Papyrus::Paint:

Inheritance graph
[legend]

List of all members.

Public Types

typedef PapyrusPointer< Paintpointer

Public Member Functions

 ~Paint ()
Paintoperator= (pointer other)
Paintoperator= (Cairo::RefPtr< Cairo::Pattern > p)
Paintoperator= (Cairo::RefPtr< Cairo::Context > c)
 Sets to the current cairo pattern.
Paintoperator= (const Paint &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 (Cairo::RefPtr< Cairo::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

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

Protected Attributes

Cairo::RefPtr< Cairo::Pattern > m_pattern


Detailed Description

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

Member Typedef Documentation

typedef PapyrusPointer<Paint> Papyrus::Paint::pointer

Reimplemented from Papyrus::Renderable.


Constructor & Destructor Documentation

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

Referenced by create().

Papyrus::Paint::~Paint (  ) 


Member Function Documentation

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

References m_pattern.

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

References Paint().

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

References Paint().

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

References Paint().

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

References Paint().

Paint::pointer Papyrus::Paint::create (  )  [static]

Papyrus::Paint::operator Cairo::RefPtr< Cairo::Pattern > (  )  const

Paint & Papyrus::Paint::operator= ( const Paint other  ) 

Paint & Papyrus::Paint::operator= ( Cairo::RefPtr< Cairo::Context >  c  ) 

Sets to the current cairo pattern.

Paint & Papyrus::Paint::operator= ( Cairo::RefPtr< Cairo::Pattern >  p  ) 

Paint & Papyrus::Paint::operator= ( Paint::pointer  other  ) 

void Papyrus::Paint::render ( Cairo::RefPtr< Cairo::Context >  cairo  )  const [virtual]

Implements Papyrus::Renderable.

References m_pattern.

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

Sets to the current cairo pattern.

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

void Papyrus::Paint::set ( Cairo::RefPtr< Cairo::Pattern >  p  ) 

void Papyrus::Paint::set ( Paint::pointer  other  ) 


Member Data Documentation

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

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


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

Generated on Wed Mar 18 12:34:57 2009 for papyrus by doxygen 1.5.7.1