Class DrawableCache
class DrawableCache;
Constructors
| Name | Description |
|---|---|
this
()
|
Fields
| Name | Type | Description |
|---|---|---|
_idToDrawableMap
|
DrawableCache | |
_idToFileMap
|
string[string] | |
_nullDrawable
|
Ref!(dcanvas.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
(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
| Name | Description |
|---|---|
DrawableCacheItem
|
Aliases
| Name | Description |
|---|---|
~this
|