Class DrawableCache

class DrawableCache;

Constructors

NameDescription
this ()

Fields

NameTypeDescription
_idToDrawableMap DrawableCache.DrawableCacheItem[string]
_idToFileMap string[string]
_nullDrawable Ref!(dcanvas.graphics.resources.Drawable)
_resourcePaths string[]

Properties

NameTypeDescription
resourcePaths[get] string[]
resourcePaths[set] string[]set resource directory paths array (only existing dirs will be added)

Methods

NameDescription
checkpoint ()
cleanup ()
clear ()
findResource (id) get resource file full pathname by resource id, null if not found
get (id, transform)
getImage (id) get image (DrawBuf) from imageCache by resource id
setResourcePaths (paths) set resource directory paths as variable number of parameters

Inner classes

NameDescription
DrawableCacheItem

Aliases

NameDescription
~this