# Class: TitleFrame

### LuxModule: gui

TitleFrames are containers with an initial skin. Following skinnames are being used:

- titleframe
- titleframe_hover
- ...

## Hierarchy

    o-+ Component
      o-+ Container
        o-+ TitleFrame

## Methods:

new (table class, int x,y,w,h,[Skin2D skin],[string title])
  returns: (TitleFrame)
  creates a container with the given bounds. If no skin is given the default skin for frames is being used.
setTitle (TitleFrame,text)
  returns: (TitleFrame)
  sets titlecaption
setTitleAlign (TitleFrame,align)
  returns: (TitleFrame)
  sets titlecaption alignment. Can be either Skin2D.ALIGN.LEFT, Skin2D.ALIGN.RIGHT or Skin2D.ALIGN.CENTERED or a number for the absolute x coordinate.

## Inherited Methods:

### From Container

add, components, delete, deleteChilds, getComponentAt, getForegroundContainer, getRootContainer, invalidate, isChildOf, isRootContainer, mouseEvent, new, onDisplayChange, onVisibilityChange, removeChilds, removeComponent, toString, validate

### From Component

acceptSkinBounds, addKeyListener, addMouseListener, clipinsets, colors, contains, createVisibles, delete, deleteVisibles, focus, focuscolors, getBounds, getClipRect, getFocusComponentAt, getFocusElement, getFocusIndex, getHeight, getLocation, getMinSize, getMouseLock, getParent, getSize, getSkin, getWidth, getX, getY, hasFocus, hideVisibles, index, invalidate, isClipped, isDisplayedFlag, isFocusable, isMouseLocker, isVisible, isVisibleFlag, keyEvent, keylisteners, local2world, lockMouse, mouseClicked, mouseEntered, mouseEvent, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheeled, mouselisteners, moveToRect, new, newFocusOrder, onDestroy, onDisplayChange, onGainedFocus, onLostFocus, onVisibilityChange, positionUpdate, remove, removeKeyListener, removeMouseListener, setBounds, setClip, setColor, setDisplayable, setFont, setLocation, setSize, setSkin, setVisibility, showVisibles, skinnames.defaultskin, skinnames.focusedskin, skinnames.hoveredskin, skinnames.pressedskin, think, toString, transferFocus, transferFocusOnArrows, transferFocusOnTab, unlockMouse, updateSkin, validate, white, world2local, zorderoffset