2025-02-13 12:50:38 +04:00
|
|
|
export type BuiltinIcon = "DolphinWait_59x54" | "js_script_10px";
|
|
|
|
|
|
|
|
|
|
export type IconData = symbol & { "__tag__": "icon" };
|
|
|
|
|
// introducing a nominal type in a hacky way; the `__tag__` property doesn't really exist.
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Gets a built-in firmware icon for use in GUI
|
|
|
|
|
* @param icon Name of the icon
|
|
|
|
|
* @version Added in JS SDK 0.2, extra feature `"gui-widget"`
|
2025-09-24 00:16:47 +02:00
|
|
|
* @version Baseline since JS SDK 1.0
|
2025-02-13 12:50:38 +04:00
|
|
|
*/
|
|
|
|
|
export declare function getBuiltin(icon: BuiltinIcon): IconData;
|
2025-02-21 01:47:56 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Loads a .fxbm icon (XBM Flipper sprite, from flipperzero-game-engine) for use in GUI
|
|
|
|
|
* @param path Path to the .fxbm file
|
|
|
|
|
* @version Added in JS SDK 0.3, extra feature `"gui-widget-extras"`
|
2025-09-24 00:16:47 +02:00
|
|
|
* @version Baseline since JS SDK 1.0
|
2025-02-21 01:47:56 +00:00
|
|
|
*/
|
|
|
|
|
export declare function loadFxbm(path: string): IconData;
|