DISTRHO Plugin Framework
|
#include <DistrhoUI.hpp>
Public Member Functions | |
UI (uint width=0, uint height=0) | |
virtual | ~UI () |
double | getSampleRate () const noexcept |
void | editParameter (uint32_t index, bool started) |
void | setParameterValue (uint32_t index, float value) |
void | setState (const char *key, const char *value) |
void | sendNote (uint8_t channel, uint8_t note, uint8_t velocity) |
void * | getPluginInstancePointer () const noexcept |
Protected Member Functions | |
virtual void | parameterChanged (uint32_t index, float value)=0 |
virtual void | programLoaded (uint32_t index)=0 |
virtual void | stateChanged (const char *key, const char *value)=0 |
virtual void | sampleRateChanged (double newSampleRate) |
virtual void | uiIdle () |
virtual void | uiFileBrowserSelected (const char *filename) |
virtual void | uiReshape (uint width, uint height) |
void | onResize (const ResizeEvent &ev) override |
Friends | |
class | UIExporter |
class | UIExporterWindow |
UI::UI | ( | uint | width = 0 , |
uint | height = 0 |
||
) |
|
virtual |
Destructor.
|
noexcept |
Get the current sample rate used in plugin processing.
void UI::editParameter | ( | uint32_t | index, |
bool | started | ||
) |
TODO: Document this.
void UI::setParameterValue | ( | uint32_t | index, |
float | value | ||
) |
TODO: Document this.
void UI::setState | ( | const char * | key, |
const char * | value | ||
) |
TODO: Document this.
void UI::sendNote | ( | uint8_t | channel, |
uint8_t | note, | ||
uint8_t | velocity | ||
) |
TODO: Document this.
|
noexcept |
TODO: Document this.
|
protectedpure virtual |
A parameter has changed on the plugin side.
This is called by the host to inform the UI about parameter changes.
|
protectedpure virtual |
A program has been loaded on the plugin side.
This is called by the host to inform the UI about program changes.
|
protectedpure virtual |
A state has changed on the plugin side.
This is called by the host to inform the UI about state changes.
|
protectedvirtual |
Optional callback to inform the UI about a sample rate change on the plugin side.
|
inlineprotectedvirtual |
TODO: Document this.
|
protectedvirtual |
File browser selected function.
|
protectedvirtual |
OpenGL window reshape function, called when parent window is resized. You can reimplement this function for a custom OpenGL state.
|
overrideprotected |
OpenGL widget resize function, called when the widget is resized. This is overriden here so the host knows when the UI is resized by you.