Gin
Public Member Functions | Public Attributes | List of all members
ScaledPluginEditor Class Reference

If you want your plugin editor to scale, just wrap it in this. More...

Inherits juce::AudioProcessorEditor.

Public Member Functions

 ScaledPluginEditor (juce::AudioProcessorEditor *editor_, juce::ValueTree state_={})
 
 ~ScaledPluginEditor () override
 
void setScale (float scale)
 
void paint (juce::Graphics &g) override
 
void resized () override
 

Public Attributes

juce::Component frame
 
std::unique_ptr< juce::AudioProcessorEditor > editor
 
juce::ComponentBoundsConstrainer constrainer
 
juce::ValueTree state
 

Detailed Description

If you want your plugin editor to scale, just wrap it in this.

Constructor & Destructor Documentation

◆ ScaledPluginEditor()

ScaledPluginEditor::ScaledPluginEditor ( juce::AudioProcessorEditor *  editor_,
juce::ValueTree  state_ = {} 
)

◆ ~ScaledPluginEditor()

ScaledPluginEditor::~ScaledPluginEditor ( )
override

Member Function Documentation

◆ setScale()

void ScaledPluginEditor::setScale ( float  scale)

References editor.

◆ paint()

void ScaledPluginEditor::paint ( juce::Graphics &  g)
override

◆ resized()

void ScaledPluginEditor::resized ( )
override

References editor, frame, math::min(), and state.

Member Data Documentation

◆ frame

juce::Component ScaledPluginEditor::frame

Referenced by resized().

◆ editor

std::unique_ptr<juce::AudioProcessorEditor> ScaledPluginEditor::editor

Referenced by resized(), and setScale().

◆ constrainer

juce::ComponentBoundsConstrainer ScaledPluginEditor::constrainer

◆ state

juce::ValueTree ScaledPluginEditor::state

Referenced by resized().


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