mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-17 04:34:44 -07:00
19 lines
659 B
TypeScript
19 lines
659 B
TypeScript
export type BuiltinIcon = string;
|
|
|
|
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"`
|
|
*/
|
|
export declare function getBuiltin(icon: BuiltinIcon): IconData;
|
|
|
|
/**
|
|
* 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"`
|
|
*/
|
|
export declare function loadFxbm(path: string): IconData;
|