[−][src]Struct polyhorn_ui::styles::Relative
Controls the relative positioning of a view.
Fields
flex_basis: Dimension<f32>
If present, this property controls the weight of this view in computing a layout using the flexbox algorithm.
flex_grow: f32
This property controls the priority of this view when the flexbox can grow. The default value of this property is 0.0, which means that this view does not grow if more space is available. If set to any non-zero positive number, this view will consume (a portion of) the remaining available space of a flexbox.
flex_shrink: f32
This property controls the priority of this view when the flexbox is shrunk. The default value of this property is 1.0, which means that this view is shrunk when necessary. If set to 0.0, this view will not be shrunk.
Trait Implementations
impl Clone for Relative
[src]
impl Copy for Relative
[src]
impl Debug for Relative
[src]
impl Default for Relative
[src]
impl PartialEq<Relative> for Relative
[src]
impl StructuralPartialEq for Relative
[src]
Auto Trait Implementations
impl RefUnwindSafe for Relative
impl Send for Relative
impl Sync for Relative
impl Unpin for Relative
impl UnwindSafe for Relative
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>,
[src]
U: ConvertFrom<T>,
fn convert_into(self) -> U
[src]
fn convert_unclamped_into(self) -> U
[src]
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,