feat(gui): add GUI components and displays
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <JuceHeader.h>
|
||||
#include "../Resources.h"
|
||||
|
||||
namespace serum
|
||||
{
|
||||
|
||||
// ===========================================================================
|
||||
// LED-style text readout (e.g. preset name / master level).
|
||||
// ===========================================================================
|
||||
class Display : public juce::Component
|
||||
{
|
||||
public:
|
||||
void setTitle (const juce::String& t) { title = t; repaint(); }
|
||||
void setValue (const juce::String& v) { value = v; repaint(); }
|
||||
|
||||
void paint (juce::Graphics& g) override;
|
||||
|
||||
private:
|
||||
juce::String title, value;
|
||||
};
|
||||
|
||||
} // namespace serum
|
||||
Reference in New Issue
Block a user