dlangui.graphics.resources

DLANGUI library.

This module contains resource management and drawables implementation.

imageCache is RAM cache of decoded images (as DrawBuf).

drawableCache is cache of Drawables.

Supports nine-patch PNG images in .9.png files (like in Android).

Supports state drawables using XML files similar to ones in Android).

Synopsis:

import dlangui.graphics.resources;

Members

Aliases

DrawableRef
alias DrawableRef = Ref!Drawable
Undocumented in source.

Classes

Drawable
class Drawable
Undocumented in source.
DrawableCache
class DrawableCache
Undocumented in source.
EmptyDrawable
class EmptyDrawable
Undocumented in source.
ImageCache
class ImageCache

decoded image cache

ImageDrawable
class ImageDrawable
Undocumented in source.
SolidFillDrawable
class SolidFillDrawable
Undocumented in source.
StateDrawable
class StateDrawable

Drawable which is drawn depending on state (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)

Functions

attrValue
string attrValue(Element item, string attrname, string attrname2)
Undocumented in source. Be warned that the author may not have intended to support it.
attrValue
string attrValue(string[string] attr, string attrname, string attrname2)
Undocumented in source. Be warned that the author may not have intended to support it.
extractStateFlag
void extractStateFlag(string[string] attr, string attrName, string attrName2, State state, uint stateMask, uint stateValue)
Undocumented in source. Be warned that the author may not have intended to support it.
extractStateFlags
void extractStateFlags(string[string] attr, uint stateMask, uint stateValue)

converts XML attribute name to State (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)

Properties

drawableCache
DrawableCache drawableCache [@property getter]

drawable cache singleton

drawableCache
void drawableCache [@property getter]

drawable cache singleton

imageCache
ImageCache imageCache [@property getter]

image cache singleton

imageCache
void imageCache [@property getter]

image cache singleton

Static variables

_drawableCache
DrawableCache _drawableCache;
Undocumented in source.
_imageCache
ImageCache _imageCache;
Undocumented in source.

Meta