|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--Button
|
+--TextButton
Defined in example.lfo.jsui.js
| Field Summary | |
<final> String |
className
Name of the class: "TextButton" |
String |
font
Font name for text. |
float |
fontSize
Font size (points) for text. |
String |
text
Text to display across Button. |
Array(4) |
textColor
R,G,B,A color of this Button's text. |
| Fields inherited from class Button |
data, className, handler, mouseWasOver, clicked, screenLocation, worldLocation, size, scale, color, hitmask, overmask, inactivemask, debug, clickedHoldMax, clickedCount, active, hidden, toggle
|
| Constructor Summary | |
TextButton
(name, sketcher, text)
Simple GUI Button subclass with text label. |
|
| Method Summary | |
void
|
drawBase()
Overloaded drawBase function from Button that draws a plain rectangle and then text. |
String
|
getText()
Get this Button's text string. |
Object
|
parent(<String> name, <Object> sketcher)
Simple Button classes for GUI events. |
void
|
setText(<String> text, <String> font, <float> fontSize)
Set this Button's text string. |
| Methods inherited from class Button |
setActive, getActive, setHidden, getHidden, setScale, getScale, setSize, getSize, setWorldLocation, getWorldLocation, setScreenLocation, getScreenLocation, onclick, push, onidle, ondblclick, ondrag, onidleout, onresize, hitTest, setHandler, getHandler, setClicked, draw, drawClickedOverlay, drawOverOverlay, drawInactiveOverlay, toString, clone
|
| Field Detail |
<final> String className
String font
float fontSize
String text
Array(4) textColor
| Constructor Detail |
TextButton(name, sketcher, text)
| Method Detail |
void drawBase()
String getText()
Object parent(<String> name, <Object> sketcher)
name - This will be the name of the button (a way of identifying it)
sketcher - The sketch object that will draw the button, associated with this jsui
void setText(<String> text, <String> font, <float> fontSize)
text - text string to display across Button.
font - Font name for text.
fontSize - Font size in points.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||