Class: Toybox.WatchUi.TextArea
- Inherits:
-
Toybox.WatchUi.Drawable
Overview
A representation of a text area that will automatically apply line breaks to fit as much text as possible.
See Also:
Instance Method Summary collapse
-
draw(dc as Graphics.Dc) as Void
Draw Text to the device context (Dc).
-
initialize(options as { :text as Lang.String or Lang.ResourceId, :color as Graphics.ColorType, :backgroundColor as Graphics.ColorType, :font as Graphics.FontType or Lang.Array<Graphics.FontType>, :justification as Graphics.TextJustification or Lang.Number, :identifier as Lang.Object, :locX as Lang.Numeric, :locY as Lang.Numeric, :width as Lang.Numeric, :height as Lang.Numeric, :visible as Lang.Boolean })
Constructor.
-
setBackgroundColor(color as Graphics.ColorType) as Void
Set the background color of a Text object.
-
setColor(color as Graphics.ColorType) as Void
Set the color of a Text object.
-
setFont(font as Graphics.FontType or Lang.Array<Graphics.FontType>) as Void
Set the font face of a Text object.
-
setJustification(justification as Lang.Number) as Void
Set the justification of a Text object.
-
setText(text as Lang.String or Lang.ResourceId) as Void
Set the text string of a Text object.
Instance Method Details
draw(dc as Graphics.Dc) as Void
Draw Text to the device context (Dc).
initialize(options as { :text as Lang.String or Lang.ResourceId, :color as Graphics.ColorType, :backgroundColor as Graphics.ColorType, :font as Graphics.FontType or Lang.Array<Graphics.FontType>, :justification as Graphics.TextJustification or Lang.Number, :identifier as Lang.Object, :locX as Lang.Numeric, :locY as Lang.Numeric, :width as Lang.Numeric, :height as Lang.Numeric, :visible as Lang.Boolean })
Constructor
setBackgroundColor(color as Graphics.ColorType) as Void
Set the background color of a Text object.
setColor(color as Graphics.ColorType) as Void
Set the color of a Text object.
setFont(font as Graphics.FontType or Lang.Array<Graphics.FontType>) as Void
Set the font face of a Text object.
setJustification(justification as Lang.Number) as Void
Set the justification of a Text object.
setText(text as Lang.String or Lang.ResourceId) as Void
Set the text string of a Text object.