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§

BACKDROP
The wire backdropFilter chain → BackdropInput (the backdrop chain resolver’s and the backdrop transition channel’s target; see crate::filters::backdrop). Composite-side only, like [Self::TRANSFORM3D]: a backdrop delta re-stages the snapshot filter run and reshapes nothing in the subtree — never content dirt.
BACKGROUND
BackgroundColor (reads background_color, opacity).
BG_GRADIENT
BackgroundGradient (reads background_gradient, opacity).
BG_IMAGE
ImageNode from background_image (plus the opacity fold into its tint). Built at the reconcile call sites — the build needs AssetServer, which apply_style_masked doesn’t hold — via crate::background_image::apply_background_image; there is no arm for it inside apply_style_masked (the end-of-apply layer content-dirty tap still fires from this bit).
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 wire filter chain → FilterInput (the chain resolver’s and the transition filter channel’s target; see crate::filters).
FOCUS_POLICY
FocusPolicy (also apply_button_focus_default in the reconciler).
GLOBAL_Z_INDEX
GlobalZIndex.
LAYER
Layer-promotion inputs (crate::layer): fields that change whether a subtree composites as a layer (opacity, group_alpha, cache, filter, transform3d). No apply_style output reads this group — it exists so a delta touching a promotion trigger is visible to the promotion evaluator.
LAYOUT
bevy_ui::Node (node_from_style): every layout field.
OUTLINE
Outline.
SCROLLBAR
ScrollbarConfig (reads scrollbar) — the visible scrollbar shell (crate::scrollbar) spawns/updates Bevy’s scrollbar widget from it. The field is also in LAYOUT because a gutter-positioned bar drives Node.scrollbar_width (see node_from_style).
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).
TRANSFORM3D
LayerTransform3d (reads transform3d) — the composite-time 3D transform on a promoted layer (crate::layer::transform3d). Never content dirt: matrix changes reshape the composite quad only.
TRANSITION
TransitionInput (TransitionInput::from_style reads transition plus every transitioned channel: transform, opacity, background_color, width, height, max_width, max_height). The filter channel’s timing rides the spec here; its target is FilterInput (FILTER).
Z_INDEX
ZIndex.