dgmxjj/moonbit-posterkit/layout does not have a README file
pub(all) struct GridSpec {
columns : Int
rows : Int
gap_x : Int
gap_y : Int
padding : EdgeInsets
} derive(Eq, Debug)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)pub(all) enum LayoutWarning {
NegativeGap(value~ : Int)
NegativeHeight(index~ : Int, value~ : Int)
ClippedChild(index~ : Int, overflow~ : RectOverflow)
EmptyRegion
InvalidGrid
} derive(Eq, Debug)fn anchor(region~ : Rect, size~ : Size, h_align~ : HorizontalAlign, v_align~ : VerticalAlign, margin~ : EdgeInsets) -> Pointfn distribute_horizontal(region~ : Rect, item_widths~ : Array[Int], alignment~ : FlowAlignment) -> Array[Rect]fn measure_stack_vertical(region~ : Rect, item_heights~ : Array[Int], gap~ : Int, constraints~ : Constraints) -> LayoutResultInstall
Download zipTyped, data-driven SVG poster and cover generation for MoonBit.