
Solid color paint suitable for fills and strokes. More...
#include <color.h>

Public Member Functions | |
| PAPYRUS_RENDERABLE (Color) | |
| ~Color () | |
| Color & | operator= (pointer other) |
| Color & | operator= (Cairo::RefPtr< Cairo::Pattern > p) |
| Color & | operator= (Cairo::RefPtr< Cairo::Context > c) |
| Sets to the current cairo pattern. | |
| Color & | operator= (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 |
Solid color paint suitable for fills and strokes.
| Papyrus::Color::Color | ( | const Glib::ustring & | id, | |
| Cairo::RefPtr< Cairo::Pattern > | pattern | |||
| ) | [protected] |
Referenced by create().
| Papyrus::Color::~Color | ( | ) |
| 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] |
References Color().
Referenced by Papyrus::Stroke::create(), Papyrus::Fill::create(), Papyrus::RGBA::operator Paint::pointer(), and Papyrus::SVG::process_element().
| Papyrus::Color::operator Cairo::RefPtr< Cairo::Pattern > | ( | ) | const |
References m_pattern, and Papyrus::Object::m_signal_changed.
| 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 | ) |
References m_pattern, and Papyrus::Object::m_signal_changed.
| void Papyrus::Color::set | ( | Color::pointer | other | ) |
References m_pattern, and Papyrus::Object::m_signal_changed.
Cairo::RefPtr<Cairo::Pattern> Papyrus::Color::m_pattern [protected] |
Referenced by cairo_pattern(), operator=(), render(), and set().
1.6.1