|
iPlug2 - C++ Audio Plug-in Framework
|
Reaper extension base class interface. More...
#include <ReaperExtBase.h>
Public Member Functions | |
| ReaperExtBase (reaper_plugin_info_t *pRec) | |
| void | BeginInformHostOfParamChangeFromUI (int paramIdx) override |
| void | EndInformHostOfParamChangeFromUI (int paramIdx) override |
| bool | EditorResizeFromUI (int viewWidth, int viewHeight, bool needsPlatformResize) override |
| virtual void | OnIdle () |
| Called during idle processing - override to perform periodic tasks. More... | |
| void | RegisterAction (const char *actionName, std::function< void()> func, bool addMenuItem=false, int *pToggle=nullptr) |
| Registers an action with the REAPER extension system. More... | |
| void | ShowHideMainWindow () |
| Toggles the visibility of the main extension window. More... | |
| void | ToggleDocking () |
| Toggles between docked and floating state. More... | |
| bool | IsDocked () const |
| Returns true if the window is currently docked. More... | |
| void | SetDockId (const char *id) |
| Sets the unique identifier used for dock state persistence. More... | |
Static Public Member Functions | |
| static bool | HookCommandProc (int command, int flag) |
| static int | ToggleActionCallback (int command) |
Reaper extension base class interface.
Definition at line 38 of file ReaperExtBase.h.
| ReaperExtBase::ReaperExtBase | ( | reaper_plugin_info_t * | pRec | ) |
Definition at line 5 of file ReaperExtBase.cpp.
|
virtual |
Definition at line 15 of file ReaperExtBase.cpp.
|
inlineoverride |
Definition at line 46 of file ReaperExtBase.h.
|
override |
Definition at line 49 of file ReaperExtBase.cpp.
|
inlineoverride |
Definition at line 48 of file ReaperExtBase.h.
|
static |
Definition at line 203 of file ReaperExtBase.cpp.
|
inline |
Returns true if the window is currently docked.
Definition at line 69 of file ReaperExtBase.h.
Referenced by ShowHideMainWindow(), and ToggleDocking().
|
inlinevirtual |
Called during idle processing - override to perform periodic tasks.
Definition at line 53 of file ReaperExtBase.h.
| void ReaperExtBase::RegisterAction | ( | const char * | actionName, |
| std::function< void()> | func, | ||
| bool | addMenuItem = false, |
||
| int * | pToggle = nullptr |
||
| ) |
Registers an action with the REAPER extension system.
| actionName | The name of the action to register |
| func | The function to call when the action is executed |
| addMenuItem | If true, adds a menu item for this action |
| pToggle | Optional pointer to an int for toggle state |
Definition at line 183 of file ReaperExtBase.cpp.
|
inline |
Sets the unique identifier used for dock state persistence.
| id | Unique identifier string (defaults to PLUG_CLASS_NAME) |
Definition at line 73 of file ReaperExtBase.h.
| void ReaperExtBase::ShowHideMainWindow | ( | ) |
Toggles the visibility of the main extension window.
Definition at line 97 of file ReaperExtBase.cpp.
References IsDocked().
|
static |
Definition at line 216 of file ReaperExtBase.cpp.
| void ReaperExtBase::ToggleDocking | ( | ) |
Toggles between docked and floating state.
Definition at line 111 of file ReaperExtBase.cpp.
References IsDocked().