mixinafReflux::Images

afReflux::Images

(Service) - Maintains a cache of Images, ensuring they are disposed of properly.

disposeAll

Source

abstract Void disposeAll()

Disposes of all the images. This is called on registry shutdown. The AppModule config key is afReflux.disposeOfImages.

get

Source

@Operator
abstract Image? get(Uri uri, Bool checked := true)

Returns the image at the given URI, storing it in the cache.

getFaded

Source

abstract Image? getFaded(Uri uri, Bool checked := true)

Returns (and caches) a faded version of the image at the given URI. Useful for generating disabled icons.

load

Source

abstract Image? load(Uri uri, Bool checked := true)

Returns (and caches) the image at the given URI ensuring that it is fully loaded and that its size() is available.