Struct gtk4::builders::ShortcutControllerBuilder
source · pub struct ShortcutControllerBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct ShortcutController
objects.
Implementations§
source§impl ShortcutControllerBuilder
impl ShortcutControllerBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ShortcutControllerBuilder
.
sourcepub fn build(self) -> ShortcutController
pub fn build(self) -> ShortcutController
Build the ShortcutController
.
sourcepub fn mnemonic_modifiers(self, mnemonic_modifiers: ModifierType) -> Self
pub fn mnemonic_modifiers(self, mnemonic_modifiers: ModifierType) -> Self
The modifiers that need to be pressed to allow mnemonics activation.
sourcepub fn scope(self, scope: ShortcutScope) -> Self
pub fn scope(self, scope: ShortcutScope) -> Self
What scope the shortcuts will be handled in.
sourcepub fn name(self, name: &str) -> Self
pub fn name(self, name: &str) -> Self
The name for this controller, typically used for debugging purposes.
sourcepub fn propagation_limit(self, propagation_limit: PropagationLimit) -> Self
pub fn propagation_limit(self, propagation_limit: PropagationLimit) -> Self
The limit for which events this controller will handle.
sourcepub fn propagation_phase(self, propagation_phase: PropagationPhase) -> Self
pub fn propagation_phase(self, propagation_phase: PropagationPhase) -> Self
The propagation phase at which this controller will handle events.
Trait Implementations§
source§impl Clone for ShortcutControllerBuilder
impl Clone for ShortcutControllerBuilder
source§fn clone(&self) -> ShortcutControllerBuilder
fn clone(&self) -> ShortcutControllerBuilder
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 ShortcutControllerBuilder
impl Default for ShortcutControllerBuilder
source§fn default() -> ShortcutControllerBuilder
fn default() -> ShortcutControllerBuilder
Returns the “default value” for a type. Read more