Public Member Functions | |
SurfacePattern (cairo_pattern_t*cobject, bool has_reference=false) | |
Create a C++ wrapper for the C instance. | |
RefPtr< const Surface > | get_surface () const |
Gets the surface associated with this pattern. | |
RefPtr< Surface > | get_surface () |
Gets the surface associated with this pattern. | |
virtual | ~SurfacePattern () |
void | set_extend (Extend extend) |
Extend | get_extend () const |
void | set_filter (Filter filter) |
Filter | get_filter () const |
Static Public Member Functions | |
static RefPtr< SurfacePattern > | create (const RefPtr< Surface >& surface) |
Protected Member Functions | |
SurfacePattern (const RefPtr< Surface >& surface) |
Cairo::SurfacePattern::SurfacePattern | ( | cairo_pattern_t * | cobject, | |
bool | has_reference = false | |||
) | [explicit] |
Create a C++ wrapper for the C instance.
This C++ instance should then be given to a RefPtr.
cobject | The C instance. | |
has_reference | Whether we already have a reference. Otherwise, the constructor will take an extra reference. |
virtual Cairo::SurfacePattern::~SurfacePattern | ( | ) | [virtual] |
static RefPtr<SurfacePattern> Cairo::SurfacePattern::create | ( | const RefPtr< Surface >& | surface | ) | [static] |
Extend Cairo::SurfacePattern::get_extend | ( | ) | const |
Filter Cairo::SurfacePattern::get_filter | ( | ) | const |
Gets the surface associated with this pattern.
Gets the surface associated with this pattern.
void Cairo::SurfacePattern::set_extend | ( | Extend | extend | ) |
void Cairo::SurfacePattern::set_filter | ( | Filter | filter | ) |