Overall height of the icon and text with all space and padding included.
Overall height of the icon and text with all space and padding included.
Render the icon and text at the specified position.
Render the icon and text at the specified position.
Set the icon image to draw, or null to remove the icon.
Set the icon image to draw, or null to remove the icon.
Set the text string to paint.
Set the text string to paint.
Overall width of the icon and text with all space and padding included.
Overall width of the icon and text with all space and padding included.
Overall ascent of the icon and text with all space and padding included.
Overall descent of the icon and text with all space and padding included.
A wrapper for a text and an icon.
The text is dynamic and therefore specified at each rendering. The icon is fixed by the style and specified only at construction, excepted if the icon name is "dynamic" in which case it is taken from the "ui.icon" attribute of the element.
The constructor parameters
offx
,offy
,padx
andpady
are expressed in pixels. The represent the offset of the text according to its origin and the padding around the text. Thetext
parameter is aTextBox
that allows to wrap the text.XXX TODO This should really be called "ElementContents".