#[repr(C)]pub struct PluginVTable {
pub on_load: unsafe extern "C" fn(PluginHandle) -> PluginResultC,
pub on_unload: unsafe extern "C" fn(PluginHandle) -> PluginResultC,
pub destroy: unsafe extern "C" fn(PluginHandle),
pub get_content: Option<unsafe extern "C" fn(PluginHandle) -> IslandContentC>,
pub on_click: Option<unsafe extern "C" fn(PluginHandle)>,
pub on_expanded: Option<unsafe extern "C" fn(PluginHandle, bool)>,
pub supports_expand: Option<unsafe extern "C" fn(PluginHandle) -> bool>,
pub get_colors: Option<unsafe extern "C" fn(PluginHandle) -> ThemeColorsC>,
pub get_animations: Option<unsafe extern "C" fn(PluginHandle) -> AnimationConfigC>,
pub get_shortcuts_count: Option<unsafe extern "C" fn(PluginHandle) -> u32>,
pub get_shortcut_at: Option<unsafe extern "C" fn(_: PluginHandle, i: u32, out: *mut ShortcutC)>,
pub execute_shortcut: Option<unsafe extern "C" fn(_: PluginHandle, id: *const c_char) -> PluginResultC>,
}Fields§
§on_load: unsafe extern "C" fn(PluginHandle) -> PluginResultC§on_unload: unsafe extern "C" fn(PluginHandle) -> PluginResultC§destroy: unsafe extern "C" fn(PluginHandle)§get_content: Option<unsafe extern "C" fn(PluginHandle) -> IslandContentC>§on_click: Option<unsafe extern "C" fn(PluginHandle)>§on_expanded: Option<unsafe extern "C" fn(PluginHandle, bool)>§supports_expand: Option<unsafe extern "C" fn(PluginHandle) -> bool>§get_colors: Option<unsafe extern "C" fn(PluginHandle) -> ThemeColorsC>§get_animations: Option<unsafe extern "C" fn(PluginHandle) -> AnimationConfigC>§get_shortcuts_count: Option<unsafe extern "C" fn(PluginHandle) -> u32>§get_shortcut_at: Option<unsafe extern "C" fn(_: PluginHandle, i: u32, out: *mut ShortcutC)>§execute_shortcut: Option<unsafe extern "C" fn(_: PluginHandle, id: *const c_char) -> PluginResultC>Auto Trait Implementations§
impl Freeze for PluginVTable
impl RefUnwindSafe for PluginVTable
impl Send for PluginVTable
impl Sync for PluginVTable
impl Unpin for PluginVTable
impl UnsafeUnpin for PluginVTable
impl UnwindSafe for PluginVTable
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