mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-05 12:05:22 +00:00
Bug 362413 - expose cairo fill rule control. r=vlad
This commit is contained in:
parent
fb70484b5d
commit
0c22a1838a
@ -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
|
||||
**/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user