Fully implement the host side GUI extension

This commit is contained in:
Robbert van der Helm
2022-09-29 18:15:02 +02:00
parent dddcb84fd5
commit 87a9ac75b9
3 changed files with 77 additions and 0 deletions
@@ -19,6 +19,7 @@
#include <atomic>
#include <clap/ext/audio-ports.h>
#include <clap/ext/gui.h>
#include <clap/ext/latency.h>
#include <clap/ext/note-ports.h>
#include <clap/ext/params.h>
@@ -82,6 +83,15 @@ class clap_host_proxy {
static void CLAP_ABI ext_audio_ports_rescan(const clap_host_t* host,
uint32_t flags);
static void CLAP_ABI ext_gui_resize_hints_changed(const clap_host_t* host);
static bool CLAP_ABI ext_gui_request_resize(const clap_host_t* host,
uint32_t width,
uint32_t height);
static bool CLAP_ABI ext_gui_request_show(const clap_host_t* host);
static bool CLAP_ABI ext_gui_request_hide(const clap_host_t* host);
static void CLAP_ABI ext_gui_closed(const clap_host_t* host,
bool was_destroyed);
static void CLAP_ABI ext_latency_changed(const clap_host_t* host);
static uint32_t CLAP_ABI
@@ -116,6 +126,7 @@ class clap_host_proxy {
// depends on whether the plugin supported this extension when the host
// called `clap_plugin::init()`.
const clap_host_audio_ports_t ext_audio_ports_vtable;
const clap_host_gui_t ext_gui_vtable;
const clap_host_latency_t ext_latency_vtable;
const clap_host_note_ports_t ext_note_ports_vtable;
const clap_host_params_t ext_params_vtable;