Files
chandra/lib/launcher/pkg.generated.mbti
T
nandiandClaude Opus 5.5 7029c92e6e
Deploy to the handset / build-and-deploy (push) Successful in 2m21s
CI / test (push) Failing after 2m49s
Launcher: a thumb scrolls the app list
On a touchscreen a drag over the launcher's list scrolls it by pixels, a flick
keeps it going, and a tap still launches (or stops a moving list).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 22:40:32 -08:00

73 lines
1.7 KiB
Plaintext

// Generated using `moon info`, DON'T EDIT IT
package "chandra/desktop/lib/launcher"
import {
"chandra/desktop/interface/chandra/desktop/theme",
"chandra/desktop/interface/chandra/desktop/types",
}
// Values
pub fn action_at(Array[@types.AppEntry], State, @types.Point) -> Int32
pub let action_logout : Int32
pub let action_power_off : Int32
pub let action_reload : Int32
pub let action_restart : Int32
pub let action_suspend : Int32
pub fn categories(Array[@types.AppEntry]) -> Array[String]
pub fn close(State) -> Unit
pub fn filter(Array[@types.AppEntry], String) -> Array[@types.AppEntry]
pub fn handle_event(Array[@types.AppEntry], State, Target, @types.InputEvent, (String) -> Result[Unit, String], session? : (Int32) -> Unit) -> Bool
pub fn listed(Array[@types.AppEntry], State) -> Array[@types.AppEntry]
pub fn needs_confirm(Int32) -> Bool
pub fn popup_size(Array[@types.AppEntry], State) -> @types.Size
pub let popup_w : Int32
pub fn render_button(@types.Size, @theme.Tokens, State) -> Array[@types.DrawOp]
pub fn render_popup(Array[@types.AppEntry], @theme.Tokens, State, icon? : (String) -> UInt32) -> Array[@types.DrawOp]
pub fn row_at(Array[@types.AppEntry], State, @types.Point) -> Int32
pub let session_actions : Array[String]
pub fn shown_rows(Array[@types.AppEntry], State) -> Array[@types.AppEntry]
// Errors
// Types and methods
pub struct State {
mut open : Bool
mut query : String
mut hover : Int32
mut error : String
mut hover_action : Int32
mut armed : Int32
mut category : String
mut scroll : Int32
mut offset : Int32
mut hover_category : Int32
}
pub fn State::new() -> Self
pub(all) enum Target {
Widget
Popup
}
// Type aliases
// Traits