| 1768 | } |
| 1769 | |
| 1770 | void 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 | |
| 1789 | void DurationController::exit(ofEventArgs& e){ |
| 1790 | lock(); |
nothing calls this directly
no outgoing calls
no test coverage detected