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 new() -> Self
pub fn new() -> Self
Create a new 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.
Trait Implementations§
source§impl Clone for ShortcutBuilder
impl Clone for ShortcutBuilder
source§fn clone(&self) -> ShortcutBuilder
fn clone(&self) -> ShortcutBuilder
Returns a copy 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 ShortcutBuilder
impl Default for ShortcutBuilder
source§fn default() -> ShortcutBuilder
fn default() -> ShortcutBuilder
Returns the “default value” for a type. Read more