-
Notifications
You must be signed in to change notification settings - Fork 2
IHasText
Andrew Kvapil edited this page Nov 15, 2015
·
3 revisions
The IHasText interface targets subclasses of Sheet that draw plain colour, word-wrapped, and aligned text.
IHasText.text - string
The text shown by the object.
This method is chainable.
IHasText:autoHeight()Sets the height of the object to the minimum required to show all the text content at the current width.
IHasText:setText( string text )Sets the text of the object.
IHasText:wrapText( bool ignoreHeight = false )Word-wraps the text, ignoring the height limit if ignoreHeight is true.
IHasText:drawText( string state )Draws the text to the canvas of the object, using style options defined with the state given (i.e. default, pressed, etc).
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException