Class TextButton

Object
   |
   +--Button
         |
         +--TextButton

class TextButton
extends Button

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

className

<final> String className

font

String font

fontSize

float fontSize

text

String text

textColor

Array(4) textColor

Constructor Detail

TextButton

TextButton(name, sketcher, text)

Method Detail

drawBase

void drawBase()

getText

String getText()

parent

Object parent(<String> name, <Object> sketcher)

setText

void setText(<String> text, <String> font, <float> fontSize)


Documentation generated by JSDoc on Wed Sep 6 11:55:06 2006