Struct css_style::position::Position[][src]

pub struct Position {
    pub position: Option<PositionType>,
    pub left: Option<PostionLength>,
    pub top: Option<PostionLength>,
    pub right: Option<PostionLength>,
    pub bottom: Option<PostionLength>,
    pub z_index: Option<i32>,
    pub clip: Option<Clip>,
}
use css_style::{Style, unit::px};

Style::default()
    .and_position(|conf| {
        conf.absolute().top(px(28)).left(px(40))
    });

Fields

position: Option<PositionType>left: Option<PostionLength>top: Option<PostionLength>right: Option<PostionLength>bottom: Option<PostionLength>z_index: Option<i32>clip: Option<Clip>

Implementations

impl Position[src]

pub fn position(self, value: impl Into<PositionType>) -> Self[src]

pub fn try_position(self, value: Option<impl Into<PositionType>>) -> Self[src]

pub fn static_(self) -> Self[src]

pub fn absolute(self) -> Self[src]

pub fn fixed(self) -> Self[src]

pub fn relative(self) -> Self[src]

pub fn sticky(self) -> Self[src]

pub fn initial(self) -> Self[src]

pub fn inherit(self) -> Self[src]

pub fn left(self, value: impl Into<PostionLength>) -> Self[src]

pub fn try_left(self, value: Option<impl Into<PostionLength>>) -> Self[src]

pub fn top(self, value: impl Into<PostionLength>) -> Self[src]

pub fn try_top(self, value: Option<impl Into<PostionLength>>) -> Self[src]

pub fn right(self, value: impl Into<PostionLength>) -> Self[src]

pub fn try_right(self, value: Option<impl Into<PostionLength>>) -> Self[src]

pub fn bottom(self, value: impl Into<PostionLength>) -> Self[src]

pub fn try_bottom(self, value: Option<impl Into<PostionLength>>) -> Self[src]

pub fn z_index(self, value: impl Into<i32>) -> Self[src]

pub fn try_z_index(self, value: Option<impl Into<i32>>) -> Self[src]

pub fn clip(self, value: impl Into<Clip>) -> Self[src]

pub fn try_clip(self, value: Option<impl Into<Clip>>) -> Self[src]

impl Position[src]

pub fn move_top(self) -> Self[src]

pub fn move_right(self) -> Self[src]

pub fn move_bottom(self) -> Self[src]

pub fn move_left(self) -> Self[src]

pub fn move_top_stretch(self) -> Self[src]

pub fn move_right_stretch(self) -> Self[src]

pub fn move_bottom_stretch(self) -> Self[src]

pub fn move_left_stretch(self) -> Self[src]

pub fn move_top_right(self) -> Self[src]

pub fn move_top_left(self) -> Self[src]

pub fn move_bottom_right(self) -> Self[src]

pub fn move_bottom_left(self) -> Self[src]

pub fn cover(self) -> Self[src]

Trait Implementations

impl Clone for Position[src]

impl Debug for Position[src]

impl Default for Position[src]

impl<T> From<T> for Position where
    T: Into<PositionType>, 
[src]

impl PartialEq<Position> for Position[src]

impl StructuralPartialEq for Position[src]

impl StyleUpdater for Position[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.