Files
launcher/grid/pkg.generated.mbti
nandi 472a48f4bd
Launcher / test (push) Successful in 1m59s
Launcher / apk (push) Successful in 38s
Add an icon size setting (#3)
2026-11-24 22:43:04 +00:00

121 lines
2.3 KiB
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "experiments/launcher/grid"
import {
"moonbitlang/core/debug",
}
// Values
pub fn box(Cell, Double, ch? : Int32) -> (Double, Double, Double, Double)
pub fn cell_at(Double, Double, Double, ch? : Int32) -> (Int32, Int32)
pub fn cell_height(Int32) -> Int32
pub let cell_px : Int32
pub fn cell_under(Double, Double, Double, ch? : Int32) -> (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 css_factor(Int32) -> String
pub fn drawer_columns(Int32, Int32) -> Int32
pub let drawer_icon_px : Int32
pub fn fit(Double, Int32, Int32, Double, Double, Int32, Int32) -> Int32
pub fn home_columns(Int32, Double, Int32) -> Int32
pub let home_icon_px : Int32
pub let min_cols : Int32
pub fn move_slot(Array[Slot], Int32, Int32) -> Unit
pub fn pack(Array[Slot], Int32, Int32, hidden? : (Int32) -> Bool) -> Packed
pub fn parse_scale(String) -> Result[Int32, String]
pub fn pin(Array[Slot], Int32, Int32, Int32, Int32, Int32) -> Unit
pub let row_gap : Int32
pub fn rows_fit(Double, ch? : Int32) -> Int32
pub let scale_default : Int32
pub let scale_large : Int32
pub let scale_max : Int32
pub let scale_medium : Int32
pub let scale_min : Int32
pub let scale_small : Int32
pub let scale_step : Int32
pub fn scale_valid(Int32) -> Bool
pub fn scaled_columns(Int32, Int32, Double, Int32, Int32) -> Int32
pub fn scaled_px(Int32, Int32) -> Int32
pub fn span(Int32, Double, Double) -> Double
pub fn widget_cols(Int32, Double, Int32) -> Int32
pub fn widget_rows(Int32, ch? : 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