iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
IPlugCocoaEditorDelegate.h
Go to the documentation of this file.
1/*
2 ==============================================================================
3
4 This file is part of the iPlug 2 library. Copyright (C) the iPlug 2 developers.
5
6 See LICENSE.txt for more info.
7
8 ==============================================================================
9*/
10
11#pragma once
12
13#include "IPlugEditorDelegate.h"
14
20BEGIN_IPLUG_NAMESPACE
21
25{
26public:
27 CocoaEditorDelegate(int nParams);
28 virtual ~CocoaEditorDelegate();
29
30 void* OpenWindow(void* pParent) override;
31 void CloseWindow() override;
32
33 bool OnMessage(int msgTag, int ctrlTag, int dataSize, const void* pData) override;
34 void OnParamChangeUI(int paramIdx, EParamSource source) override;
35 void OnMidiMsgUI(const IMidiMsg& msg) override;
36 void OnSysexMsgUI(const ISysEx& msg) override;
37 void SendControlValueFromDelegate(int ctrlTag, double normalizedValue) override;
38 void SendControlMsgFromDelegate(int ctrlTag, int msgTag, int dataSize, const void* pData) override;
39 void SendParameterValueFromDelegate(int paramIdx, double value, bool normalized) override;
40protected:
41 void* mViewController = nullptr;
42};
43
44END_IPLUG_NAMESPACE
An editor delegate base class that uses Apple frameworks for the UI, either in Objective C,...
void OnSysexMsgUI(const ISysEx &msg) override
Handle incoming SysEx messages sent to the user interface.
void * OpenWindow(void *pParent) override
If you are not using IGraphics, you can implement this method to attach to the native parent view e....
void SendControlValueFromDelegate(int ctrlTag, double normalizedValue) override
SendControlValueFromDelegate (Abbreviation: SCVFD) WARNING: should not be called on the realtime audi...
void CloseWindow() override
If you are not using IGraphics you can if you need to free resources etc when the window closes.
bool OnMessage(int msgTag, int ctrlTag, int dataSize, const void *pData) override
This could be implemented in either DSP or EDITOR to receive a message from the other one.
void OnMidiMsgUI(const IMidiMsg &msg) override
Handle incoming MIDI messages sent to the user interface.
void OnParamChangeUI(int paramIdx, EParamSource source) override
Override this method to do something when a parameter changes on the main/UI thread Like OnParamChang...
void SendParameterValueFromDelegate(int paramIdx, double value, bool normalized) override
SendParameterValueFromDelegate (Abbreviation: SPVFD) WARNING: should not be called on the realtime au...
void SendControlMsgFromDelegate(int ctrlTag, int msgTag, int dataSize, const void *pData) override
SendControlMsgFromDelegate (Abbreviation: SCMFD) WARNING: should not be called on the realtime audio ...
This pure virtual interface delegates communication in both directions between a UI editor and someth...
EParamSource
Used to identify the source of a parameter change.
Encapsulates a MIDI message and provides helper functions.
Definition: IPlugMidi.h:31
A struct for dealing with SysEx messages.
Definition: IPlugMidi.h:539