Struct libadwaita::builders::SwipeTrackerBuilder
source · pub struct SwipeTrackerBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SwipeTracker
objects.
Implementations§
source§impl SwipeTrackerBuilder
impl SwipeTrackerBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SwipeTrackerBuilder
.
sourcepub fn build(self) -> SwipeTracker
pub fn build(self) -> SwipeTracker
Build the SwipeTracker
.
pub fn allow_long_swipes(self, allow_long_swipes: bool) -> Self
pub fn allow_mouse_drag(self, allow_mouse_drag: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn reversed(self, reversed: bool) -> Self
pub fn swipeable(self, swipeable: &impl IsA<Swipeable>) -> Self
pub fn orientation(self, orientation: Orientation) -> Self
Trait Implementations§
source§impl Clone for SwipeTrackerBuilder
impl Clone for SwipeTrackerBuilder
source§fn clone(&self) -> SwipeTrackerBuilder
fn clone(&self) -> SwipeTrackerBuilder
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 SwipeTrackerBuilder
impl Default for SwipeTrackerBuilder
source§fn default() -> SwipeTrackerBuilder
fn default() -> SwipeTrackerBuilder
Returns the “default value” for a type. Read more