MCPcopy Create free account
hub / github.com/braitsch/ofxDatGui / update

Method update

example-DataBinding/src/ofApp.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void ofApp::update()
36{
37// drag the circle around if the mouse is pressed while over it //
38 if (ofGetMousePressed() && gui->getMouseDown() == false){
39 ofPoint mouse = ofPoint(ofGetMouseX(), ofGetMouseY());
40 if (circle->inside(mouse)) {
41 circle->x = mouse.x;
42 circle->y = mouse.y;
43 }
44 }
45}
46
47void ofApp::draw()
48{

Callers

nothing calls this directly

Calls 2

insideMethod · 0.80
getMouseDownMethod · 0.45

Tested by

no test coverage detected