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
impl Copy for RelativeOffset
impl StructuralPartialEq for RelativeOffset
Auto Trait Implementations§
impl Freeze for RelativeOffset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.