osci-render/Source/LuaComponent.cpp

19 wiersze
500 B
C++

#include "LuaComponent.h"
#include "PluginEditor.h"
LuaComponent::LuaComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor), slidersModel(sliders, p) {
setText(".lua File Settings");
sliders.setModel(&slidersModel);
sliders.setRowHeight(30);
addAndMakeVisible(sliders);
}
LuaComponent::~LuaComponent() {
}
void LuaComponent::resized() {
auto area = getLocalBounds().reduced(20);
sliders.setBounds(area);
}