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

Method GetModuleDimensions

Source/TitleBar.cpp:534–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

532}
533
534void TitleBar::GetModuleDimensions(float& width, float& height)
535{
536 if (HiddenByZoom())
537 {
538 width = 0;
539 height = 0;
540 return;
541 }
542
543 width = ofGetWidth() / GetOwningContainer()->GetDrawScale() + 5;
544 if (GetPixelWidth() < kDoubleHeightThreshold)
545 height = 36 * 2;
546 else
547 height = 36;
548}
549
550void TitleBar::CheckboxUpdated(Checkbox* checkbox, double time)
551{

Callers

nothing calls this directly

Calls 2

ofGetWidthFunction · 0.85
GetDrawScaleMethod · 0.80

Tested by

no test coverage detected