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

Method DrawModule

Source/TimelineControl.cpp:62–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void TimelineControl::DrawModule()
63{
64 mTime = TheTransport->GetMeasureTime(gTime);
65
66 if (Minimized())
67 return;
68
69 if (mDock)
70 {
71 float w, h;
72 GetModuleDimensions(w, h);
73 SetPosition(0, ofGetHeight() / GetOwningContainer()->GetDrawScale() - h);
74 Resize(ofGetWidth() / GetOwningContainer()->GetDrawScale(), h);
75 }
76
77 mDockCheckbox->SetShowing(GetOwningContainer() == TheSynth->GetRootContainer() || GetOwningContainer() == TheSynth->GetUIContainer());
78
79 mTimeSlider->Draw();
80 mNumMeasuresEntry->Draw();
81 mResetButton->Draw();
82 mLoopCheckbox->Draw();
83 mDockCheckbox->Draw();
84 mLoopStartSlider->Draw();
85 mLoopEndSlider->Draw();
86}
87
88void TimelineControl::GetModuleDimensions(float& w, float& h)
89{

Callers

nothing calls this directly

Calls 8

ofGetHeightFunction · 0.85
ofGetWidthFunction · 0.85
GetMeasureTimeMethod · 0.80
GetDrawScaleMethod · 0.80
GetRootContainerMethod · 0.80
GetUIContainerMethod · 0.80
SetShowingMethod · 0.45
DrawMethod · 0.45

Tested by

no test coverage detected