dgmxjj/moonbit-posterkit/layout does not have a README file

    FlowAlignment

    pub(all) enum FlowAlignment {
    Start
    Center
    End
    SpaceBetween
    } derive(Eq,
    Debug
    )

    FlowDirection

    pub(all) enum FlowDirection {
    Horizontal
    Vertical
    } derive(Eq,
    Debug
    )

    GridSpec

    pub(all) struct GridSpec {
    columns : Int
    rows : Int
    gap_x : Int
    gap_y : Int
    padding :
    EdgeInsets

    } derive(Eq,
    Debug
    )

    HorizontalAlign

    pub(all) enum HorizontalAlign {
    Start
    Center
    End
    } derive(Eq,
    Debug
    )

    LayoutRequest

    pub(all) struct LayoutRequest {
    region :
    Rect

    min_width : Int
    min_height : Int
    max_width : Int
    max_height : Int
    gap : Int
    padding :
    EdgeInsets

    } derive(Eq,
    Debug
    )

    LayoutWarning

    pub(all) enum LayoutWarning {
    NegativeGap(value~ : Int)
    NegativeHeight(index~ : Int, value~ : Int)
    ClippedChild(index~ : Int, overflow~ :
    RectOverflow
    )
    EmptyRegion
    InvalidGrid
    } derive(Eq,
    Debug
    )

    VerticalAlign

    pub(all) enum VerticalAlign {
    Top
    Middle
    Bottom
    } derive(Eq,
    Debug
    )

    distribute_horizontal

    fn distribute_horizontal(region~ :
    Rect
    , item_widths~ : Array[Int], alignment~ : FlowAlignment) -> Array[
    Rect
    ]

    layout_envelope

    fn layout_envelope(request : LayoutRequest) -> LayoutEnvelope

    layout_request_summary

    fn layout_request_summary(request : LayoutRequest) -> String

    measure_stack_vertical

    fn measure_stack_vertical(region~ :
    Rect
    , item_heights~ : Array[Int], gap~ : Int, constraints~ :
    Constraints
    ) -> LayoutResult

    stack_horizontal

    fn stack_horizontal(region~ :
    Rect
    , item_widths~ : Array[Int], gap~ : Int) -> Array[
    Rect
    ]

    stack_vertical

    fn stack_vertical(region~ :
    Rect
    , item_heights~ : Array[Int], gap~ : Int) -> Array[
    Rect
    ]

    warning_code

    fn warning_code(warning : LayoutWarning) -> String

    warnings_text

    fn warnings_text(warnings : Array[LayoutWarning]) -> String