MCPcopy Create free account
hub / github.com/YCAMInterlab/Duration / drawTooltipDebug

Method drawTooltipDebug

Duration/src/DurationController.cpp:1770–1787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1768}
1769
1770void DurationController::drawTooltipDebug(){
1771 //draw tool tip position finder
1772 tooltipFont.drawString("("+ofToString(ofGetMouseX())+","+ofToString(ofGetMouseY())+")", ofGetMouseX(), ofGetMouseY());
1773 //draw tooltip debug balloons
1774 ofPushStyle();
1775 for(int i = 0; i < tooltips.size(); i++){
1776 ofNoFill();
1777 ofSetColor(tooltips[i].debugColor, 200);
1778 ofRect(tooltips[i].sourceRect);
1779 ofLine(tooltips[i].sourceRect.getMax(), tooltips[i].displayPoint);
1780 ofFill();
1781 ofSetColor(tooltips[i].debugColor, 50);
1782 ofRect(tooltips[i].sourceRect);
1783 ofSetColor(255);
1784 tooltipFont.drawString(tooltips[i].text, tooltips[i].sourceRect.x+5,tooltips[i].sourceRect.y+10);
1785 }
1786 ofPopStyle();
1787}
1788
1789void DurationController::exit(ofEventArgs& e){
1790 lock();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected