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

Method DrawDisplayModuleRect

Source/Push2Control.cpp:241–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241void Push2Control::DrawDisplayModuleRect(ofRectangle rect, float thickness)
242{
243 if (mDisplayModule->HasTitleBar())
244 {
245 rect.y -= IDrawableModule::TitleBarHeight();
246 rect.height += IDrawableModule::TitleBarHeight();
247 }
248 ofSetColor(255, 255, 255, ofMap(sin(gTime / 1000 * PI * 2), -1, 1, 60, 100));
249 ofSetLineWidth(thickness);
250 ofNoFill();
251 ofRect(rect.x - 3, rect.y - 3, rect.width + 6, rect.height + 6);
252}
253
254void Push2Control::PostRender()
255{

Callers

nothing calls this directly

Calls 6

ofSetColorFunction · 0.85
ofMapFunction · 0.85
ofSetLineWidthFunction · 0.85
ofNoFillFunction · 0.85
ofRectFunction · 0.85
HasTitleBarMethod · 0.45

Tested by

no test coverage detected