Struct gtk4::builders::ShortcutBuilder
source · pub struct ShortcutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Shortcut
objects.
Implementations§
source§impl ShortcutBuilder
impl ShortcutBuilder
sourcepub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
pub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
The action that gets activated by this shortcut.
sourcepub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
pub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
The trigger that triggers this shortcut.
Auto Trait Implementations§
impl Freeze for ShortcutBuilder
impl RefUnwindSafe for ShortcutBuilder
impl !Send for ShortcutBuilder
impl !Sync for ShortcutBuilder
impl Unpin for ShortcutBuilder
impl UnwindSafe for ShortcutBuilder
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