Verified Commit b5e636b6 authored by Marc Jeanmougin's avatar Marc Jeanmougin
Browse files

Cairomm access to related cairo changes

parent f3918108
......@@ -175,6 +175,20 @@ SurfacePattern::Filter SurfacePattern::get_filter() const
}
void SurfacePattern::set_dither(Dither dither)
{
cairo_pattern_set_dither(m_cobject, (cairo_dither_t)dither);
check_object_status_and_throw_exception(*this);
}
SurfacePattern::Dither SurfacePattern::get_dither() const
{
auto result = static_cast<Dither>(cairo_pattern_get_dither(m_cobject));
check_object_status_and_throw_exception(*this);
return result;
}
Gradient::Gradient()
{
......
......@@ -321,6 +321,15 @@ public:
GAUSSIAN = CAIRO_FILTER_GAUSSIAN
};
enum class Dither
{
NONE = CAIRO_DITHER_NONE,
DEFAULT = CAIRO_DITHER_DEFAULT,
FAST = CAIRO_DITHER_FAST,
GOOD = CAIRO_DITHER_GOOD,
BEST = CAIRO_DITHER_BEST
};
/** Create a C++ wrapper for the C instance. This C++ instance should then be given to a RefPtr.
* @param cobject The C instance.
* @param has_reference Whether we already have a reference. Otherwise, the constructor will take an extra reference.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment