Enum iced_graphics::alignment::Horizontal
pub enum Horizontal {
Left,
Center,
Right,
}
Expand description
The horizontal Alignment
of some resource.
Variants§
Trait Implementations§
§impl Clone for Horizontal
impl Clone for Horizontal
§fn clone(&self) -> Horizontal
fn clone(&self) -> Horizontal
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 more§impl Debug for Horizontal
impl Debug for Horizontal
§impl From<Horizontal> for Alignment
impl From<Horizontal> for Alignment
§fn from(horizontal: Horizontal) -> Alignment
fn from(horizontal: Horizontal) -> Alignment
Converts to this type from the input type.
§impl Hash for Horizontal
impl Hash for Horizontal
§impl PartialEq<Horizontal> for Horizontal
impl PartialEq<Horizontal> for Horizontal
§fn eq(&self, other: &Horizontal) -> bool
fn eq(&self, other: &Horizontal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Horizontal
impl Eq for Horizontal
impl StructuralEq for Horizontal
impl StructuralPartialEq for Horizontal
Auto Trait Implementations§
impl RefUnwindSafe for Horizontal
impl Send for Horizontal
impl Sync for Horizontal
impl Unpin for Horizontal
impl UnwindSafe for Horizontal
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> Pointable for T
impl<T> Pointable for T
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