logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Ui.Domain.Services

    Classes

    FlexboxSolver

    Pure flexbox main-axis solver. Given the container's main-axis length, the gap between children, and each child's LayoutSize, it returns each child's resolved main-axis length. Absolute children (FIXED px, PERCENT of the axis) claim their size first; FLEX/AUTO children share the remaining space by weight (AUTO ≈ one flex share). When there are no flex children and the absolute sizes overflow the axis, they are scaled down proportionally to fit.

    UiAnchorMapper

    Pure mapping from a UiAnchorType to normalized per-axis placement factors — the single source for every "which corner/edge does this anchor mean" switch. A factor of 0/0.5/1 places the element at the start/center/end of the axis: horizontally 0 = left and 1 = right; vertically the Unity-pivot convention is used, 0 = bottom and 1 = top.

    UiOptionFactory

    Factory class for creating UiOption instances.

    UiOptionValueFactory

    Factory class for creating various types of UiOptionValue instances.

    In this article
    © 2026 Serenity. All Rights Reserved