pub struct KeyboardShortcutsDialog {
pub is_open: bool,
}Expand description
Keyboard shortcuts help dialog
Fields§
§is_open: boolWhether the dialog is currently open
Implementations§
Source§impl KeyboardShortcutsDialog
impl KeyboardShortcutsDialog
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a KeyboardShortcutsDialog with default settings.
Sourcepub fn show(&mut self, ctx: &Context) -> KeyboardShortcutsAction
pub fn show(&mut self, ctx: &Context) -> KeyboardShortcutsAction
Show the dialog. Returns the action taken.
Sourcepub fn show_with_shortcuts(
&mut self,
ctx: &Context,
shortcuts: &ShortcutMap,
) -> KeyboardShortcutsAction
pub fn show_with_shortcuts( &mut self, ctx: &Context, shortcuts: &ShortcutMap, ) -> KeyboardShortcutsAction
Show only the host’s bound shortcuts, using the same map as its chart.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyboardShortcutsDialog
impl RefUnwindSafe for KeyboardShortcutsDialog
impl Send for KeyboardShortcutsDialog
impl Sync for KeyboardShortcutsDialog
impl Unpin for KeyboardShortcutsDialog
impl UnsafeUnpin for KeyboardShortcutsDialog
impl UnwindSafe for KeyboardShortcutsDialog
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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