# Class: TextButton

### LuxModule: gui

A textbutton is a very simple rectangle button that has a caption.

## Hierarchy

    o-+ Component
      o-+ Button
        o-+ TextButton
          o-+ SkinableButton
          | o-- SkinableCheckbox

## Methods:

### Method overview:

- colors
- colors.background
- colors.focus
- colors.foreground
- colors.highlight
- colors.mousedown
- colors.mouseover
- colors.shadow
- createVisibles
- deleteVisibles
- hideVisibles
- new
- positionUpdate
- showVisibles
- toString

new (table class, float x,y,w,h, string caption)
  returns: (TextButton)
  textbutton with the given string as caption.
colors
  {[table]} - table of colors for the textbutton
colors.background
  {[table]} - 4 float values representing the rgba color.
colors.focus
  {[table]} - 4 float values representing the rgba color.
colors.foreground
  {[table]} - 4 float values representing the rgba color.
colors.highlight
  {[table]} - 4 float values representing the rgba color.
colors.mousedown
  {[table]} - 4 float values representing the rgba color.
colors.mouseover
  {[table]} - 4 float values representing the rgba color.
colors.shadow
  {[table]} - 4 float values representing the rgba color.
createVisibles (TextButton self)
  returns: ()
  called when a Component is now displayable (doesn't have to be visible)
deleteVisibles (TextButton self)
  returns: ()
  called when a Component is no longer displayed
hideVisibles (TextButton self)
  returns: ()
  called when visible objects (l2ds) are no longer visible
positionUpdate (TextButton self)
  returns: ()
  updates all the position info
showVisibles (Component self)
  returns: ()
  called when visible objects (l2ds) are now visible
toString (TextButton self)
  returns: ()
  returns simple string representation of the button

## Inherited Methods:

### From Button

actionListeners, addActionListener, clicked, dataButton, dataButton.isFocusable, dataButton.mouseover, dataButton.pressed, dataButton.pressedMouseButton, dataButton.pressedSince, isFocusable, isPushButton, isPushed, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, new, onAction, onClicked, removeActionListener, setDisplayable, setPushState, setPushable, setVisibility

### From Component

addKeyListener, addMouseListener, clipinsets, colors, contains, createVisibles, delete, deleteVisibles, focus, focuscolors, getBounds, getClipRect, getFocusComponentAt, getFocusElement, getFocusIndex, getHeight, getLocation, getMinSize, getMouseLock, getSize, getWidth, getX, getY, hasFocus, hideVisibles, index, invalidate, isDisplayedFlag, isFocusable, isMouseLocker, isVisible, isVisibleFlag, keyEvent, keylisteners, local2world, lockMouse, mouseClicked, mouseEntered, mouseEvent, mouseExited, mouseMoved, mousePressed, mouseReleased, mouselisteners, new, onDestroy, onDisplayChange, onGainedFocus, onLostFocus, onVisibilityChange, positionUpdate, releaseMouse, remove, removeKeyListener, removeMouseListener, setBounds, setDisplayable, setLocation, setSize, setVisibility, showVisibles, think, toString, transferFocus, transferFocusOnArrows, transferFocusOnTab, validate, white, world2local, zorderoffset