#[repr(C)]pub struct ShortcutManagerApi {
pub load_settings: Option<unsafe extern "C" fn(tt: *mut TheTruthO, index: TtIdT)>,
pub accelerator_text: Option<unsafe extern "C" fn(shortcut: *const ShortcutI) -> *const c_char>,
pub is_shortcut_triggered: Option<unsafe extern "C" fn(ui: *mut UiO, shortcut: *const ShortcutI) -> bool>,
pub is_shortcut_triggered_in_input: Option<unsafe extern "C" fn(input_state: *const UiInputStateT, shortcut: *const ShortcutI) -> bool>,
pub disable_shortcut_processing: Option<unsafe extern "C" fn()>,
}
Fields§
§load_settings: Option<unsafe extern "C" fn(tt: *mut TheTruthO, index: TtIdT)>
§accelerator_text: Option<unsafe extern "C" fn(shortcut: *const ShortcutI) -> *const c_char>
§is_shortcut_triggered: Option<unsafe extern "C" fn(ui: *mut UiO, shortcut: *const ShortcutI) -> bool>
§is_shortcut_triggered_in_input: Option<unsafe extern "C" fn(input_state: *const UiInputStateT, shortcut: *const ShortcutI) -> bool>
§disable_shortcut_processing: Option<unsafe extern "C" fn()>
Implementations§
Source§impl ShortcutManagerApi
impl ShortcutManagerApi
pub unsafe fn load_settings(&self, tt: *mut TheTruthO, index: TtIdT)
pub unsafe fn accelerator_text( &self, shortcut: *const ShortcutI, ) -> *const c_char
pub unsafe fn is_shortcut_triggered( &self, ui: *mut UiO, shortcut: *const ShortcutI, ) -> bool
pub unsafe fn is_shortcut_triggered_in_input( &self, input_state: *const UiInputStateT, shortcut: *const ShortcutI, ) -> bool
pub unsafe fn disable_shortcut_processing(&self)
Trait Implementations§
Source§impl Clone for ShortcutManagerApi
impl Clone for ShortcutManagerApi
Source§fn clone(&self) -> ShortcutManagerApi
fn clone(&self) -> ShortcutManagerApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for ShortcutManagerApi
impl Default for ShortcutManagerApi
Source§fn default() -> ShortcutManagerApi
fn default() -> ShortcutManagerApi
Returns the “default value” for a type. Read more
impl Copy for ShortcutManagerApi
Auto Trait Implementations§
impl Freeze for ShortcutManagerApi
impl RefUnwindSafe for ShortcutManagerApi
impl Send for ShortcutManagerApi
impl Sync for ShortcutManagerApi
impl Unpin for ShortcutManagerApi
impl UnwindSafe for ShortcutManagerApi
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