40 lines
662 B
Plaintext
40 lines
662 B
Plaintext
// Generated using `moon info`, DON'T EDIT IT
|
|
package "moonplasma/desktop/lib/panel"
|
|
|
|
// Values
|
|
pub fn layout(Int32, Int32, Int32, Int32, Int32, Array[SlotIn]) -> Result[PanelLayout, String]
|
|
|
|
pub fn popup_position(Int32, Int32, Int32, Int32, Int32, Int32) -> (Int32, Int32)
|
|
|
|
// Errors
|
|
|
|
// Types and methods
|
|
pub(all) struct PanelLayout {
|
|
x : Int32
|
|
y : Int32
|
|
w : Int32
|
|
h : Int32
|
|
placements : Array[Placed]
|
|
}
|
|
|
|
pub(all) struct Placed {
|
|
id : String
|
|
x : Int32
|
|
y : Int32
|
|
w : Int32
|
|
h : Int32
|
|
}
|
|
|
|
pub(all) struct SlotIn {
|
|
id : String
|
|
pref_w : Int32
|
|
pref_h : Int32
|
|
min_w : Int32
|
|
stretch : Bool
|
|
end_align : Bool
|
|
}
|
|
|
|
// Type aliases
|
|
|
|
// Traits
|