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

Method mouseDown

samples/_timeline/CustomCallback/src/CustomCallbackApp.cpp:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void CustomCallbackApp::mouseDown( MouseEvent event )
72{
73 timeline().apply( &mCircle.mPos, vec2( event.getPos() ), 2.0f, EaseInOutCubic() )
74 .startFn( ColorToGreenFunctor( &gBackgroundColor ) )
75 .updateFn( std::bind( &Circle::posUpdate, &mCircle ) )
76 .finishFn( setBackgroundToBlue );
77}
78
79void CustomCallbackApp::draw()
80{

Callers

nothing calls this directly

Calls 5

EaseInOutCubicClass · 0.85
ColorToGreenFunctorClass · 0.85
bindFunction · 0.50
applyMethod · 0.45
getPosMethod · 0.45

Tested by

no test coverage detected