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

Method DrawModule

Source/CanvasControls.cpp:107–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void CanvasControls::DrawModule()
108{
109 ofPushStyle();
110 ofFill();
111 ofSetColor(100, 100, 100);
112 ofRect(0, 0, mWidth, 19);
113 ofPopStyle();
114 mRemoveElementButton->Draw();
115 mNumVisibleRowsEntry->Draw();
116 mClearButton->Draw();
117 mDragModeSelector->Draw();
118 if (mSelectedElement)
119 {
120 for (auto* control : mSelectedElement->GetUIControls())
121 control->Draw();
122 }
123}
124
125void CanvasControls::GetModuleDimensions(float& width, float& height)
126{

Callers

nothing calls this directly

Calls 7

ofPushStyleFunction · 0.85
ofFillFunction · 0.85
ofSetColorFunction · 0.85
ofRectFunction · 0.85
ofPopStyleFunction · 0.85
GetUIControlsMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected