Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
plugin_gtk.h File Reference

GTK window management for plugin UIs. More...

#include <gtk/gtk.h>
Include dependency graph for plugin_gtk.h:

Go to the source code of this file.

Data Structures

struct  PluginGtkController
 Widget for a control. More...
 
struct  PluginGtkPresetRecord
 

Functions

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.
 
int plugin_gtk_close_ui (Plugin *plugin)
 Closes the plugin's UI (either LV2 wrapped with suil, generic or LV2 external).
 
void plugin_gtk_set_window_title (Plugin *plugin, GtkWindow *window)
 
void plugin_gtk_add_control_row (GtkWidget *table, int row, const char *name, PluginGtkController *controller)
 
void plugin_gtk_on_save_preset_activate (GtkWidget *widget, Plugin *plugin)
 
gint plugin_gtk_menu_cmp (gconstpointer a, gconstpointer b, gpointer data)
 
bool plugin_gtk_setup_plugin_banks_combo_box (GtkComboBoxText *cb, Plugin *plugin)
 Sets up the combo box with all the banks the plugin has.
 
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 NULL is given.
 
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_generic_set_widget_value (Plugin *pl, PluginGtkController *controller, uint32_t size, LV2_URID type, const void *body)
 Called when a property changed or when there is a UI port event to set (update) the widget's value.
 

Detailed Description

GTK window management for plugin UIs.

Definition in file plugin_gtk.h.