MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DrawModuleUnclipped

Method DrawModuleUnclipped

Source/Push2Control.cpp:226–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void Push2Control::DrawModuleUnclipped()
227{
228 if (mDisplayModule != nullptr && !mDisplayModule->IsDeleted() && !sDrawingPush2Display &&
229 mDisplayModule->GetOwningContainer() != nullptr && mDisplayModule->IsShowing())
230 {
231 ofPushMatrix();
232 ofPushStyle();
233 ofVec2f pos = GetPosition();
234 ofTranslate(-pos.x, -pos.y);
235 DrawDisplayModuleRect(mDisplayModule->GetRect(), 3);
236 ofPopMatrix();
237 ofPopStyle();
238 }
239}
240
241void Push2Control::DrawDisplayModuleRect(ofRectangle rect, float thickness)
242{

Callers

nothing calls this directly

Calls 9

ofPushMatrixFunction · 0.85
ofPushStyleFunction · 0.85
ofTranslateFunction · 0.85
ofPopMatrixFunction · 0.85
ofPopStyleFunction · 0.85
IsDeletedMethod · 0.80
GetOwningContainerMethod · 0.80
IsShowingMethod · 0.80
GetRectMethod · 0.45

Tested by

no test coverage detected