clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 8fddd5b70352d01f9d5a1f23d4627a008d2feac4
parent 03420b805941ed7c00965f84ae9abf249b95bb18
Author: Alexandre BIQUE <bique.alexandre@gmail.com>
Date:   Tue,  4 Jan 2022 21:35:58 +0100

Add request_show() and request_hide()

Diffstat:
Minclude/clap/ext/gui.h | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/include/clap/ext/gui.h b/include/clap/ext/gui.h @@ -83,8 +83,18 @@ typedef struct clap_plugin_gui { typedef struct clap_host_gui { /* Request the host to resize the client area to width, height. * Return true on success, false otherwise. - * [thread-safe] */ - bool (*resize)(const clap_host_t *host, uint32_t width, uint32_t height); + * [main-thread] */ + bool (*request_resize)(const clap_host_t *host, uint32_t width, uint32_t height); + + /* Request the host to show the plugin gui. + * Return true on success, false otherwise. + * [main-thread] */ + bool (*request_show)(const clap_host_t *host); + + /* Request the host to hide the plugin gui. + * Return true on success, false otherwise. + * [main-thread] */ + bool (*request_hide)(const clap_host_t *host); } clap_host_gui_t; #pragma pack(pop)