git mv of everything (web/ android/ qt/ wasi/ android-wasm/ tests/ ci/ pixi.toml README) so history follows; legacy/ keeps its own .gitignore and a new root .gitignore starts for the MoonBit project. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
package ultra:launcher@0.1.0;
|
|
|
|
interface android {
|
|
/// JSON array of {"label": string, "component": string, "system"?: bool}.
|
|
apps: func() -> string;
|
|
/// Base64-encoded premultiplied RGBA8888 pixels (size * size * 4 bytes) for "a:COMPONENT".
|
|
icon: func(key: string, size: u32) -> option<string>;
|
|
launch: func(component: string);
|
|
app-info: func(component: string);
|
|
uninstall: func(component: string);
|
|
open-settings: func();
|
|
pick-wallpaper: func();
|
|
open-recents: func();
|
|
haptic: func();
|
|
/// System bar insets in physical screen pixels: (top, bottom).
|
|
insets: func() -> tuple<u32, u32>;
|
|
/// Drain queued host events ("home", "back", "insets", "apps-changed:<pkgs>", "widget-added:<id>:<provider>").
|
|
poll-events: func() -> list<string>;
|
|
/// JSON array of {"provider": string, "label": string, "w": u32, "h": u32}.
|
|
widget-providers: func() -> string;
|
|
/// Bind a widget for provider; emits "widget-added:<id>:<provider>".
|
|
add-widget: func(provider: string);
|
|
remove-widget: func(id: s32);
|
|
/// Place live widget views: JSON [[id, x, y, w, h], ...] in physical screen px.
|
|
place-widgets: func(json: string);
|
|
set-widgets-visible: func(visible: bool);
|
|
}
|
|
|
|
world gui {
|
|
include latha:gui/gui@0.2.3;
|
|
import android;
|
|
}
|