public class Icon:
Reusable image descriptor for GUI controls.
The concrete image is resolved once when the icon is created. Reusing it avoids allocating and identifying an image on every repaint, which is particularly important for SVG icons in toolbars and dock bars.
saveIcon = Icon("assets/icons/save.svg")
saveButton.icon = saveIcon| Modifier and Type | Member | Description |
|---|---|---|
| public property | filenamefilename as String: |
Source filename resolved by this icon. |
| public readonly property | imageimage as Image: |
Concrete image reused while painting controls. |