StateDrawable

Destructor

~this
~this()
Undocumented in source.

Members

Classes

StateItem
class StateItem
Undocumented in source.

Functions

addState
void addState(uint stateMask, uint stateValue, string resourceId, ColorTransform transform)
Undocumented in source. Be warned that the author may not have intended to support it.
addState
void addState(uint stateMask, uint stateValue, DrawableRef drawable)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTo
void drawTo(DrawBuf buf, Rect rc, uint state, int tilex0, int tiley0)
Undocumented in source. Be warned that the author may not have intended to support it.
load
bool load(Element element)
Undocumented in source. Be warned that the author may not have intended to support it.
load
bool load(string filename)

load from XML file

Properties

height
int height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
padding
Rect padding [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

parseList4
bool parseList4(string value, T[4] items)

parse 4 comma delimited integers

Variables

_paddings
Rect _paddings;
Undocumented in source.
_size
Point _size;
Undocumented in source.
_stateList
StateItem[] _stateList;
Undocumented in source.

Inherited Members

From Drawable

_instanceCount
int _instanceCount;
Undocumented in source.
instanceCount
int instanceCount [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
~this
~this()
Undocumented in source.
drawTo
void drawTo(DrawBuf buf, Rect rc, uint state, int tilex0, int tiley0)
Undocumented in source.
width
int width [@property getter]
Undocumented in source.
height
int height [@property getter]
Undocumented in source.
padding
Rect padding [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta