MCPcopy Create free account
hub / github.com/cinder/Cinder / pushFillRule

Method pushFillRule

blocks/Cairo/src/Cairo.cpp:2127–2130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2125 void pushStrokeWidth( float width ) { mStrokeWidthStack.push_back( width ); mCtx.setLineWidth( width ); }
2126 void popStrokeWidth() { mStrokeWidthStack.pop_back(); mCtx.setLineWidth( mStrokeWidthStack.back() ); }
2127 void pushFillRule( svg::FillRule rule ) {
2128 mFillRuleStack.push_back( rule == svg::FILL_RULE_EVENODD ? cairo::FILL_RULE_EVEN_ODD : cairo::FILL_RULE_WINDING );
2129 mCtx.setFillRule( mFillRuleStack.back() );
2130 }
2131 void popFillRule() { mFillRuleStack.pop_back(); mCtx.setFillRule( mFillRuleStack.back() ); }
2132 void pushLineCap( svg::LineCap lineCap ) {
2133 if( lineCap == cairo::LINE_CAP_BUTT ) mLineCapStack.push_back( cairo::LINE_CAP_BUTT );

Callers 1

startRenderMethod · 0.80

Calls 3

setFillRuleMethod · 0.80
backMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected