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

Method DrawRightLabel

Source/UserPrefsEditor.cpp:364–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void UserPrefsEditor::DrawRightLabel(IUIControl* control, std::string text, ofColor color, float offsetX)
365{
366 if (control->IsShowing())
367 {
368 ofRectangle rect = control->GetRect(true);
369 ofPushStyle();
370 ofSetColor(color);
371 DrawTextNormal(text, rect.getMaxX() + offsetX, rect.getMaxY() - 3, 11);
372 ofPopStyle();
373 }
374}
375
376void UserPrefsEditor::CleanUpSave(std::string& json) //remove the markup hack that got the json file to save ordered
377{

Callers

nothing calls this directly

Calls 8

ofPushStyleFunction · 0.85
ofSetColorFunction · 0.85
DrawTextNormalFunction · 0.85
ofPopStyleFunction · 0.85
IsShowingMethod · 0.80
getMaxXMethod · 0.80
getMaxYMethod · 0.80
GetRectMethod · 0.45

Tested by

no test coverage detected