| 79 | } |
| 80 | |
| 81 | void 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 | |
| 99 | void LabelDisplay::GetModuleDimensions(float& w, float& h) |
| 100 | { |
nothing calls this directly
no test coverage detected