12#ifndef __PLUGINS_PLUGIN_GTK_H__
13#define __PLUGINS_PLUGIN_GTK_H__
15#include "gtk_wrapper.h"
85plugin_gtk_set_window_title (
Plugin * plugin, GtkWindow * window);
88plugin_gtk_add_control_row (
95plugin_gtk_on_save_preset_activate (GtkWidget * widget,
Plugin * plugin);
98plugin_gtk_menu_cmp (gconstpointer a, gconstpointer b, gpointer data);
149plugin_gtk_build_menu (
GtkWidget * plugin_gtk_new_label(const char *text, bool title, bool preformatted, float xalign, float yalign)
Creates a label for a control.
void plugin_gtk_create_window(Plugin *plugin)
Creates a new GtkWindow that will be used to either wrap plugin UIs or create generic UIs in.
void plugin_gtk_open_generic_ui(Plugin *plugin, bool fire_events)
Opens the generic UI of the plugin.
NONNULL int plugin_gtk_update_plugin_ui(Plugin *pl)
Called on each GUI frame to update the GTK UI.
bool plugin_gtk_setup_plugin_presets_list_box(GtkListBox *box, Plugin *plugin)
Sets up the combo box with all the presets the plugin has in the given bank, or all the presets if NU...
void plugin_gtk_generic_set_widget_value(Plugin *pl, PluginGtkController *controller, float control)
Called when a property changed or when there is a UI port event to set (update) the widget's value.
int plugin_gtk_close_ui(Plugin *plugin)
Closes the plugin's UI (either LV2 wrapped with suil, generic or LV2 external).
bool plugin_gtk_setup_plugin_banks_combo_box(GtkComboBoxText *cb, Plugin *plugin)
Sets up the combo box with all the banks the plugin has.
Plugin * plugin
Pointer back to plugin.
float last_set_control_val
Last set control value - used to avoid re-setting the same value on float controls.
Port * port
Port this control is for.
void * preset
This will be a LilvNode * for LV2 and an absolute path for carla.
The base plugin Inheriting plugins must have this as a child.
Must ONLY be created via port_new()