Struct iced::widget::scrollable::RelativeOffset
source · Expand description
The amount of 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: RelativeOffset = Self{ x: 0.0, y: 0.0,}
pub const START: RelativeOffset = Self{ x: 0.0, y: 0.0,}
A relative offset that points to the top-left of a Scrollable
.
sourcepub const END: RelativeOffset = Self{ x: 1.0, y: 1.0,}
pub const END: RelativeOffset = Self{ x: 1.0, y: 1.0,}
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<RelativeOffset> for RelativeOffset
impl PartialEq<RelativeOffset> 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<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
source§fn into_color(self) -> U
fn into_color(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
impl<R, P> ReadPrimitive<R> for Pwhere
R: Read + ReadEndian<P>,
P: Default,
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read more