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

Method DrawModule

Source/LabelDisplay.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void LabelDisplay::DrawModule()
82{
83 if (Minimized() || IsVisible() == false)
84 return;
85
86 if (mShowControls)
87 {
88 mShowControlsCheckbox->Draw();
89 mLabelEntry->Draw();
90 mLabelSizeSlider->Draw();
91 mLabelFontDropdown->Draw();
92 mLabelColorDropdown->Draw();
93 }
94
95 ofSetColor(mLabelColor);
96 mLabelFont.DrawString(mLabel, mLabelSize, 2, (mLabelFont.GetStringHeight(mLabel, mLabelSize) / 1.25) + (mShowControls ? mHeight : 0));
97}
98
99void LabelDisplay::GetModuleDimensions(float& w, float& h)
100{

Callers

nothing calls this directly

Calls 4

ofSetColorFunction · 0.85
DrawStringMethod · 0.80
GetStringHeightMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected