Class Label

A text label for displaying text.

Usage:

     -- Create a label with the text "Hello"
     local label = Label(0, 0, "Hello")

Fields

Label.text The text of the label.

Constructor

Label:_init (x, y, text, fontSize, fontColor) Constructs a new Label.


Fields

Label.text
The text of the label.

Constructor

Label:_init (x, y, text, fontSize, fontColor)
Constructs a new Label.

Parameters:

  • x The x coordinate of the new component, relative to its parent.
  • y The y coordinate of the new component, relative to its parent.
  • text The text string to display on the button. The button's size will be based on this string.
  • fontSize (optional) The font size of the text to display, default 10.
  • fontColor (optional) The color of the text to display, default white.
generated by LDoc 1.4.3 Last updated 2015-02-10 07:20:59