Gin
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
StandaloneFilterWindow Class Reference

A class that can be used to run a simple standalone application containing your filter. More...

#include <gin_standalonefilterwindow.h>

Inherits juce::DocumentWindow, and juce::Button::Listener.

Public Types

typedef StandalonePluginHolder::PluginInOuts PluginInOuts
 

Public Member Functions

 StandaloneFilterWindow (const juce::String &title, juce::Colour backgroundColour, std::unique_ptr< StandalonePluginHolder > pluginHolderIn)
 
 StandaloneFilterWindow (const juce::String &title, juce::Colour backgroundColour, juce::PropertySet *settingsToUse, bool takeOwnershipOfSettings, const juce::String &preferredDefaultDeviceName=juce::String(), const juce::AudioDeviceManager::AudioDeviceSetup *preferredSetupOptions=nullptr, const juce::Array< PluginInOuts > &constrainToConfiguration={}, bool autoOpenMidiDevices=true)
 Creates a window with a given title and colour.
 
 ~StandaloneFilterWindow () override
 
PluginWrappergetAudioProcessor () const noexcept
 
juce::AudioDeviceManager & getDeviceManager () const noexcept
 
void resetToDefaultState ()
 Deletes and re-creates the plugin, resetting it to its default state.
 
void reopenEditor ()
 
void closeButtonPressed () override
 
void resized () override
 
virtual StandalonePluginHoldergetPluginHolder ()
 

Public Attributes

std::unique_ptr< StandalonePluginHolderpluginHolder
 

Detailed Description

A class that can be used to run a simple standalone application containing your filter.

Just create one of these objects in your JUCEApplicationBase::initialise() method, and let it do its work. It will create your filter object using the same createPluginFilter() function that the other plugin wrappers use.

Member Typedef Documentation

◆ PluginInOuts

Constructor & Destructor Documentation

◆ StandaloneFilterWindow() [1/2]

StandaloneFilterWindow::StandaloneFilterWindow ( const juce::String &  title,
juce::Colour  backgroundColour,
std::unique_ptr< StandalonePluginHolder pluginHolderIn 
)

◆ StandaloneFilterWindow() [2/2]

StandaloneFilterWindow::StandaloneFilterWindow ( const juce::String &  title,
juce::Colour  backgroundColour,
juce::PropertySet *  settingsToUse,
bool  takeOwnershipOfSettings,
const juce::String &  preferredDefaultDeviceName = juce::String(),
const juce::AudioDeviceManager::AudioDeviceSetup *  preferredSetupOptions = nullptr,
const juce::Array< PluginInOuts > &  constrainToConfiguration = {},
bool  autoOpenMidiDevices = true 
)

Creates a window with a given title and colour.

The settings object can be a PropertySet that the class should use to store its settings (it can also be null). If takeOwnershipOfSettings is true, then the settings object will be owned and deleted by this object.

◆ ~StandaloneFilterWindow()

StandaloneFilterWindow::~StandaloneFilterWindow ( )
override

Member Function Documentation

◆ getAudioProcessor()

PluginWrapper * StandaloneFilterWindow::getAudioProcessor ( ) const
noexcept

References pluginHolder.

◆ getDeviceManager()

juce::AudioDeviceManager & StandaloneFilterWindow::getDeviceManager ( ) const
noexcept

References pluginHolder.

◆ resetToDefaultState()

void StandaloneFilterWindow::resetToDefaultState ( )

Deletes and re-creates the plugin, resetting it to its default state.

◆ reopenEditor()

void StandaloneFilterWindow::reopenEditor ( )

◆ closeButtonPressed()

void StandaloneFilterWindow::closeButtonPressed ( )
override

◆ resized()

void StandaloneFilterWindow::resized ( )
override

◆ getPluginHolder()

virtual StandalonePluginHolder * StandaloneFilterWindow::getPluginHolder ( )
virtual

References pluginHolder.

Member Data Documentation

◆ pluginHolder

std::unique_ptr<StandalonePluginHolder> StandaloneFilterWindow::pluginHolder

The documentation for this class was generated from the following file: