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

Method run

test/cairoTest/cairoTest.cpp:361–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359// set line join
360struct TestSetLineJoin : public TestBase {
361 virtual void run( fli::cairo::Context &ctx ) {
362 ctx.setLineWidth( 40.96 );
363 ctx.moveTo( 76.8, 84.48 );
364 ctx.relLineTo( 51.2, -51.2 );
365 ctx.relLineTo( 51.2, 51.2 );
366 ctx.setLineJoin( fli::cairo::LINE_JOIN_MITER );
367 ctx.stroke();
368
369 ctx.moveTo( 76.8, 161.28 );
370 ctx.relLineTo( 51.2, -51.2 );
371 ctx.relLineTo( 51.2, 51.2 );
372 ctx.setLineJoin( fli::cairo::LINE_JOIN_BEVEL );
373 ctx.stroke();
374
375 ctx.moveTo( 76.8, 238.08 );
376 ctx.relLineTo( 51.2, -51.2 );
377 ctx.relLineTo( 51.2, 51.2 );
378 ctx.setLineJoin( fli::cairo::LINE_JOIN_ROUND );
379 ctx.stroke();
380 }
381};
382
383// text

Callers

nothing calls this directly

Calls 5

setLineWidthMethod · 0.80
relLineToMethod · 0.80
setLineJoinMethod · 0.80
strokeMethod · 0.80
moveToMethod · 0.45

Tested by

no test coverage detected