pub fn plugin_register_add_toggle_action<T: ToggleAction>(
        &mut self,
    ) -> ReaperFunctionResult<()> {
        unsafe {
            self.plugin_register_add(RegistrationObject::ToggleAction(
                delegating_toggle_action::<T>,
            ))?
        };
        Ok(())
    }
/// Registers a toggle action.
///
/// REAPER calls toggle actions whenever it wants to know the on/off state of an action.
///
/// See [`plugin_register_add_hook_command()`](#method.plugin_register_add_hook_command) for an
/// example.
///
/// # Errors
///
/// Returns an error if the registration failed.
Registers a toggle action.
REAPER calls toggle actions whenever it wants to know the on/off state of an action.


Registers a toggle action . REAPER calls toggle actions whenever it wants to know the on / off state of an action .
pub fn plugin_register_add_toggle_action<T: ToggleAction>(
        &mut self,
    ) -> ReaperFunctionResult<()> {
        unsafe {
            self.plugin_register_add(RegistrationObject::ToggleAction(
                delegating_toggle_action::<T>,
            ))?
        };
        Ok(())
    }
pub fn plugin_register_add_toggle_action < T : ToggleAction > ( & mut self , ) -> ReaperFunctionResult < ( ) > { unsafe { self . plugin_register_add ( RegistrationObject :: ToggleAction ( delegating_toggle_action :: < T > , ) ) ? } ; Ok ( ( ) ) }
Registers a toggle action.
Registers a toggle action .
&mut self
&mut self
errors
Returns an error if the registration failed.
Returns an error if the registration failed .