Function icon

  • Attribute that may be used on classes that have an icon representation.

    The onGenerateIcon lambda should return an Image for the requested size. The lookup should be fast as it will be called frequently by code that displays icons. The first result will be cached by size and reused.

    Parameters

    Returns AttributeDecorator<Attribute>

    For resources that have a per-resource differing preview use the ProjectWindow.setIcon API to set a custom preview for your window resource.

    For DockableEditorWindow and KeyWindow, specifies the icon the window should have when visible on tab bars.