Struct gtk4::builders::ShortcutBuilder
source · [−]pub struct ShortcutBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct Shortcut
objects.
Implementations
sourceimpl ShortcutBuilder
impl ShortcutBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ShortcutBuilder
.
pub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
pub fn arguments(self, arguments: &Variant) -> Self
pub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
Trait Implementations
sourceimpl Clone for ShortcutBuilder
impl Clone for ShortcutBuilder
sourcefn clone(&self) -> ShortcutBuilder
fn clone(&self) -> ShortcutBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for ShortcutBuilder
impl Default for ShortcutBuilder
sourcefn default() -> ShortcutBuilder
fn default() -> ShortcutBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ShortcutBuilder
impl !Send for ShortcutBuilder
impl !Sync for ShortcutBuilder
impl Unpin for ShortcutBuilder
impl UnwindSafe for ShortcutBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more