The Label class
The Label class contains primitives to display and configure
UI based text labels. You can retrieve and change the current text data by
using the "setLabel" and "getLabel" functions.
See also: Widget
Example:
-- Create a label
label = Label(10, 10, 100, 20, "This is an input field!")
-- Add it to the main canvas
mainCanvas:addWidget(label)
Label(x,y,w,h,text)
Creates a new button.
Parameter
x
The x position on the canvas
y
The y position on the canvas
w
The width of the widget
h
The height of the widget
text
The label of the widget