23BEGIN_IGRAPHICS_NAMESPACE
64 return mMakeGraphicsFunc();
73 mLayoutFunc(pGraphics);
94 std::function<
IGraphics*()> mMakeGraphicsFunc =
nullptr;
95 std::function<void(
IGraphics* pGraphics)> mLayoutFunc =
nullptr;
97 std::unique_ptr<IGraphics> mGraphics;
100 float mLastScale = 0.f;
101 bool mClosing =
false;
104END_IGRAPHICS_NAMESPACE
Manages a block of memory, for plug-in settings store/recall.
The lowest level base class of an IGraphics control.
This pure virtual interface delegates communication in both directions between a UI editor and someth...
An editor delegate base class that uses IGraphics for the UI.
bool SerializeEditorSize(IByteChunk &data) const
Serializes the size and scale of the IGraphics.
const IGraphics * GetUI() const
Get a const pointer to the IGraphics context.
void * OpenWindow(void *pHandle) final
If you are not using IGraphics, you can implement this method to attach to the native parent view e....
int UnserializeEditorSize(const IByteChunk &chunk, int startPos)
Unserializes the size and scale of the IGraphics.
void SetScreenScale(float scale) final
Can be used by a host API to inform the editor of screen scale changes.
bool OnKeyDown(const IKeyPress &key) override
KeyDown handler, in order to get keystrokes from certain hosts/plugin formats that send key press mes...
bool SerializeEditorState(IByteChunk &chunk) const override
Serializes the editor state (such as scale) into a binary chunk.
void SendControlValueFromDelegate(int ctrlTag, double normalizedValue) override
SendControlValueFromDelegate (Abbreviation: SCVFD) WARNING: should not be called on the realtime audi...
void SendMidiMsgFromDelegate(const IMidiMsg &msg) override
SendMidiMsgFromDelegate (Abbreviation: SMMFD) WARNING: should not be called on the realtime audio thr...
void OnParentWindowResize(int width, int height) override
Called by app wrappers when the OS window scaling buttons/resizers are used.
int UnserializeEditorState(const IByteChunk &chunk, int startPos) override
Unserializes editor state (such as scale).
virtual void LayoutUI(IGraphics *pGraphics)
Called to layout controls when the GUI is initially opened and again if the UI size changes.
void SendControlMsgFromDelegate(int ctrlTag, int msgTag, int dataSize=0, const void *pData=nullptr) override
SendControlMsgFromDelegate (Abbreviation: SCMFD) WARNING: should not be called on the realtime audio ...
bool OnKeyUp(const IKeyPress &key) override
KeyDown handler, in order to get keystrokes from certain hosts/plugin formats that send key press mes...
IGraphics * GetUI()
Get a pointer to the IGraphics context.
virtual IGraphics * CreateGraphics()
Called to create the IGraphics instance for this editor.
void CloseWindow() final
If you are not using IGraphics you can if you need to free resources etc when the window closes.
void SendParameterValueFromDelegate(int paramIdx, double value, bool normalized) override
SendParameterValueFromDelegate (Abbreviation: SPVFD) WARNING: should not be called on the realtime au...
The lowest level base class of an IGraphics context.
Used for key press info, such as ASCII representation, virtual key (mapped to win32 codes) and modifi...
Encapsulates a MIDI message and provides helper functions.