#include <lv2gui.hpp>
Inherits LV2::Extension< Required >.
Public Member Functions | |
void | preset_added (uint32_t number, char const *name) |
void | preset_removed (uint32_t number) |
void | presets_cleared () |
void | current_preset_changed (uint32_t number) |
Protected Member Functions | |
void | change_preset (uint32_t preset) |
void | save_preset (uint32_t preset, char const *name) |
bool | host_supports_presets () const |
This is the type that your plugin or GUI class will inherit when you use the Presets mixin. The public and protected members defined here will be available in your plugin class.
void LV2::Presets< Required >::I< Derived >::change_preset | ( | uint32_t | preset | ) | [inline, protected] |
You can call this to request that the host changes the current preset to preset
.
void LV2::Presets< Required >::I< Derived >::current_preset_changed | ( | uint32_t | number | ) | [inline] |
This is called by the host to let the GUI know that the current preset has changed. If the number is equal to LV2_UI_PRESETS_NOPRESET
there is no current preset.
number | The number of the active preset, or LV2_UI_PRESETS_NOPRESET if there is no active preset. |
bool LV2::Presets< Required >::I< Derived >::host_supports_presets | ( | ) | const [inline, protected] |
Returns true
if the host supports the Preset feature, false
if it does not.
void LV2::Presets< Required >::I< Derived >::preset_added | ( | uint32_t | number, |
char const * | name | ||
) | [inline] |
This is called by the host to let the GUI know that a new preset has been added or renamed.
number | The number of the added preset. |
name | The name of the added preset. |
void LV2::Presets< Required >::I< Derived >::preset_removed | ( | uint32_t | number | ) | [inline] |
This is called by the host to let the GUI know that a previously existing preset has been removed.
number | The number of the removed preset. |
void LV2::Presets< Required >::I< Derived >::presets_cleared | ( | ) | [inline] |
This is called by the host to let the GUI know that all previously existing presets have been removed.
void LV2::Presets< Required >::I< Derived >::save_preset | ( | uint32_t | preset, |
char const * | name | ||
) | [inline, protected] |
You can call this to request that the host saves the current state of the plugin instance to a preset with the given number and name.