chassis/plugin/ui.cpp

33 lines
822 B
C++
Raw Normal View History

2024-09-12 15:23:48 +00:00
#include "ui.hpp"
2024-12-31 21:52:21 +00:00
#include "chassis.hpp"
2024-09-12 15:23:48 +00:00
START_NAMESPACE_DISTRHO
namespace Art = Artwork;
DistrhoUIchassis::DistrhoUIchassis() : UI(Art::backgroundWidth, Art::backgroundHeight, true),
// UI
2024-12-31 21:52:21 +00:00
fImgBackground(Art::backgroundData, Art::backgroundWidth, Art::backgroundHeight, kImageFormatRGB)
2024-09-12 15:23:48 +00:00
{
}
void DistrhoUIchassis::programLoaded(uint32_t index) {
2024-12-31 21:52:21 +00:00
//printf("in programLoaded %d\n", index);
2024-09-12 15:23:48 +00:00
}
void DistrhoUIchassis::parameterChanged(uint32_t index, float value) {
2024-12-31 21:52:21 +00:00
//printf("in parameterchanged %d %f\n", index, value);
2024-09-12 15:23:48 +00:00
}
void DistrhoUIchassis::onDisplay() {
const GraphicsContext& context(getGraphicsContext());
fImgBackground.draw(context);
};
UI* createUI() {
return new DistrhoUIchassis();
}
END_NAMESPACE_DISTRHO