libgdx API

com.badlogic.gdx.scenes.scene2d
Interface Layout

All Known Implementing Classes:
Button, CheckBox, ComboBox, FlickScrollPane, Image, Label, Label, List, ScrollPane, Slider, SplitPane, Stack, Table, TextField, Widget, Window

public interface Layout


Method Summary
 float getMaxHeight()
           
 float getMaxWidth()
           
 float getMinHeight()
           
 float getMinWidth()
           
 float getPrefHeight()
           
 float getPrefWidth()
           
 void invalidate()
          Invalidates the layout, forcing the next call to layout() to relayout.
 void layout()
          Positions and sizes each child of this actor.
 

Method Detail

layout

void layout()
Positions and sizes each child of this actor. Subsequent calls will not have any affect unless invalidate() is called.


invalidate

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


getMinWidth

float getMinWidth()

getMinHeight

float getMinHeight()

getPrefWidth

float getPrefWidth()

getPrefHeight

float getPrefHeight()

getMaxWidth

float getMaxWidth()

getMaxHeight

float getMaxHeight()

libgdx API

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