iPlug2 - C++ Audio Plug-in Framework
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ReaperExtBase Class Reference

Reaper extension base class interface. More...

#include <ReaperExtBase.h>

Inheritance diagram for ReaperExtBase:
[legend]

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 ()
 

Static Public Member Functions

static bool HookCommandProc (int command, int flag)
 
static int ToggleActionCallback (int command)
 

Detailed Description

Reaper extension base class interface.

Definition at line 27 of file ReaperExtBase.h.

Constructor & Destructor Documentation

◆ ReaperExtBase()

ReaperExtBase::ReaperExtBase ( reaper_plugin_info_t *  pRec)

Definition at line 1 of file ReaperExtBase.cpp.

◆ ~ReaperExtBase()

ReaperExtBase::~ReaperExtBase ( )
virtual

Definition at line 8 of file ReaperExtBase.cpp.

Member Function Documentation

◆ BeginInformHostOfParamChangeFromUI()

void ReaperExtBase::BeginInformHostOfParamChangeFromUI ( int  paramIdx)
inlineoverride

Definition at line 35 of file ReaperExtBase.h.

◆ EditorResizeFromUI()

bool ReaperExtBase::EditorResizeFromUI ( int  viewWidth,
int  viewHeight,
bool  needsPlatformResize 
)
override

Definition at line 37 of file ReaperExtBase.cpp.

◆ EndInformHostOfParamChangeFromUI()

void ReaperExtBase::EndInformHostOfParamChangeFromUI ( int  paramIdx)
inlineoverride

Definition at line 37 of file ReaperExtBase.h.

◆ HookCommandProc()

bool ReaperExtBase::HookCommandProc ( int  command,
int  flag 
)
static

Definition at line 101 of file ReaperExtBase.cpp.

◆ OnIdle()

virtual void ReaperExtBase::OnIdle ( )
inlinevirtual

Called during idle processing - override to perform periodic tasks.

Definition at line 42 of file ReaperExtBase.h.

◆ RegisterAction()

void ReaperExtBase::RegisterAction ( const char *  actionName,
std::function< void()>  func,
bool  addMenuItem = false,
int *  pToggle = nullptr 
)

Registers an action with the REAPER extension system.

Parameters
actionNameThe name of the action to register
funcThe function to call when the action is executed
addMenuItemIf true, adds a menu item for this action
pToggleOptional pointer to an int for toggle state

Definition at line 81 of file ReaperExtBase.cpp.

◆ ShowHideMainWindow()

void ReaperExtBase::ShowHideMainWindow ( )

Toggles the visibility of the main extension window.

Definition at line 54 of file ReaperExtBase.cpp.

◆ ToggleActionCallback()

int ReaperExtBase::ToggleActionCallback ( int  command)
static

Definition at line 114 of file ReaperExtBase.cpp.

◆ ToggleDocking()

void ReaperExtBase::ToggleDocking ( )

Definition at line 64 of file ReaperExtBase.cpp.


The documentation for this class was generated from the following files: