pub struct StyleProps;Expand description
Zero-cost IDE Go-to-Definition schema namespace for style! and view! style: { ... } property keys.
Implementations§
Source§impl StyleProps
Zero-cost IDE Go-to-Definition property anchors for StyleProps.
impl StyleProps
Zero-cost IDE Go-to-Definition property anchors for StyleProps.
Sourcepub const fn display()
pub const fn display()
Sets box display mode (Display::Flex, Display::Grid, Display::Block, Display::None).
Sourcepub const fn position()
pub const fn position()
Sets positioning mode (Position::Relative, Position::Absolute, Position::Fixed).
Sourcepub const fn inset()
pub const fn inset()
Sets (top, right, bottom, left) offsets as (Option<f32>, Option<f32>, Option<f32>, Option<f32>).
Sourcepub const fn min_height()
pub const fn min_height()
Sets minimum box height constraint (Length).
Sourcepub const fn max_height()
pub const fn max_height()
Sets maximum box height constraint (Length).
Sourcepub const fn aspect_ratio()
pub const fn aspect_ratio()
Sets preferred width-to-height aspect ratio (f32).
Sourcepub const fn background()
pub const fn background()
Sets solid background fill color (Color).
Sourcepub const fn focus_ring()
pub const fn focus_ring()
Sets keyboard focus outline stroke (Border).
Sourcepub const fn pointer_events()
pub const fn pointer_events()
Controls pointer hit-testing participation (PointerEvents).
Sourcepub const fn stop_scroll_propagation()
pub const fn stop_scroll_propagation()
Blocks wheel/touch scroll bubbling to ancestor scroll containers (bool).
Sourcepub const fn stop_event_propagation()
pub const fn stop_event_propagation()
Blocks pointer and click event bubbling to ancestor nodes (bool).
Sourcepub const fn flex_shrink()
pub const fn flex_shrink()
Sets flex shrink factor (f32).
Sourcepub const fn font_weight()
pub const fn font_weight()
Sets text font weight (FontWeight).
Sourcepub const fn font_family()
pub const fn font_family()
Sets text font family (FontFamily::Sans, FontFamily::Serif, FontFamily::Monospace).
Sourcepub const fn text_align()
pub const fn text_align()
Sets horizontal text alignment (TextAlign).
Sourcepub const fn text_overflow()
pub const fn text_overflow()
Sets text overflow strategy (TextOverflow::Wrap, TextOverflow::Clip, TextOverflow::Ellipsis).
Sourcepub const fn selectable()
pub const fn selectable()
Enables or disables native text selection (bool, inherited by descendant text nodes unless overridden).
Sourcepub const fn text_select()
pub const fn text_select()
Sets the interactive text selection and copy mode (TextSelectMode, inherited by descendant text nodes unless overridden).
Sourcepub const fn selection_color()
pub const fn selection_color()
Sets the highlight fill color used for selected text ranges (Color).