// Generated using `moon info`, DON'T EDIT IT package "experiments/launcher/grid" import { "moonbitlang/core/debug", } // Values pub fn box(Cell, Double) -> (Double, Double, Double, Double) pub fn cell_at(Double, Double, Double) -> (Int32, Int32) pub let cell_px : Int32 pub fn cell_under(Double, Double, Double) -> (Int32, Int32)? pub fn clear_cells(Array[Slot], Int32, Int32) -> Unit pub let col_gap : Int32 pub fn column_width(Double, Int32) -> Double pub fn columns_for(Int32) -> Int32 pub fn fit(Double, Int32, Int32, Double, Double, Int32, Int32) -> Int32 pub fn move_slot(Array[Slot], Int32, Int32) -> Unit pub fn pack(Array[Slot], Int32, Int32, hidden? : (Int32) -> Bool) -> Packed pub fn pin(Array[Slot], Int32, Int32, Int32, Int32, Int32) -> Unit pub let row_gap : Int32 pub fn rows_fit(Double) -> Int32 pub fn span(Int32, Double, Double) -> Double pub fn widget_cols(Int32, Double, Int32) -> Int32 pub fn widget_rows(Int32) -> Int32 // Errors // Types and methods #derive(Eq, @debug.Debug) pub(all) struct Cell { col : Int32 row : Int32 w : Int32 h : Int32 } #derive(Eq, @debug.Debug) pub(all) enum Kind { App Widget } pub(all) struct Packed { cells : Array[Cell?] rows : Int32 } #derive(Eq, @debug.Debug) pub(all) struct Slot { kind : Kind str : String wid : Int32 mut w : Int32 mut rows : Int32 mut x : Int32 mut y : Int32 key : Int32 } pub fn Slot::app(String, key? : Int32) -> Self pub fn Slot::cols(Self, Int32) -> Int32 pub fn Slot::height(Self) -> Int32 pub fn Slot::pinned(Self, Int32) -> Bool pub fn Slot::widget(String, Int32, w? : Int32, rows? : Int32, key? : Int32) -> Self // Type aliases // Traits