papyrus logo

Papyrus::Context Struct Reference

#include <renderable.h>

List of all members.

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
Contextoperator= (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

Constructor & Destructor Documentation

Papyrus::Context::Context (  )  [inline]
Papyrus::Context::Context ( Cairo::RefPtr< Cairo::Context >  c,
uint32_t  f = 0x00 
) [inline]

Member Function Documentation

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]
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]
void Papyrus::Context::paint_with_alpha ( double  alpha  )  [inline]
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]
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().


Member Data Documentation

Cairo::RefPtr<Cairo::Context> Papyrus::Context::cairo

The documentation for this struct was generated from the following file:

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