pub struct ReaperPluginContext { /* private fields */ }Expand description
This represents the context which is needed to access REAPER functions from plug-ins.
Once obtained, it is supposed to be passed to Reaper::load().
Implementations§
Source§impl ReaperPluginContext
impl ReaperPluginContext
Sourcepub fn from_extension_plugin(
rec: *mut reaper_plugin_info_t,
) -> Result<ReaperPluginContext, &'static str>
pub fn from_extension_plugin( rec: *mut reaper_plugin_info_t, ) -> Result<ReaperPluginContext, &'static str>
Creates a plug-in context from an extension entry point plug-in info.
It requires the reaper_plugin_info_t struct that REAPER provides when calling the
ReaperPluginEntry function (the main entry point for any extension plug-in).
It’s recommended to use the reaper_extension_plugin macro in the
reaper-macros crate instead of calling
this function directly.
Sourcepub fn from_vst_plugin(
host: HostCallback,
) -> Result<ReaperPluginContext, &'static str>
pub fn from_vst_plugin( host: HostCallback, ) -> Result<ReaperPluginContext, &'static str>
Auto Trait Implementations§
impl Freeze for ReaperPluginContext
impl !RefUnwindSafe for ReaperPluginContext
impl !Send for ReaperPluginContext
impl !Sync for ReaperPluginContext
impl Unpin for ReaperPluginContext
impl !UnwindSafe for ReaperPluginContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more