18 Rectangle<int> bounds = getLocalBounds();
20 bounds.setWidth(bounds.getWidth() - bounds.getHeight() * 0.5f);
23 g.drawText(position_text, bounds, Justification::centredRight);
@ kBodyText
Definition skin.h:133
@ kBody
Definition skin.h:129
void resized() override
Called when the component is resized.
Definition wavetable_playhead_info.cpp:26
void playheadMoved(int position) override
Called when the associated playhead moves to a new position.
Definition wavetable_playhead_info.cpp:31
void paint(Graphics &g) override
Paints the current playhead position text onto the component.
Definition wavetable_playhead_info.cpp:9
int playhead_position_
The current playhead position being displayed.
Definition wavetable_playhead_info.h:52