Class DrawableCache

Inherits from

  • Object (base class)

Constructors

Name Description
this

Fields

Name Type Description
_idToDrawableMap DrawableCache.DrawableCacheItem[string]
_idToFileMap string[string]
_nullDrawable Ref!(dlangui.graphics.resources.Drawable)
_resourcePaths string[]

Properties

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

Methods

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

Inner classes

Name Description
DrawableCacheItem

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2014

License

Boost License 1.0