Struct gtk4::builders::EventControllerKeyBuilder
source · pub struct EventControllerKeyBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct EventControllerKey
objects.
Implementations§
source§impl EventControllerKeyBuilder
impl EventControllerKeyBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new EventControllerKeyBuilder
.
sourcepub fn build(self) -> EventControllerKey
pub fn build(self) -> EventControllerKey
Build the EventControllerKey
.
pub fn name(self, name: &str) -> Self
pub fn propagation_limit(self, propagation_limit: PropagationLimit) -> Self
pub fn propagation_phase(self, propagation_phase: PropagationPhase) -> Self
Trait Implementations§
source§impl Clone for EventControllerKeyBuilder
impl Clone for EventControllerKeyBuilder
source§fn clone(&self) -> EventControllerKeyBuilder
fn clone(&self) -> EventControllerKeyBuilder
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 EventControllerKeyBuilder
impl Default for EventControllerKeyBuilder
source§fn default() -> EventControllerKeyBuilder
fn default() -> EventControllerKeyBuilder
Returns the “default value” for a type. Read more