aboutsummaryrefslogtreecommitdiff
path: root/src/UI
diff options
context:
space:
mode:
authorDominik Kaiser2025-10-03 21:50:22 +0200
committerDominik Kaiser2025-10-03 21:50:56 +0200
commit282f670fe24bb772e1eb2929e1cb4c58ca3ad166 (patch)
treeb50dfdd6f589c6e61606b25b72ddb40439732275 /src/UI
parent59ac3b92d6a7dc7ba29791121be7bcc2dc50aead (diff)
downloadSchroederReverb-282f670fe24bb772e1eb2929e1cb4c58ca3ad166.tar.gz
SchroederReverb-282f670fe24bb772e1eb2929e1cb4c58ca3ad166.zip
Add and apply .clang-format
Diffstat (limited to 'src/UI')
-rw-r--r--src/UI/PluginEditor.cpp29
-rw-r--r--src/UI/PluginEditor.h10
2 files changed, 20 insertions, 19 deletions
diff --git a/src/UI/PluginEditor.cpp b/src/UI/PluginEditor.cpp
index 1ba07af..b3b8256 100644
--- a/src/UI/PluginEditor.cpp
+++ b/src/UI/PluginEditor.cpp
@@ -1,32 +1,33 @@
-#include "../PluginProcessor.h"
#include "PluginEditor.h"
+#include "../PluginProcessor.h"
//==============================================================================
-SchroederReverbAudioProcessorEditor::SchroederReverbAudioProcessorEditor (SchroederReverbAudioProcessor& p)
- : AudioProcessorEditor (&p), processorRef (p)
+SchroederReverbAudioProcessorEditor::SchroederReverbAudioProcessorEditor(
+ SchroederReverbAudioProcessor& p)
+ : AudioProcessorEditor(&p), processorRef(p)
{
- juce::ignoreUnused (processorRef);
+ juce::ignoreUnused(processorRef);
// Make sure that before the constructor has finished, you've set the
// editor's size to whatever you need it to be.
- setSize (400, 300);
+ setSize(400, 300);
}
-SchroederReverbAudioProcessorEditor::~SchroederReverbAudioProcessorEditor()
-{
-}
+SchroederReverbAudioProcessorEditor::~SchroederReverbAudioProcessorEditor() {}
//==============================================================================
-void SchroederReverbAudioProcessorEditor::paint (juce::Graphics& g)
+void
+SchroederReverbAudioProcessorEditor::paint(juce::Graphics& g)
{
// (Our component is opaque, so we must completely fill the background with a solid colour)
- g.fillAll (getLookAndFeel().findColour (juce::ResizableWindow::backgroundColourId));
+ g.fillAll(getLookAndFeel().findColour(juce::ResizableWindow::backgroundColourId));
- g.setColour (juce::Colours::white);
- g.setFont (15.0f);
- g.drawFittedText ("Hello World!", getLocalBounds(), juce::Justification::centred, 1);
+ g.setColour(juce::Colours::white);
+ g.setFont(15.0f);
+ g.drawFittedText("Hello World!", getLocalBounds(), juce::Justification::centred, 1);
}
-void SchroederReverbAudioProcessorEditor::resized()
+void
+SchroederReverbAudioProcessorEditor::resized()
{
// This is generally where you'll want to lay out the positions of any
// subcomponents in your editor..
diff --git a/src/UI/PluginEditor.h b/src/UI/PluginEditor.h
index 1f30a89..1f7a5bb 100644
--- a/src/UI/PluginEditor.h
+++ b/src/UI/PluginEditor.h
@@ -5,18 +5,18 @@
//==============================================================================
class SchroederReverbAudioProcessorEditor final : public juce::AudioProcessorEditor
{
-public:
- explicit SchroederReverbAudioProcessorEditor (SchroederReverbAudioProcessor&);
+ public:
+ explicit SchroederReverbAudioProcessorEditor(SchroederReverbAudioProcessor&);
~SchroederReverbAudioProcessorEditor() override;
//==============================================================================
- void paint (juce::Graphics&) override;
+ void paint(juce::Graphics&) override;
void resized() override;
-private:
+ private:
// This reference is provided as a quick way for your editor to
// access the processor object that created it.
SchroederReverbAudioProcessor& processorRef;
- JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SchroederReverbAudioProcessorEditor)
+ JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(SchroederReverbAudioProcessorEditor)
};