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

Method GetModuleDimensions

Source/LabelDisplay.cpp:99–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void LabelDisplay::GetModuleDimensions(float& w, float& h)
100{
101 w = MAX((mShowControls ? mWidth : 0), mLabelFont.GetStringWidth(mLabel, mLabelSize) + 6);
102 h = (mShowControls ? mHeight : 0) + (3 + mLabelFont.GetStringHeight(mLabel, mLabelSize)) * 1.05;
103}
104
105void LabelDisplay::IntSliderUpdated(IntSlider* slider, int oldVal, double time)
106{

Callers

nothing calls this directly

Calls 2

GetStringWidthMethod · 0.80
GetStringHeightMethod · 0.80

Tested by

no test coverage detected