Allow GUIs to optionally update on a timer

Otherwise plugins can't update their editors when the GUI is being blocked.
This commit is contained in:
Robbert van der Helm
2020-03-28 18:03:20 +01:00
parent d52989acc5
commit 8ec0ed4c3c
3 changed files with 83 additions and 10 deletions
+7 -1
View File
@@ -32,8 +32,11 @@ class Editor {
/**
* Open a window and return a handle to the new Win32 window that can be
* used by the hosted VST plugin.
*
* @param effect The plugin this window is being created for. Used to send
* `effEditIdle` messages on a timer.
*/
HWND open();
HWND open(AEffect* effect);
void close();
/**
@@ -64,6 +67,9 @@ class Editor {
*/
bool embed_into(const size_t parent_window_handle);
// Needed to handle idle updates through a timer
AEffect* plugin;
private:
/**
* Return the X11 window handle for the window if it's currently open.