Skip to main content

PluginVTable

Struct PluginVTable 

Source
#[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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.