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.