Skip to main content

Module style_groups

Module style_groups 

Source
Expand description

Bit flags naming the groups of work [crate::ui_map::apply_style] (and the update reconciler) derive from a Style. Each Style field belongs to the group(s) whose output reads it (see [with_style_fields]); a delta update ORs the groups of its touched fields into a StyleDirty mask so the apply path can skip every group the delta provably didn’t affect.

Constants§

BACKGROUND
BackgroundColor (reads background_color, opacity, filter).
BG_GRADIENT
BackgroundGradient (reads background_gradient, opacity).
BORDER_COLOR
BorderColor.
BORDER_GRADIENT
BorderGradient (reads border_gradient, opacity).
BOX_SHADOW
BoxShadow.
CURSOR
NodeCursor (reads cursor) — the per-node cursor drive_cursor_icon writes onto the window’s CursorIcon on hover.
FILTER
The filter material (apply_filter in the reconciler).
FOCUS_POLICY
FocusPolicy (also apply_button_focus_default in the reconciler).
GLOBAL_Z_INDEX
GlobalZIndex.
LAYOUT
bevy_ui::Node (node_from_style): every layout field.
OUTLINE
Outline.
SCROLL_TRANSITION
ScrollTransitionInput (reads transition).
TEXT
The resolved text style (resolved_text_style: color, font_size, font_weight, font_family, line_height, letter_spacing, opacity) — includes the <text> re-propagation to inheriting spans.
TEXT_LAYOUT
TextLayout (text_layout: text_align, line_break).
TEXT_SHADOW
TextShadow (reads text_shadow, opacity).
TRANSFORM
UiTransform (reads transform).
TRANSITION
TransitionInput (TransitionInput::from_style reads transition plus every transitioned channel: transform, opacity, background_color, width, height, max_width, max_height).
Z_INDEX
ZIndex.