-
Notifications
You must be signed in to change notification settings - Fork 0
/
PluginEditor.cs
40 lines (31 loc) · 1.02 KB
/
PluginEditor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using Jacobi.Vst.Core;
using Jacobi.Vst.Plugin.Framework;
using Jacobi.Vst.Plugin.Framework.Common;
namespace FSPreview
{
internal sealed class PluginEditor : IVstPluginEditor
{
private readonly WinFormsControlWrapper<PluginEditorUi> m_wrapper;
public PluginEditor() {
m_wrapper = new WinFormsControlWrapper<PluginEditorUi>();
}
public Rectangle Bounds {
get { return m_wrapper.Bounds; }
}
public void Close() {
m_wrapper.SafeInstance.Player.DisposeInternal();
m_wrapper.Close();
}
public bool KeyDown(byte ascii, VstVirtualKey virtualKey, VstModifierKeys modifers) {
return false;
}
public bool KeyUp(byte ascii, VstVirtualKey virtualKey, VstModifierKeys modifers) {
return false;
}
public VstKnobMode KnobMode { get; set; }
public void Open(IntPtr hWnd) {
m_wrapper.Open(hWnd);
}
public void ProcessIdle() { }
}
}