Class DrawableCache.DrawableCacheItem

class DrawableCacheItem;

Constructors

NameDescription
this (id, filename, tiled)

Fields

NameTypeDescription
_drawable Ref!(dcanvas.graphics.resources.Drawable)
_error bool
_filename string
_id string
_tiled bool
_transformed Ref!(dcanvas.graphics.resources.Drawable)[ColorTransform]
_used bool

Properties

NameTypeDescription
drawable[set] Ref!(dcanvas.graphics.resources.Drawable)returns drawable (loads from file if necessary)

Methods

NameDescription
checkpoint () mark as not used
cleanup () cleanup if unused since last checkpoint
compact () remove from memory, will cause reload on next access

Aliases

NameDescription
~this