Module flower.widget.TextView

View class that displays a scrollable text.

Extends:

Info:

  • Release: V3.0.0
  • Author: Makoto

Functions

TextView:_initInternal () Initializes the internal variables.
TextView:_createChildren () Create a children object.
TextView:_updateTextLabel () Update the Text Label.
TextView:updateDisplay () Update the display objects.
TextView:setText (text) Sets the text.
TextView:addText (text) Adds the text.
TextView:getText () Returns the text.
TextView:setTextSize (textSize) Sets the textSize.
TextView:getTextSize () Returns the textSize.
TextView:setFontName (fontName) Sets the fontName.
TextView:getFontName () Returns the font name.
TextView:getFont () Returns the font.
TextView:setTextAlign (horizontalAlign, verticalAlign) Sets the text align.
TextView:getTextAlign () Returns the text align.
TextView:getAlignment () Returns the text align for MOAITextBox.
TextView:setTextColor (red, green, blue, alpha) Sets the text color.
TextView:getTextColor () Returns the text color.

Fields

STYLE_FONT_NAME Style: fontName
STYLE_TEXT_SIZE Style: textSize
STYLE_TEXT_COLOR Style: textColor
STYLE_TEXT_ALIGN Style: textSize


Functions

TextView:_initInternal ()
Initializes the internal variables.
TextView:_createChildren ()
Create a children object.
TextView:_updateTextLabel ()
Update the Text Label.
TextView:updateDisplay ()
Update the display objects.
TextView:setText (text)
Sets the text.

Parameters:

  • text text
TextView:addText (text)
Adds the text.

Parameters:

  • text text
TextView:getText ()
Returns the text.

Returns:

    text
TextView:setTextSize (textSize)
Sets the textSize.

Parameters:

  • textSize textSize
TextView:getTextSize ()
Returns the textSize.

Returns:

    textSize
TextView:setFontName (fontName)
Sets the fontName.

Parameters:

  • fontName fontName
TextView:getFontName ()
Returns the font name.

Returns:

    font name
TextView:getFont ()
Returns the font.

Returns:

    font
TextView:setTextAlign (horizontalAlign, verticalAlign)
Sets the text align.

Parameters:

  • horizontalAlign horizontal align(left, center, top)
  • verticalAlign vertical align(top, center, bottom)
TextView:getTextAlign ()
Returns the text align.

Returns:

  1. horizontal align(left, center, top)
  2. vertical align(top, center, bottom)
TextView:getAlignment ()
Returns the text align for MOAITextBox.

Returns:

  1. horizontal align
  2. vertical align
TextView:setTextColor (red, green, blue, alpha)
Sets the text color.

Parameters:

  • red red(0 ... 1)
  • green green(0 ... 1)
  • blue blue(0 ... 1)
  • alpha alpha(0 ... 1)
TextView:getTextColor ()
Returns the text color.

Returns:

  1. red(0 ... 1)
  2. green(0 ... 1)
  3. blue(0 ... 1)
  4. alpha(0 ... 1)

Fields

STYLE_FONT_NAME
Style: fontName
STYLE_TEXT_SIZE
Style: textSize
STYLE_TEXT_COLOR
Style: textColor
STYLE_TEXT_ALIGN
Style: textSize
generated by LDoc 1.3