LV2 Toolkit
1.2.0
|
#include <lvtk/ui.hpp>
Public Member Functions | |
void | port_event (uint32_t port, uint32_t buffer_size, uint32_t format, void const *buffer) |
void * | controller () |
Static Public Member Functions | |
static int | register_class (char const *uri) |
Protected Member Functions | |
void | write (uint32_t port, uint32_t buffer_size, uint32_t format, void const *buffer) |
void | write_control (uint32_t port, float value) |
Feature const *const * | features () |
char const * | bundle_path () const |
This is the base class for a plugin UI. You should inherit it and override any public member functions you want to provide implementations for. All subclasses must have a constructor with the signature
where plugin_uri
is the URI of the plugin that this UI will control (not the URI for the UI itself).
You can extend your UI classes, for example adding support for UI extensions, by passing UI mixin classes as template parameters to UI (second template parameter and onwards).
|
inlineprotected |
Get the filesystem path to the bundle that contains this UI.
|
inline |
Get the controller
|
inlineprotected |
Get the feature array
|
inline |
Override this if you want your UI to do something when a control port value changes in the plugin instance.
|
inlinestatic |
Use this template function to register a class as a LV2 UI.
uri | The UIs URI |
|
inlineprotected |
Send a chunk of data to a plugin port. The format of the chunk is determined by the port type and the transfer mechanisms used, you should probably use a wrapper function instead such as write_control().
|
inlineprotected |
Set the value of a control input port in the plugin instance.