#include <lv2gui.hpp>
Inherits LV2::Extension< Required >.
List of all members.
Detailed Description
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.
Member Function Documentation
void LV2::Presets::I::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::I::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.
- Parameters:
-
number | The number of the active preset, or LV2_UI_PRESETS_NOPRESET if there is no active preset. |
bool LV2::Presets::I::host_supports_presets |
( |
| ) |
const [inline, protected] |
Returns true
if the host supports the Preset feature, false
if it does not.
void LV2::Presets::I::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.
- Parameters:
-
number | The number of the added preset. |
name | The name of the added preset. |
void LV2::Presets::I::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.
- Parameters:
-
number | The number of the removed preset. |
void LV2::Presets::I::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::I::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.
The documentation for this struct was generated from the following file: