Make the GUI embedding work

There's still a few things that need fixing.
This commit is contained in:
Robbert van der Helm
2020-03-19 17:29:30 +01:00
parent eebfceff56
commit f1f7523248
5 changed files with 104 additions and 15 deletions
+15
View File
@@ -9,6 +9,7 @@
#define NOMCX
#define NOIMM
#define WIN32_LEAN_AND_MEAN
#include <vestige/aeffectx.h>
#include <windows.h>
#include <memory>
@@ -35,6 +36,20 @@ class Editor {
HWND open();
void close();
/**
* Resize the window to match the given size, if open.
*
* @param new_size The rectangle with the plugin's current position.
*
* @return Whether the resizing was succesful. Will return false if the
* editor isn't open.
*/
bool resize(const VstRect& new_size);
// TODO: This should not be needed, and is just a test to see if this works
// at all
bool update();
/**
* Embed the (open) window into a parent window.
*