33 lines
816 B
C++
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
|