Class DrawableCache.DrawableCacheItem
class DrawableCacheItem;
Constructors
| Name | Description |
|---|---|
this
(id, filename, tiled)
|
Fields
| Name | Type | Description |
|---|---|---|
_drawable
|
Ref!(dcanvas.graphics.resources.Drawable) | |
_error
|
bool | |
_filename
|
string | |
_id
|
string | |
_tiled
|
bool | |
_transformed
|
Ref!(dcanvas.graphics.resources.Drawable)[ColorTransform] | |
_used
|
bool |
Properties
| Name | Type | Description |
|---|---|---|
drawable[set]
|
Ref!(dcanvas.graphics.resources.Drawable) | returns drawable (loads from file if necessary) |
Methods
| Name | Description |
|---|---|
checkpoint
()
|
mark as not used |
cleanup
()
|
cleanup if unused since last checkpoint |
compact
()
|
remove from memory, will cause reload on next access |
Aliases
| Name | Description |
|---|---|
~this
|