libgdx API

com.badlogic.gdx.scenes.scene2d.ui.tablelayout
Class TableLayout

java.lang.Object
  extended by 
      extended by com.badlogic.gdx.scenes.scene2d.ui.tablelayout.TableLayout

public class TableLayout
extends

Author:
Nathan Sweet

Field Summary
 TextureAtlas atlas
          The atlas to use to find texture regions.
 
Constructor Summary
TableLayout()
           
TableLayout(LibgdxToolkit toolkit)
           
 
Method Summary
 void drawDebug(SpriteBatch batch)
           
 Actor getWidget(java.lang.String name)
           
 void invalidate()
          Invalidates the layout, forcing the next call to layout() to relayout.
 void invalidateHierarchy()
          Invalides the layout of this widget and every parent widget to the root of the hierarchy.
 void layout()
           
 Actor register(Actor actor)
          Calls #register(String, Actor) with the name of the actor.
 Actor registerImage(java.lang.String name)
          Finds the texture region in the atlas, creates an Image and registers it with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

atlas

public TextureAtlas atlas
The atlas to use to find texture regions.

Constructor Detail

TableLayout

public TableLayout()

TableLayout

public TableLayout(LibgdxToolkit toolkit)
Method Detail

register

public Actor register(Actor actor)
Calls #register(String, Actor) with the name of the actor.


registerImage

public Actor registerImage(java.lang.String name)
Finds the texture region in the atlas, creates an Image and registers it with the specified name.


getWidget

public Actor getWidget(java.lang.String name)

layout

public void layout()

invalidate

public void invalidate()
Invalidates the layout, forcing the next call to layout() to relayout. If a widget is resized or otherwise changed in a way that affects its layout, invalidate() should be called.


invalidateHierarchy

public void invalidateHierarchy()
Invalides the layout of this widget and every parent widget to the root of the hierarchy.


drawDebug

public void drawDebug(SpriteBatch batch)

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)