pub trait LayoutStyle<L: LengthNum, T: PartialEq = i32> {
Show 41 methods
// Required methods
fn display(&self) -> Display;
fn position(&self) -> Position;
fn direction(&self) -> Direction;
fn writing_mode(&self) -> WritingMode;
fn flex_direction(&self) -> FlexDirection;
fn flex_wrap(&self) -> FlexWrap;
fn align_items(&self) -> AlignItems;
fn align_self(&self) -> AlignSelf;
fn align_content(&self) -> AlignContent;
fn justify_content(&self) -> JustifyContent;
fn left(&self) -> DefLength<L, T>;
fn right(&self) -> DefLength<L, T>;
fn top(&self) -> DefLength<L, T>;
fn bottom(&self) -> DefLength<L, T>;
fn border_left(&self) -> DefLength<L, T>;
fn border_right(&self) -> DefLength<L, T>;
fn border_top(&self) -> DefLength<L, T>;
fn border_bottom(&self) -> DefLength<L, T>;
fn margin_left(&self) -> DefLength<L, T>;
fn margin_right(&self) -> DefLength<L, T>;
fn margin_top(&self) -> DefLength<L, T>;
fn margin_bottom(&self) -> DefLength<L, T>;
fn padding_left(&self) -> DefLength<L, T>;
fn padding_right(&self) -> DefLength<L, T>;
fn padding_top(&self) -> DefLength<L, T>;
fn padding_bottom(&self) -> DefLength<L, T>;
fn flex_grow(&self) -> f32;
fn flex_shrink(&self) -> f32;
fn flex_basis(&self) -> DefLength<L, T>;
fn width(&self) -> DefLength<L, T>;
fn height(&self) -> DefLength<L, T>;
fn min_width(&self) -> DefLength<L, T>;
fn min_height(&self) -> DefLength<L, T>;
fn max_width(&self) -> DefLength<L, T>;
fn max_height(&self) -> DefLength<L, T>;
fn aspect_ratio(&self) -> Option<f32>;
fn box_sizing(&self) -> BoxSizing;
fn order(&self) -> i32;
// Provided methods
fn text_align(&self) -> TextAlign { ... }
fn column_gap(&self) -> DefLength<L, T> { ... }
fn row_gap(&self) -> DefLength<L, T> { ... }
}
Expand description
The styles of a tree node.
The values are similar to corresponding CSS properties.