pub struct PluginManager { /* private fields */ }Implementations§
Source§impl PluginManager
impl PluginManager
pub fn new() -> Self
pub fn load( path: Option<&Path>, app_context: &mut AppContext<'_>, ) -> Result<Self>
pub fn on_open(&mut self, app_context: &mut AppContext<'_>)
pub fn on_save(&mut self, app_context: &mut AppContext<'_>)
pub fn on_edit( &mut self, new_bytes: &mut Vec<u8>, app_context: &mut AppContext<'_>, )
pub fn on_key(&mut self, event: KeyEvent, app_context: &mut AppContext<'_>)
pub fn on_mouse( &mut self, event: MouseEvent, location: Option<UiLocation>, app_context: &mut AppContext<'_>, )
pub fn on_focus(&mut self, app_context: &mut AppContext<'_>)
pub fn on_blur(&mut self, app_context: &mut AppContext<'_>)
pub fn on_paste( &mut self, text: impl AsRef<str>, app_context: &mut AppContext<'_>, )
pub fn on_resize( &mut self, width: u16, height: u16, app_context: &mut AppContext<'_>, )
pub fn get_commands(&self) -> Vec<&CommandInfo>
pub fn run_command( &mut self, command: &str, app_context: &mut AppContext<'_>, ) -> Result<()>
pub fn fill_popup( &mut self, plugin_index: usize, callback: impl AsRef<str>, popup_context: PopupContext<'_>, app_context: AppContext<'_>, ) -> Result<()>
pub fn try_parse_header( &mut self, app_context: &mut AppContext<'_>, ) -> Option<CustomHeader>
Trait Implementations§
Source§impl Debug for PluginManager
impl Debug for PluginManager
Source§impl Default for PluginManager
impl Default for PluginManager
Source§fn default() -> PluginManager
fn default() -> PluginManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PluginManager
impl !RefUnwindSafe for PluginManager
impl !Send for PluginManager
impl !Sync for PluginManager
impl Unpin for PluginManager
impl !UnwindSafe for PluginManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more