2
0
Fork 0
OPL/Source/iOSPluginEditorWrapper/iOSPluginEditorWrapper.h
George Reales 03b6d2c2ef v1.8
Parameter exposure (AU/iOS AUv3/VST/VST3) for host automation.
iOS Universal build with iPhone support.
Enhanced AUv3 GUI window display fit.
AUv3 GUI scrolling using left and right border sides.
2020-09-14 11:02:19 +02:00

49 lines
1.1 KiB
C++

/*
==============================================================================
iOSPluginEditorWrapper.h
Created: 2 Sep 2020 6:31:15pm
Author: Javier Andoni Aizpuru Rodríguez
==============================================================================
*/
#pragma once
#include "JuceHeader.h"
#include "ScrollbarManager.h"
class iOSPluginEditorWrapper :
public juce::AudioProcessorEditor
{
public:
iOSPluginEditorWrapper(juce::AudioProcessor& p, juce::AudioProcessorEditor* e);
~iOSPluginEditorWrapper();
void paint (juce::Graphics& g) override;
void resized() override;
void setInitialScrollbarWidth(int);
AudioProcessorEditor* getEditor();
private:
void disableViewportDragOnSliderDrag(juce::Component& c);
double initialW, initialH, ratio, previousW;
int initialScrollBarWidth { 20 };
bool isStandaloneWrapper { false };
std::unique_ptr<juce::Viewport> viewport { nullptr };
std::unique_ptr<ScrollbarManager> scrollbarManager { nullptr };
juce::PluginHostType hostType;
};