pub struct AnyShortcutManager { /* private fields */ }Expand description
Erased ShortcutManager: one identity and a static vtable.
This is what a field or parameter Dart types as ShortcutManager becomes.
Implementations§
Source§impl AnyShortcutManager
impl AnyShortcutManager
Sourcepub fn upgrade(self, app: &App) -> Option<Retained<AnyShortcutManager>>
pub fn upgrade(self, app: &App) -> Option<Retained<AnyShortcutManager>>
A reference while something still keeps the object, None once it is freed or
its last keeper has let go; see Handle::upgrade.
Sourcepub fn keep(self, app: &App) -> Retained<AnyShortcutManager>
pub fn keep(self, app: &App) -> Retained<AnyShortcutManager>
A reference to an object something is known to keep; see
Handle::keep.
Source§impl AnyShortcutManager
impl AnyShortcutManager
Sourcepub fn downcast<T: 'static>(self, app: &App) -> Option<Handle<T>>
pub fn downcast<T: 'static>(self, app: &App) -> Option<Handle<T>>
Dart’s manager as T: the typed handle when this manager is a T, else None.
Sourcepub fn shortcuts(self, app: &App) -> ShortcutMap
pub fn shortcuts(self, app: &App) -> ShortcutMap
Sourcepub fn set_shortcuts(self, app: &mut App, value: ShortcutMap)
pub fn set_shortcuts(self, app: &mut App, value: ShortcutMap)
Sourcepub fn handle_keypress(
self,
app: &mut App,
context: BuildContext,
event: &KeyEvent,
) -> KeyEventResult
pub fn handle_keypress( self, app: &mut App, context: BuildContext, event: &KeyEvent, ) -> KeyEventResult
Trait Implementations§
Source§impl Clone for AnyShortcutManager
impl Clone for AnyShortcutManager
impl Copy for AnyShortcutManager
Source§impl Debug for AnyShortcutManager
impl Debug for AnyShortcutManager
impl Eq for AnyShortcutManager
Source§impl From<AnyShortcutManager> for HandleId
impl From<AnyShortcutManager> for HandleId
Source§fn from(handle: AnyShortcutManager) -> HandleId
fn from(handle: AnyShortcutManager) -> HandleId
Converts to this type from the input type.
Source§impl<Leaf: ShortcutManagerBase> From<Handle<Leaf>> for AnyShortcutManager
impl<Leaf: ShortcutManagerBase> From<Handle<Leaf>> for AnyShortcutManager
Source§fn from(handle: Handle<Leaf>) -> AnyShortcutManager
fn from(handle: Handle<Leaf>) -> AnyShortcutManager
Converts to this type from the input type.
Source§impl Hash for AnyShortcutManager
impl Hash for AnyShortcutManager
Source§impl PartialEq for AnyShortcutManager
impl PartialEq for AnyShortcutManager
Source§impl PartialEq<AnyShortcutManager> for &Retained<AnyShortcutManager>
impl PartialEq<AnyShortcutManager> for &Retained<AnyShortcutManager>
Auto Trait Implementations§
impl Forget for AnyShortcutManager
impl Freeze for AnyShortcutManager
impl Move for AnyShortcutManager
impl RefUnwindSafe for AnyShortcutManager
impl Send for AnyShortcutManager
impl Sync for AnyShortcutManager
impl Unpin for AnyShortcutManager
impl UnsafeUnpin for AnyShortcutManagerwhere
NonZeroU32Inner: UnsafeUnpin,
&'static ShortcutManagerVTable: UnsafeUnpin,
impl UnwindSafe for AnyShortcutManager
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.