Icons etc
API Overview #
- Deprecateds - API features which will be removed in an upcoming release
- Functions - API calls offered directly by the extension
API Documentation #
Deprecateds #
macFile #
Signature | GridCraft.Icon.macFile(filePath) -> string or nil |
Type | Deprecated |
Description | Use fromMacIcon() instead. |
Functions #
phosphor #
Signature | GridCraft.Icon.phosphor(name, [weight]) -> string or nil |
Type | Function |
Description | Create an icon from a Phosphor icon name and weight |
Parameters |
|
fromMacIcon #
Signature | GridCraft.Icon.fromMacIcon(filePath) -> string or nil |
Type | Function |
Description | Create an icon from the icon of a macOS file (including folders, applications, etc) |
Parameters |
|
fileContents #
Signature | GridCraft.Icon.fileContents(filePath) -> string or nil |
Type | Function |
Description | Create an icon from the contents of a file |
Parameters |
|
Returns |
|
empty #
Signature | GridCraft.Icon.empty() -> string |
Type | Function |
Description | Create an empty icon, which is a transparent PNG image |
Parameters |
|
Returns |
|