
#include <renderable.h>
Public Member Functions | |
| Context () | |
| Context (Cairo::RefPtr< Cairo::Context > c, uint32_t f=0x00) | |
| bool | is_flag_set (RenderFlags rf) |
| bool | is_flag_unset (RenderFlags rf) |
| bool | set_flag (RenderFlags rf) |
| Returns the previous value so that the following can be written:. | |
| bool | unset_flag (RenderFlags rf) |
| Returns the previous value so that the following can be written:. | |
| void | set_flag (RenderFlags rf, bool value) |
| void | clear_flags () |
| operator Cairo::RefPtr< Cairo::Context > () const | |
| Cairo::RefPtr< Cairo::Context > | operator* () const |
| Cairo::RefPtr< Cairo::Context > | operator-> () const |
| operator bool () const | |
| Context & | operator= (Cairo::RefPtr< Cairo::Context > c) |
| void | save () |
| void | transform (const Matrix &matrix) |
| void | restore () |
| void | fill () |
| void | paint () |
| void | paint_with_alpha (double alpha) |
| void | stroke () |
| void | clear () |
| To support clear similar to smart pointer. | |
Public Attributes | |
| Cairo::RefPtr< Cairo::Context > | cairo |
| uint32_t | flags |
| Papyrus::Context::Context | ( | ) | [inline] |
| Papyrus::Context::Context | ( | Cairo::RefPtr< Cairo::Context > | c, | |
| uint32_t | f = 0x00 | |||
| ) | [inline] |
| void Papyrus::Context::clear | ( | ) | [inline] |
To support clear similar to smart pointer.
Referenced by Papyrus::Gtk::Viewport::expose_event_callback().
| void Papyrus::Context::clear_flags | ( | ) | [inline] |
References flags.
| void Papyrus::Context::fill | ( | ) | [inline] |
| bool Papyrus::Context::is_flag_set | ( | RenderFlags | rf | ) | [inline] |
References flags.
Referenced by Papyrus::RadialGradient::render(), and Papyrus::LinearGradient::render().
| bool Papyrus::Context::is_flag_unset | ( | RenderFlags | rf | ) | [inline] |
References flags.
Referenced by Papyrus::Polyline::draw().
| Papyrus::Context::operator bool | ( | ) | const [inline] |
| Papyrus::Context::operator Cairo::RefPtr< Cairo::Context > | ( | ) | const [inline] |
References cairo.
| Cairo::RefPtr<Cairo::Context> Papyrus::Context::operator* | ( | ) | const [inline] |
| Cairo::RefPtr<Cairo::Context> Papyrus::Context::operator-> | ( | ) | const [inline] |
| Context& Papyrus::Context::operator= | ( | Cairo::RefPtr< Cairo::Context > | c | ) | [inline] |
| void Papyrus::Context::paint | ( | ) | [inline] |
References Papyrus::RENDER_SUPPRESS_CAIRO_FILL.
Referenced by Papyrus::Image::draw(), Papyrus::Group::draw(), and Papyrus::Canvas::draw().
| void Papyrus::Context::paint_with_alpha | ( | double | alpha | ) | [inline] |
References Papyrus::RENDER_SUPPRESS_CAIRO_FILL.
Referenced by Papyrus::Drawable::render().
| void Papyrus::Context::restore | ( | ) | [inline] |
| void Papyrus::Context::save | ( | ) | [inline] |
| void Papyrus::Context::set_flag | ( | RenderFlags | rf, | |
| bool | value | |||
| ) | [inline] |
References set_flag(), and unset_flag().
| bool Papyrus::Context::set_flag | ( | RenderFlags | rf | ) | [inline] |
Returns the previous value so that the following can be written:.
bool old = cairo.set_flag( RENDER_SUPPRESS_CAIRO_FILL ); do some work cairo.set_flag( RENDER_SUPPRESS_CAIRO_FILL, old );
References flags.
Referenced by Papyrus::Stroke::render(), Papyrus::Fill::render(), and set_flag().
| void Papyrus::Context::stroke | ( | ) | [inline] |
| void Papyrus::Context::transform | ( | const Matrix & | matrix | ) | [inline] |
References Papyrus::RENDER_SUPPRESS_MATRIX.
Referenced by Papyrus::Drawable::calculate_extents(), and Papyrus::Drawable::render().
| bool Papyrus::Context::unset_flag | ( | RenderFlags | rf | ) | [inline] |
Returns the previous value so that the following can be written:.
bool old = cairo.set_flag( RENDER_SUPPRESS_CAIRO_FILL ); do some work cairo.set_flag( RENDER_SUPPRESS_CAIRO_FILL, old );
References flags.
Referenced by set_flag().
| Cairo::RefPtr<Cairo::Context> Papyrus::Context::cairo |
Referenced by operator Cairo::RefPtr< Cairo::Context >().
| uint32_t Papyrus::Context::flags |
1.6.1