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

Method run

test/cairoTest/cairoTest.cpp:313–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311// multi segment caps
312struct TestMultiSegmentCaps : public TestBase {
313 virtual void run( fli::cairo::Context &ctx ) {
314 ctx.moveTo( 50.0, 75.0 );
315 ctx.lineTo( 200.0, 75.0 );
316
317 ctx.moveTo( 50.0, 125.0 );
318 ctx.lineTo( 200.0, 125.0 );
319
320 ctx.moveTo( 50.0, 175.0 );
321 ctx.lineTo( 200.0, 175.0 );
322
323 ctx.setLineWidth( 30.0 );
324 ctx.setLineCap( fli::cairo::LINE_CAP_ROUND );
325 ctx.stroke();
326 }
327};
328
329// set line cap

Callers

nothing calls this directly

Calls 5

setLineWidthMethod · 0.80
setLineCapMethod · 0.80
strokeMethod · 0.80
moveToMethod · 0.45
lineToMethod · 0.45

Tested by

no test coverage detected