Class R.text.ContextText
Extends
R.text.AbstractTextRenderer.
A text renderer which draws text using the context's native
text rendering mechansim. This may not work on all platforms, in
all browsers. If not, see R.text.BitmapText as an alternative.
Defined in: contexttext.js.
Constructor Attributes | Constructor Name and Description |
---|---|
- Fields borrowed from class R.text.AbstractTextRenderer:
- ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
- Fields borrowed from class R.components.Base:
- TYPE_COLLIDER, TYPE_INPUT, TYPE_LOGIC, TYPE_RENDERING, TYPE_TRANSFORM
Method Attributes | Method Name and Description |
---|---|
Get the class name of this object
|
|
isNative()
Return true if the text renderer is native to the context.
|
|
release()
Release the text renderer back into the pool for reuse
|
- Methods borrowed from class R.text.AbstractTextRenderer:
- getColor, getLineSpacing, getSize, getText, getTextAlignment, getTextFont, getTextStyle, getTextWeight, setColor, setLineSpacing, setSize, setText, setTextAlignment, setTextFont, setTextStyle, setTextWeight
- Methods borrowed from class R.components.Base:
- execute, getGameObject, getHostObject, getPriority, getType, getTypeString, setGameObject, setHostObject, setPriority
- Methods borrowed from class R.engine.BaseObject:
- addEvent, addEvents, destroy, getElement, jQ, removeEvent, setElement, triggerEvent, update
- Methods borrowed from class R.engine.PooledObject:
- clearObjectDataModel, getId, getName, getObjectDataModel, getProperties, isDestroyed, setName, setObjectDataModel, toString, toXML
Method Detail
{String}
getClassName()
Get the class name of this object
- Returns:
- {String} The string "R.text.ContextText"
{Boolean}
isNative()
Return true if the text renderer is native to the context.
- Returns:
- {Boolean}
release()
Release the text renderer back into the pool for reuse