My Project
1.0.5
|
#include <lv2gui.hpp>
Inherits HBox, and LV2::MixinTree< A, E1, E2, E3, E4, E5, E6, E7, E8, E9 >.
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) |
LV2::Feature const *const * | features () |
char const * | bundle_path () const |
This is the base class for a plugin GUI. 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 GUI will control (not the URI for the GUI itself).
You can extend your GUI classes, for example adding support for GUI extensions, by passing GUI mixin classes as template parameters to GUI (second template parameter and onwards).
|
inlineprotected |
Get the filesystem path to the bundle that contains this GUI.
Referenced by LV2::GUI< Derived, Ext1, Ext2, Ext3, Ext4, Ext5, Ext6, Ext7, Ext8, Ext9 >::controller().
|
inline |
Get the controller - a handle on the plugin instance this GUI is controlling. You only need it if you want to handle extensions yourself.
References LV2::GUI< Derived, Ext1, Ext2, Ext3, Ext4, Ext5, Ext6, Ext7, Ext8, Ext9 >::bundle_path(), and LV2::GUI< Derived, Ext1, Ext2, Ext3, Ext4, Ext5, Ext6, Ext7, Ext8, Ext9 >::features().
|
inlineprotected |
Get the feature array that was passed by the host. This may only be valid while the constructor is running.
Referenced by LV2::GUI< Derived, Ext1, Ext2, Ext3, Ext4, Ext5, Ext6, Ext7, Ext8, Ext9 >::controller().
|
inline |
Override this if you want your GUI 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 GUI.
References LV2::GUI< Derived, Ext1, Ext2, Ext3, Ext4, Ext5, Ext6, Ext7, Ext8, Ext9 >::write().
|
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().
Referenced by LV2::GUI< Derived, Ext1, Ext2, Ext3, Ext4, Ext5, Ext6, Ext7, Ext8, Ext9 >::register_class().
|
inlineprotected |
Set the value of a control input port in the plugin instance.