Struct tuix_internal::Style[][src]

pub struct Style {
Show 73 fields pub rules: Vec<StyleRule, Global>, pub elements: DenseStorage<String>, pub classes: DenseStorage<HashSet<String, RandomState>>, pub pseudo_classes: DenseStorage<PseudoClasses>, pub z_order: StyleStorage<i32>, pub rotate: AnimatableStorage<f32>, pub translate: StyleStorage<(f32, f32)>, pub scale: StyleStorage<f32>, pub display: StyleStorage<Display>, pub visibility: StyleStorage<Visibility>, pub opacity: AnimatableStorage<Opacity>, pub overflow: StyleStorage<Overflow>, pub left: AnimatableStorage<Units>, pub right: AnimatableStorage<Units>, pub top: AnimatableStorage<Units>, pub bottom: AnimatableStorage<Units>, pub width: AnimatableStorage<Units>, pub height: AnimatableStorage<Units>, pub max_width: AnimatableStorage<Units>, pub max_height: AnimatableStorage<Units>, pub min_width: AnimatableStorage<Units>, pub min_height: AnimatableStorage<Units>, pub min_left: AnimatableStorage<Units>, pub max_left: AnimatableStorage<Units>, pub min_right: AnimatableStorage<Units>, pub max_right: AnimatableStorage<Units>, pub min_top: AnimatableStorage<Units>, pub max_top: AnimatableStorage<Units>, pub min_bottom: AnimatableStorage<Units>, pub max_bottom: AnimatableStorage<Units>, pub border_width: AnimatableStorage<Units>, pub border_color: AnimatableStorage<Color>, pub border_shape_top_left: StyleStorage<BorderCornerShape>, pub border_shape_top_right: StyleStorage<BorderCornerShape>, pub border_shape_bottom_left: StyleStorage<BorderCornerShape>, pub border_shape_bottom_right: StyleStorage<BorderCornerShape>, pub border_radius_top_left: AnimatableStorage<Units>, pub border_radius_top_right: AnimatableStorage<Units>, pub border_radius_bottom_left: AnimatableStorage<Units>, pub border_radius_bottom_right: AnimatableStorage<Units>, pub clip_widget: DenseStorage<Entity>, pub focus_order: DenseStorage<FocusOrder>, pub background_color: AnimatableStorage<Color>, pub background_image: StyleStorage<Rc<()>>, pub background_gradient: StyleStorage<LinearGradient>, pub outer_shadow_h_offset: AnimatableStorage<Units>, pub outer_shadow_v_offset: AnimatableStorage<Units>, pub outer_shadow_blur: AnimatableStorage<Units>, pub outer_shadow_color: AnimatableStorage<Color>, pub inner_shadow_h_offset: AnimatableStorage<Units>, pub inner_shadow_v_offset: AnimatableStorage<Units>, pub inner_shadow_blur: AnimatableStorage<Units>, pub inner_shadow_color: AnimatableStorage<Color>, pub text: DenseStorage<String>, pub font: DenseStorage<String>, pub font_color: AnimatableStorage<Color>, pub font_size: AnimatableStorage<f32>, pub tooltip: DenseStorage<String>, pub layout_type: StyleStorage<LayoutType>, pub positioning_type: StyleStorage<PositionType>, pub grid_rows: StyleStorage<Vec<Units, Global>>, pub row_between: AnimatableStorage<Units>, pub grid_cols: StyleStorage<Vec<Units, Global>>, pub col_between: AnimatableStorage<Units>, pub row_index: StyleStorage<usize>, pub col_index: StyleStorage<usize>, pub row_span: StyleStorage<usize>, pub col_span: StyleStorage<usize>, pub child_left: AnimatableStorage<Units>, pub child_right: AnimatableStorage<Units>, pub child_top: AnimatableStorage<Units>, pub child_bottom: AnimatableStorage<Units>, pub name: StyleStorage<String>,
}

Fields

rules: Vec<StyleRule, Global>elements: DenseStorage<String>classes: DenseStorage<HashSet<String, RandomState>>pseudo_classes: DenseStorage<PseudoClasses>z_order: StyleStorage<i32>rotate: AnimatableStorage<f32>translate: StyleStorage<(f32, f32)>scale: StyleStorage<f32>display: StyleStorage<Display>visibility: StyleStorage<Visibility>opacity: AnimatableStorage<Opacity>overflow: StyleStorage<Overflow>left: AnimatableStorage<Units>right: AnimatableStorage<Units>top: AnimatableStorage<Units>bottom: AnimatableStorage<Units>width: AnimatableStorage<Units>height: AnimatableStorage<Units>max_width: AnimatableStorage<Units>max_height: AnimatableStorage<Units>min_width: AnimatableStorage<Units>min_height: AnimatableStorage<Units>min_left: AnimatableStorage<Units>max_left: AnimatableStorage<Units>min_right: AnimatableStorage<Units>max_right: AnimatableStorage<Units>min_top: AnimatableStorage<Units>max_top: AnimatableStorage<Units>min_bottom: AnimatableStorage<Units>max_bottom: AnimatableStorage<Units>border_width: AnimatableStorage<Units>border_color: AnimatableStorage<Color>border_shape_top_left: StyleStorage<BorderCornerShape>border_shape_top_right: StyleStorage<BorderCornerShape>border_shape_bottom_left: StyleStorage<BorderCornerShape>border_shape_bottom_right: StyleStorage<BorderCornerShape>border_radius_top_left: AnimatableStorage<Units>border_radius_top_right: AnimatableStorage<Units>border_radius_bottom_left: AnimatableStorage<Units>border_radius_bottom_right: AnimatableStorage<Units>clip_widget: DenseStorage<Entity>focus_order: DenseStorage<FocusOrder>background_color: AnimatableStorage<Color>background_image: StyleStorage<Rc<()>>background_gradient: StyleStorage<LinearGradient>outer_shadow_h_offset: AnimatableStorage<Units>outer_shadow_v_offset: AnimatableStorage<Units>outer_shadow_blur: AnimatableStorage<Units>outer_shadow_color: AnimatableStorage<Color>inner_shadow_h_offset: AnimatableStorage<Units>inner_shadow_v_offset: AnimatableStorage<Units>inner_shadow_blur: AnimatableStorage<Units>inner_shadow_color: AnimatableStorage<Color>text: DenseStorage<String>font: DenseStorage<String>font_color: AnimatableStorage<Color>font_size: AnimatableStorage<f32>tooltip: DenseStorage<String>layout_type: StyleStorage<LayoutType>positioning_type: StyleStorage<PositionType>grid_rows: StyleStorage<Vec<Units, Global>>row_between: AnimatableStorage<Units>grid_cols: StyleStorage<Vec<Units, Global>>col_between: AnimatableStorage<Units>row_index: StyleStorage<usize>col_index: StyleStorage<usize>row_span: StyleStorage<usize>col_span: StyleStorage<usize>child_left: AnimatableStorage<Units>child_right: AnimatableStorage<Units>child_top: AnimatableStorage<Units>child_bottom: AnimatableStorage<Units>name: StyleStorage<String>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.