Struct libadwaita::builders::SwipeTrackerBuilder
source · [−]pub struct SwipeTrackerBuilder { /* private fields */ }
Expand description
A builder-pattern type to construct SwipeTracker
objects.
Implementations
sourceimpl 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
sourceimpl Clone for SwipeTrackerBuilder
impl Clone for SwipeTrackerBuilder
sourcefn clone(&self) -> SwipeTrackerBuilder
fn clone(&self) -> SwipeTrackerBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SwipeTrackerBuilder
impl Default for SwipeTrackerBuilder
sourcefn default() -> SwipeTrackerBuilder
fn default() -> SwipeTrackerBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SwipeTrackerBuilder
impl !Send for SwipeTrackerBuilder
impl !Sync for SwipeTrackerBuilder
impl Unpin for SwipeTrackerBuilder
impl UnwindSafe for SwipeTrackerBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more