Bug 362413 - expose cairo fill rule control. r=vlad

This commit is contained in:
tor%cs.brown.edu 2006-12-01 05:24:50 +00:00
parent fb70484b5d
commit 0c22a1838a
2 changed files with 22 additions and 0 deletions

View File

@ -429,6 +429,17 @@ public:
void SetMiterLimit(gfxFloat limit);
gfxFloat CurrentMiterLimit() const;
/**
** Fill Properties
**/
enum FillRule {
FILL_RULE_WINDING,
FILL_RULE_EVEN_ODD
};
void SetFillRule(FillRule rule);
FillRule CurrentFillRule() const;
/**
** Operators and Rendering control
**/

View File

@ -523,6 +523,17 @@ gfxContext::CurrentMiterLimit() const
return cairo_get_miter_limit(mCairo);
}
void
gfxContext::SetFillRule(FillRule rule)
{
cairo_set_fill_rule(mCairo, (cairo_fill_rule_t)rule);
}
gfxContext::FillRule
gfxContext::CurrentFillRule() const
{
return (FillRule)cairo_get_fill_rule(mCairo);
}
// clipping
void