Struct iced_core::widget::operation::scrollable::RelativeOffset
source · pub struct RelativeOffset {
pub x: f32,
pub y: f32,
}
Expand description
The amount of relative offset in each direction of a Scrollable
.
A value of 0.0
means start, while 1.0
means end.
Fields§
§x: f32
The amount of horizontal offset
y: f32
The amount of vertical offset
Implementations§
source§impl RelativeOffset
impl RelativeOffset
sourcepub const START: Self = _
pub const START: Self = _
A relative offset that points to the top-left of a Scrollable
.
sourcepub const END: Self = _
pub const END: Self = _
A relative offset that points to the bottom-right of a Scrollable
.
Trait Implementations§
source§impl Clone for RelativeOffset
impl Clone for RelativeOffset
source§fn clone(&self) -> RelativeOffset
fn clone(&self) -> RelativeOffset
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 Debug for RelativeOffset
impl Debug for RelativeOffset
source§impl Default for RelativeOffset
impl Default for RelativeOffset
source§fn default() -> RelativeOffset
fn default() -> RelativeOffset
Returns the “default value” for a type. Read more
source§impl PartialEq for RelativeOffset
impl PartialEq for RelativeOffset
source§fn eq(&self, other: &RelativeOffset) -> bool
fn eq(&self, other: &RelativeOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RelativeOffset
impl StructuralPartialEq for RelativeOffset
Auto Trait Implementations§
impl RefUnwindSafe for RelativeOffset
impl Send for RelativeOffset
impl Sync for RelativeOffset
impl Unpin for RelativeOffset
impl UnwindSafe for RelativeOffset
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more