chassis/plugin/ui.cpp
Gordon JC Pearce 0f0a592295 removed file
2024-09-12 17:03:13 +01:00

33 lines
816 B
C++

#include "ui.hpp"
#include "back.hpp"
START_NAMESPACE_DISTRHO
namespace Art = Artwork;
DistrhoUIchassis::DistrhoUIchassis() : UI(Art::backgroundWidth, Art::backgroundHeight, true),
// UI
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatRGBA)
{
}
void DistrhoUIchassis::programLoaded(uint32_t index) {
printf("in programLoaded %d\n", index);
}
void DistrhoUIchassis::parameterChanged(uint32_t index, float value) {
printf("in parameterchanged %d %f\n", index, value);
}
void DistrhoUIchassis::onDisplay() {
const GraphicsContext& context(getGraphicsContext());
fImgBackground.draw(context);
};
UI* createUI() {
return new DistrhoUIchassis();
}
END_NAMESPACE_DISTRHO