Sign in

    Milky2018/mgstudio/ui does not have a README file

    HasRes_UiContext

    pub(open) trait HasRes_UiContext {
    get_ui_context_resource(self : Self) ->
    Resource
    [UiContext]
    }

    HasRes_UiScale

    pub(open) trait HasRes_UiScale {
    get_ui_scale_resource(self : Self) ->
    Resource
    [UiScale]
    }

    HasRes_UiStack

    pub(open) trait HasRes_UiStack {
    get_ui_stack_resource(self : Self) ->
    Resource
    [UiStack]
    }

    Has_AccessibilityLabel

    pub(open) trait Has_AccessibilityLabel {
    get_accessibility_label_store(self : Self) ->
    ComponentStore
    [AccessibilityLabel]
    }

    Has_BackgroundColor

    pub(open) trait Has_BackgroundColor {
    get_background_color_store(self : Self) ->
    ComponentStore
    [BackgroundColor]
    }

    Has_BorderColor

    pub(open) trait Has_BorderColor {
    get_border_color_store(self : Self) ->
    ComponentStore
    [BorderColor]
    }

    Has_BorderRadius

    pub(open) trait Has_BorderRadius {
    get_border_radius_store(self : Self) ->
    ComponentStore
    [BorderRadius]
    }

    Has_BoxShadow

    pub(open) trait Has_BoxShadow {
    get_box_shadow_store(self : Self) ->
    ComponentStore
    [BoxShadow]
    }

    Has_Button

    pub(open) trait Has_Button {
    get_button_store(self : Self) ->
    ComponentStore
    [Button]
    }

    Has_ButtonColors

    pub(open) trait Has_ButtonColors {
    get_button_colors_store(self : Self) ->
    ComponentStore
    [ButtonColors]
    }

    Has_CalculatedClip

    pub(open) trait Has_CalculatedClip {
    get_calculated_clip_store(self : Self) ->
    ComponentStore
    [CalculatedClip]
    }

    Has_ContentSize

    pub(open) trait Has_ContentSize {
    get_content_size_store(self : Self) ->
    ComponentStore
    [ContentSize]
    }

    Has_FocusPolicy

    pub(open) trait Has_FocusPolicy {
    get_focus_policy_store(self : Self) ->
    ComponentStore
    [FocusPolicy]
    }

    Has_GlobalZIndex

    pub(open) trait Has_GlobalZIndex {
    get_global_z_index_store(self : Self) ->
    ComponentStore
    [GlobalZIndex]
    }

    Has_ImageNode

    pub(open) trait Has_ImageNode {
    get_image_node_store(self : Self) ->
    ComponentStore
    [ImageNode]
    }

    Has_ImageNodeSize

    pub(open) trait Has_ImageNodeSize {
    get_image_node_size_store(self : Self) ->
    ComponentStore
    [ImageNodeSize]
    }

    Has_Interaction

    pub(open) trait Has_Interaction {
    get_interaction_store(self : Self) ->
    ComponentStore
    [Interaction]
    }

    Has_Label

    pub(open) trait Has_Label {
    get_label_store(self : Self) ->
    ComponentStore
    [Label]
    }

    Has_Node

    pub(open) trait Has_Node {
    get_node_store(self : Self) ->
    ComponentStore
    [Node]
    }

    Has_Outline

    pub(open) trait Has_Outline {
    get_outline_store(self : Self) ->
    ComponentStore
    [Outline]
    }

    Has_RelativeCursorPosition

    pub(open) trait Has_RelativeCursorPosition {
    get_relative_cursor_position_store(self : Self) ->
    ComponentStore
    [RelativeCursorPosition]
    }

    Has_ScrollPosition

    pub(open) trait Has_ScrollPosition {
    get_scroll_position_store(self : Self) ->
    ComponentStore
    [ScrollPosition]
    }

    Has_UiAntiAlias

    pub(open) trait Has_UiAntiAlias {
    get_ui_anti_alias_store(self : Self) ->
    ComponentStore
    [UiAntiAlias]
    }

    Has_UiBoxShadowSamples

    pub(open) trait Has_UiBoxShadowSamples {
    get_ui_box_shadow_samples_store(self : Self) ->
    ComponentStore
    [UiBoxShadowSamples]
    }

    Has_UiImage

    pub(open) trait Has_UiImage {
    get_ui_image_store(self : Self) ->
    ComponentStore
    [UiImage]
    }

    Has_UiLayout

    pub(open) trait Has_UiLayout {
    get_ui_layout_store(self : Self) ->
    ComponentStore
    [UiLayout]
    }

    Has_UiRoot

    pub(open) trait Has_UiRoot {
    get_ui_root_store(self : Self) ->
    ComponentStore
    [UiRoot]
    }

    Has_UiText

    pub(open) trait Has_UiText {
    get_ui_text_store(self : Self) ->
    ComponentStore
    [UiText]
    }

    Has_ZIndex

    pub(open) trait Has_ZIndex {
    get_z_index_store(self : Self) ->
    ComponentStore
    [ZIndex]
    }

    AccessibilityLabel

    pub struct AccessibilityLabel {
    text : String
    }

    Optional accessibility label for UI nodes (used by the host a11y bridge).

    AccessibilityLabel::new

    fn AccessibilityLabel::new(text : String) -> AccessibilityLabel

    AlignContent

    pub(all) enum AlignContent {
    Center
    Default
    End
    FlexEnd
    FlexStart
    SpaceAround
    SpaceBetween
    SpaceEvenly
    Start
    Stretch
    }

    Bevy-aligned align content.
    impl Eq for AlignContent

    AlignItems

    pub(all) enum AlignItems {
    Baseline
    Center
    Default
    End
    FlexEnd
    FlexStart
    Start
    Stretch
    }

    Bevy-aligned align items.
    impl Eq for AlignItems
    impl Show for AlignItems

    AlignSelf

    pub(all) enum AlignSelf {
    Auto
    Baseline
    Center
    End
    FlexEnd
    FlexStart
    Start
    Stretch
    }

    Bevy-aligned align self.
    impl Eq for AlignSelf
    impl Show for AlignSelf

    BackgroundColor

    pub struct BackgroundColor {
    color :
    Color

    }

    BorderColor

    pub struct BorderColor {
    color :
    Color

    }

    BorderRadius

    pub struct BorderRadius {
    top_left : Val
    top_right : Val
    bottom_left : Val
    bottom_right : Val
    }

    BorderRadius::all

    fn BorderRadius::all(radius : Val) -> BorderRadius

    BorderRadius::default

    fn BorderRadius::default() -> BorderRadius

    BorderRadius::new

    fn BorderRadius::new(top_left : Val, top_right : Val, bottom_right : Val, bottom_left : Val) -> BorderRadius

    BorderRadius::percent

    fn BorderRadius::percent(top_left : Float, top_right : Float, bottom_right : Float, bottom_left : Float) -> BorderRadius

    BorderRadius::px

    fn BorderRadius::px(top_left : Float, top_right : Float, bottom_right : Float, bottom_left : Float) -> BorderRadius

    BorderRect

    pub struct BorderRect {
    left : Float
    right : Float
    top : Float
    bottom : Float
    }

    Pixel padding for 9-slicing borders (Bevy BorderRect).

    BorderRect::default

    fn BorderRect::default() -> BorderRect

    BorderRect::new

    fn BorderRect::new(left : Float, right : Float, top : Float, bottom : Float) -> BorderRect

    BorderRect::rectangle

    fn BorderRect::rectangle(horizontal : Float, vertical : Float) -> BorderRect

    BorderRect::square

    fn BorderRect::square(value : Float) -> BorderRect

    BoxShadow

    pub struct BoxShadow {
    color :
    Color

    x_offset : Val
    y_offset : Val
    spread_radius : Val
    blur_radius : Val
    }

    BoxShadow::default

    fn BoxShadow::default() -> BoxShadow

    BoxShadow::new

    fn BoxShadow::new(color :
    Color
    , x_offset : Val, y_offset : Val, spread_radius : Val, blur_radius : Val) -> BoxShadow

    Button

    pub struct Button {
    }

    Bevy-aligned button marker component.

    Button::default

    fn Button::default() -> Button

    CalculatedClip

    pub struct CalculatedClip {
    clip :
    Rect

    }

    ContentSize

    pub struct ContentSize {
    size :
    Vec2

    }

    Intrinsic content size used by the layout engine when width/height are Auto.

    Display

    pub(all) enum Display {
    Block
    Flex
    Grid
    None
    }

    Bevy-aligned display (matches Taffy).
    impl Eq for Display
    impl Show for Display

    FlexDirection

    pub(all) enum FlexDirection {
    Column
    ColumnReverse
    Row
    RowReverse
    }

    Bevy-aligned flex direction.
    impl Eq for FlexDirection

    FlexWrap

    pub(all) enum FlexWrap {
    NoWrap
    Wrap
    WrapReverse
    }

    Bevy-aligned flex wrap.
    impl Eq for FlexWrap
    impl Show for FlexWrap

    FocusPolicy

    pub(all) enum FocusPolicy {
    Block
    Pass
    }

    impl Eq for FocusPolicy
    impl Show for FocusPolicy

    FocusPolicy::default

    fn FocusPolicy::default() -> FocusPolicy

    GlobalZIndex

    pub struct GlobalZIndex {
    value : Int
    }

    GlobalZIndex::new

    fn GlobalZIndex::new(value : Int) -> GlobalZIndex

    GridAutoFlow

    pub(all) enum GridAutoFlow {
    Column
    ColumnDense
    Row
    RowDense
    }

    impl Eq for GridAutoFlow

    GridPlacement

    pub struct GridPlacement {
    start : Int?
    span : Int?
    end : Int?
    }

    GridPlacement::auto

    GridPlacement::default

    fn GridPlacement::default() -> GridPlacement

    GridPlacement::end

    fn GridPlacement::end(end : Int) -> GridPlacement

    GridPlacement::end_span

    fn GridPlacement::end_span(end : Int, span : Int) -> GridPlacement

    GridPlacement::span

    fn GridPlacement::span(span : Int) -> GridPlacement

    GridPlacement::start

    fn GridPlacement::start(start : Int) -> GridPlacement

    GridPlacement::start_end

    fn GridPlacement::start_end(start : Int, end : Int) -> GridPlacement

    GridPlacement::start_span

    fn GridPlacement::start_span(start : Int, span : Int) -> GridPlacement

    GridTrack

    pub(all) enum GridTrack {
    Auto
    Px(Float)
    Percent(Float)
    Fr(Float)
    MinContent
    MaxContent
    }

    impl Eq for GridTrack
    impl Show for GridTrack

    GridTrackRepetition

    pub(all) enum GridTrackRepetition {
    Count(Int)
    AutoFill
    AutoFit
    }

    ImageNode

    A UI node that renders an image (Bevy v0.15.3 ImageNode).

    ImageNode::default

    fn ImageNode::default() -> ImageNode

    ImageNode::with_color

    ImageNode::with_flip_x

    fn ImageNode::with_flip_x(self : ImageNode) -> ImageNode

    ImageNode::with_flip_y

    fn ImageNode::with_flip_y(self : ImageNode) -> ImageNode

    ImageNode::with_mode

    fn ImageNode::with_mode(self : ImageNode, image_mode : NodeImageMode) -> ImageNode

    ImageNode::with_rect

    ImageNode::with_texture_atlas

    fn ImageNode::with_texture_atlas(self : ImageNode, texture_atlas :
    TextureAtlas
    ?) -> ImageNode

    ImageNodeSize

    pub struct ImageNodeSize {
    size :
    UVec2

    }

    Bevy-aligned image size component (Bevy v0.15.3 ImageNodeSize).

    Stores the size of the selected image region in pixels (rect/atlas/texture).

    ImageNodeSize::default

    fn ImageNodeSize::default() -> ImageNodeSize

    Interaction

    pub(all) enum Interaction {
    None
    Hovered
    Pressed
    }

    Bevy-aligned interaction state component.
    impl Eq for Interaction
    impl Show for Interaction

    JustifyContent

    pub(all) enum JustifyContent {
    Center
    Default
    End
    FlexEnd
    FlexStart
    SpaceAround
    SpaceBetween
    SpaceEvenly
    Start
    Stretch
    }

    Bevy-aligned justify content.

    JustifyItems

    pub(all) enum JustifyItems {
    Baseline
    Center
    Default
    End
    Start
    Stretch
    }

    Bevy-aligned justify items.
    impl Eq for JustifyItems

    JustifySelf

    pub(all) enum JustifySelf {
    Auto
    Baseline
    Center
    End
    Start
    Stretch
    }

    Bevy-aligned justify self.
    impl Eq for JustifySelf
    impl Show for JustifySelf

    Label

    pub struct Label {
    }

    Bevy-aligned label marker component (Bevy v0.15.3 Label widget marker).

    Label::default

    fn Label::default() -> Label

    Node

    pub struct Node {
    display : Display
    position_type : PositionType
    overflow : Overflow
    overflow_clip_margin : OverflowClipMargin
    left : Val
    right : Val
    top : Val
    bottom : Val
    width : Val
    height : Val
    min_width : Val
    min_height : Val
    max_width : Val
    max_height : Val
    aspect_ratio : Float?
    align_items : AlignItems
    justify_items : JustifyItems
    align_self : AlignSelf
    justify_self : JustifySelf
    align_content : AlignContent
    justify_content : JustifyContent
    margin : UiRect
    padding : UiRect
    border : UiRect
    flex_direction : FlexDirection
    flex_wrap : FlexWrap
    flex_grow : Float
    flex_shrink : Float
    flex_basis : Val
    row_gap : Val
    column_gap : Val
    grid_auto_flow : GridAutoFlow
    grid_template_rows : Array[RepeatedGridTrack]
    grid_template_columns : Array[RepeatedGridTrack]
    grid_auto_rows : Array[GridTrack]
    grid_auto_columns : Array[GridTrack]
    grid_row : GridPlacement
    grid_column : GridPlacement
    }

    The style of a UI node (Bevy v0.15.3-aligned surface).

    Node::default

    fn Node::default() -> Node

    Node::with_align_items

    fn Node::with_align_items(self : Node, align_items : AlignItems) -> Node

    Node::with_border

    fn Node::with_border(self : Node, border : UiRect) -> Node

    Node::with_display

    fn Node::with_display(self : Node, display : Display) -> Node

    Node::with_flex_direction

    fn Node::with_flex_direction(self : Node, flex_direction : FlexDirection) -> Node

    Node::with_grid_template_columns

    fn Node::with_grid_template_columns(self : Node, grid_template_columns : Array[RepeatedGridTrack]) -> Node

    Node::with_grid_template_rows

    fn Node::with_grid_template_rows(self : Node, grid_template_rows : Array[RepeatedGridTrack]) -> Node

    Node::with_height

    fn Node::with_height(self : Node, height : Val) -> Node

    Node::with_justify_content

    fn Node::with_justify_content(self : Node, justify_content : JustifyContent) -> Node

    Node::with_left

    fn Node::with_left(self : Node, left : Val) -> Node

    Node::with_overflow

    fn Node::with_overflow(self : Node, overflow : Overflow) -> Node

    Node::with_overflow_clip_margin

    fn Node::with_overflow_clip_margin(self : Node, overflow_clip_margin : OverflowClipMargin) -> Node

    Node::with_padding

    fn Node::with_padding(self : Node, padding : UiRect) -> Node

    Node::with_position_type

    fn Node::with_position_type(self : Node, position_type : PositionType) -> Node

    Node::with_row_gap

    fn Node::with_row_gap(self : Node, row_gap : Val) -> Node

    Node::with_top

    fn Node::with_top(self : Node, top : Val) -> Node

    Node::with_width

    fn Node::with_width(self : Node, width : Val) -> Node

    NodeImageMode

    pub(all) enum NodeImageMode {
    Auto
    Stretch
    Sliced(TextureSlicer)
    Tiled(Bool, Bool, Float)
    }

    NodeImageMode::default

    fn NodeImageMode::default() -> NodeImageMode

    NodeImageMode::uses_slices

    fn NodeImageMode::uses_slices(self : NodeImageMode) -> Bool

    Outline

    pub struct Outline {
    width : Val
    offset : Val
    color :
    Color

    }

    Outline::default

    fn Outline::default() -> Outline

    Outline::new

    fn Outline::new(width : Val, offset : Val, color :
    Color
    ) -> Outline

    Overflow

    pub struct Overflow {
    x : OverflowAxis
    y : OverflowAxis
    }

    Overflow::default

    fn Overflow::default() -> Overflow

    Overflow::new

    OverflowAxis

    pub(all) enum OverflowAxis {
    Clip
    Hidden
    Scroll
    Visible
    }

    impl Eq for OverflowAxis

    OverflowClipBox

    pub(all) enum OverflowClipBox {
    BorderBox
    PaddingBox
    ContentBox
    }

    OverflowClipMargin

    pub struct OverflowClipMargin {
    visual_box : OverflowClipBox
    margin : Float
    }

    OverflowClipMargin::border_box

    OverflowClipMargin::content_box

    OverflowClipMargin::default

    OverflowClipMargin::new

    fn OverflowClipMargin::new(visual_box : OverflowClipBox, margin : Float) -> OverflowClipMargin

    OverflowClipMargin::padding_box

    OverflowClipMargin::with_margin

    fn OverflowClipMargin::with_margin(self : OverflowClipMargin, margin : Float) -> OverflowClipMargin

    PositionType

    pub(all) enum PositionType {
    Relative
    Absolute
    }

    Bevy-aligned position type (subset).
    impl Eq for PositionType

    RelativeCursorPosition

    pub struct RelativeCursorPosition {
    normalized_visible_node_rect :
    Rect

    normalized :
    Vec2
    ?
    }

    RepeatedGridTrack

    pub struct RepeatedGridTrack {
    repetition : GridTrackRepetition
    tracks : Array[GridTrack]
    }

    RepeatedGridTrack::default

    RepeatedGridTrack::new

    ScrollPosition

    pub struct ScrollPosition {
    offset_x : Float
    offset_y : Float
    }

    ScrollPosition::default

    ScrollPosition::new

    fn ScrollPosition::new(offset_x : Float, offset_y : Float) -> ScrollPosition

    ScrollPosition::with_delta

    fn ScrollPosition::with_delta(self : ScrollPosition, dx : Float, dy : Float) -> ScrollPosition

    SliceScaleMode

    pub(all) enum SliceScaleMode {
    Stretch
    Tile(Float)
    }

    Defines how a texture slice scales when resized (Bevy SliceScaleMode).

    SliceScaleMode::default

    TextureSlicer

    pub struct TextureSlicer {
    border : BorderRect
    center_scale_mode : SliceScaleMode
    sides_scale_mode : SliceScaleMode
    max_corner_scale : Float
    }

    9-slicing configuration (Bevy TextureSlicer).

    TextureSlicer::default

    fn TextureSlicer::default() -> TextureSlicer

    TextureSlicer::new

    UiAntiAlias

    pub(all) enum UiAntiAlias {
    Off
    On
    }

    Controls whether UI should render with antialiasing.

    This is Bevy-aligned (UiAntiAlias) and is currently consumed by the UI render pipeline (tracked separately).
    impl Eq for UiAntiAlias
    impl Show for UiAntiAlias

    UiBoxShadowSamples

    pub struct UiBoxShadowSamples {
    samples : Int
    }

    UiBoxShadowSamples::default

    UiBoxShadowSamples::new

    fn UiBoxShadowSamples::new(samples : Int) -> UiBoxShadowSamples

    UiContext

    pub struct UiContext {
    white_texture :
    Handle
    [
    Image
    ]
    viewport_origin :
    Vec2

    viewport_size :
    Vec2

    camera_entity :
    Entity
    ?
    camera_transform :
    Transform

    camera_scale : Float
    pointer_pos :
    Vec2
    ?
    pointer_down : Bool
    pointer_just_pressed : Bool
    pointer_just_released : Bool
    wheel_delta :
    Vec2

    }

    UiContext::default

    fn UiContext::default() -> UiContext

    UiContext::new

    fn UiContext::new(white_texture :
    Handle
    [
    Image
    ], viewport_origin :
    Vec2
    , viewport_size :
    Vec2
    , camera_entity :
    Entity
    ?, camera_transform :
    Transform
    , camera_scale : Float, pointer_pos :
    Vec2
    ?, pointer_down : Bool, pointer_just_pressed? : Bool, pointer_just_released? : Bool, wheel_delta? :
    Vec2
    ) -> UiContext

    Public constructor (required because UiContext contains mut fields).

    UiImage

    UiImage::with_color

    UiImage::with_flip_x

    fn UiImage::with_flip_x(self : UiImage) -> UiImage

    UiImage::with_flip_y

    fn UiImage::with_flip_y(self : UiImage) -> UiImage

    UiImage::with_rect

    fn UiImage::with_rect(self : UiImage, rect :
    Rect
    ?) -> UiImage

    UiImage::with_texture_atlas

    fn UiImage::with_texture_atlas(self : UiImage, texture_atlas :
    TextureAtlas
    ?) -> UiImage

    UiLayout

    pub struct UiLayout {
    rect :
    Rect

    }

    Computed layout rectangle in logical pixels, top-left origin (viewport space).

    UiRect

    pub struct UiRect {
    left : Val
    top : Val
    right : Val
    bottom : Val
    }

    UiRect::all

    fn UiRect::all(value : Val) -> UiRect

    UiRect::default

    fn UiRect::default() -> UiRect

    UiRect::new

    fn UiRect::new(left : Val, top : Val, right : Val, bottom : Val) -> UiRect

    UiRoot

    pub struct UiRoot {
    }

    UiRoot::default

    fn UiRoot::default() -> UiRoot

    UiScale

    pub struct UiScale {
    value : Float
    }

    UiScale::new

    fn UiScale::new(value : Float) -> UiScale

    UiStack

    pub struct UiStack {
    uinodes : Array[
    Entity
    ]
    }

    UiStack::clear

    fn UiStack::clear(self : Ref[UiStack]) -> Unit

    UiStack::default

    fn UiStack::default() -> UiStack

    UiStack::uinodes

    Val

    pub(all) enum Val {
    Auto
    Px(Float)
    Percent(Float)
    Vw(Float)
    Vh(Float)
    VMin(Float)
    VMax(Float)
    }

    ZIndex

    pub struct ZIndex {
    value : Int
    }

    ZIndex::new

    fn ZIndex::new(value : Int) -> ZIndex

    ecs_components

    let ecs_components : Array[String]

    ECS component types discovered via #ecs.component.

    ecs_resources

    let ecs_resources : Array[String]

    ECS resource types discovered via #ecs.resource.

    ui_image_content_size_system

    Update ContentSize for image nodes when NodeImageMode::Auto.

    This mirrors Bevy's update_image_content_size_system, adapted to mgstudio's logical UI coordinate space.

    ui_plugin

    fn[W :
    HasRes_A11yState
    + HasRes_UiContext + HasRes_UiScale + Has_UiRoot + Has_Node + Has_ContentSize + Has_ImageNodeSize + Has_ZIndex + Has_GlobalZIndex + HasRes_UiStack + Has_ScrollPosition + Has_UiLayout + Has_CalculatedClip + Has_RelativeCursorPosition + Has_FocusPolicy + Has_BackgroundColor + Has_UiImage + Has_ImageNode + Has_ButtonColors + Has_Button + Has_Label + Has_Interaction + Has_UiText + Has_AccessibilityLabel + Has_Outline + Has_BoxShadow + Has_UiBoxShadowSamples + Has_BorderColor + Has_BorderRadius + Has_UiAntiAlias +
    Has_Children
    +
    Has_Parent
    +
    HasRes_RenderState
    +
    Has_Camera2d
    +
    Has_Camera
    +
    Has_Projection
    +
    Has_RenderTarget
    +
    Has_RenderLayers
    +
    Has_Sprite
    +
    Has_ScissorRect
    +
    Has_Transform
    +
    Has_GlobalTransform
    +
    Has_Visibility
    +
    Has_InheritedVisibility
    +
    Has_ViewVisibility
    +
    ChangeTickWorld
    ] ui_plugin(app :
    App
    [W]) ->
    App
    [W]

    ui_pointer_pos_in_viewport

    Convert a window-space pointer into viewport-space coordinates.

    Returns None if the pointer is outside the viewport bounds.

    ui_scroll_system

    Update ScrollPosition using the current mouse wheel delta.

    This is an MVP scroll implementation:
    • Picks the topmost scroll container under the pointer by UiStack.
    • Applies wheel deltas directly to the stored offsets (clamped to >= 0).

    ui_set_a11y

    let ui_set_a11y : String

    ui_set_a11y_apply

    let ui_set_a11y_apply : String

    ui_set_clip

    let ui_set_clip : String

    ui_set_context

    let ui_set_context : String

    ui_set_interaction

    let ui_set_interaction : String

    ui_set_layout

    let ui_set_layout : String

    ui_set_measure

    let ui_set_measure : String

    ui_set_render_extract

    let ui_set_render_extract : String

    ui_set_scroll

    let ui_set_scroll : String

    ui_set_stack

    let ui_set_stack : String

    ui_stack_system

    Build UiStack ordering (back-to-front), aligned with Bevy ui_stack_system.

    Roots are:
    • Any UI entity with UiLayout and no Parent
    • Any entity with GlobalZIndex and UiLayout (even if parented)
    • Any entity tagged UiRoot (compat with older code paths)

    Children are visited in depth-first order, sorted by ZIndex ascending, while preserving insertion order for ties.

    Source Files