# Class: ImageButton

### LuxModule: gui

An imagebutton is the most simple button - an image that may react on userinput or not.

## Hierarchy

    o-+ Component
      o-+ Button
        o-+ ImageButton

## Methods:

new (table class, float x,y,w,h, string/matsurface image, [string / matsurface mouseoverimg)
  returns: (ImageButton)
  creates an imagebutton with the specified coordinates and the given image. If image is a string, a 2d texture is loaded without mipmapping.
positionUpdate (ImageButton self)
  returns: ()
  updates the position of the imagebutton.
setMouseOverImage (string/matsurface image)
  returns: ()
  Sets the image to be shown if the mouse is over the component.

## 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, transferFocusOnTab, validate, white, world2local, zorderoffset