0% found this document useful (0 votes)
33 views2 pages

Main

Uploaded by

Satoshi Suzuki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Main

Uploaded by

Satoshi Suzuki
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

/*

==============================================================================

This file contains the startup code for a PIP.

==============================================================================
*/

#include <JuceHeader.h>
#include "SpectrumAnalyserTutorial_01.h"

class Application : public juce::JUCEApplication


{
public:

//==============================================================================
Application() = default;

const juce::String getApplicationName() override { return


"SpectrumAnalyserTutorial"; }
const juce::String getApplicationVersion() override { return "1.0.0"; }

void initialise (const juce::String&) override


{
mainWindow.reset (new MainWindow ("SpectrumAnalyserTutorial", new
AnalyserComponent, *this));
}

void shutdown() override { mainWindow = nullptr; }

private:
class MainWindow : public juce::DocumentWindow
{
public:
MainWindow (const juce::String& name, juce::Component* c, JUCEApplication&
a)
: DocumentWindow (name,
juce::Desktop::getInstance().getDefaultLookAndFeel()
.findColour
(ResizableWindow::backgroundColourId),
juce::DocumentWindow::allButtons),
app (a)
{
setUsingNativeTitleBar (false);
setContentOwned (c, true);

#if JUCE_ANDROID || JUCE_IOS


setFullScreen (true);
#else
setResizable (true, false);
setResizeLimits (300, 250, 10000, 10000);
centreWithSize (getWidth(), getHeight());
#endif

setVisible (true);
}

void closeButtonPressed() override


{
app.systemRequestedQuit();
}

private:
JUCEApplication& app;

//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (MainWindow)
};

std::unique_ptr<MainWindow> mainWindow;
};

//==============================================================================
START_JUCE_APPLICATION (Application)

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy