Package com.prineside.luaj.mapping.parts
Class LJ_GDX_scenes_scene2d.Layout_BK.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_scenes_scene2d.Layout_BK.LIP
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Layout
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_scenes_scene2d.Layout_BK
public static class LJ_GDX_scenes_scene2d.Layout_BK.LIP
extends InterfaceProxy
implements com.badlogic.gdx.scenes.scene2d.utils.Layout
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Zero indicates no max height.float
Zero indicates no max width.float
float
float
float
void
Invalidates this actor's layout, causingLayout.layout()
to happen the next timeLayout.validate()
is called.void
Invalidates this actor and its ascendants, callingLayout.invalidate()
on each.void
layout()
Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child, callsLayout.invalidate()
on any each child whose width or height has changed, and callsLayout.validate()
on each child.void
pack()
Sizes this actor to its preferred width and height, then callsLayout.validate()
.void
setFillParent
(boolean p1) If true, this actor will be sized to the parent inLayout.validate()
.void
setLayoutEnabled
(boolean p1) Enables or disables the layout for this actor and all child actors, recursively.void
validate()
Ensures the actor has been laid out.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
getMaxHeight
public float getMaxHeight()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Zero indicates no max height.- Specified by:
getMaxHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
getMaxWidth
public float getMaxWidth()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Zero indicates no max width.- Specified by:
getMaxWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
getMinHeight
public float getMinHeight()- Specified by:
getMinHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
getMinWidth
public float getMinWidth()- Specified by:
getMinWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
getPrefHeight
public float getPrefHeight()- Specified by:
getPrefHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
getPrefWidth
public float getPrefWidth()- Specified by:
getPrefWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
invalidate
public void invalidate()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Invalidates this actor's layout, causingLayout.layout()
to happen the next timeLayout.validate()
is called. This method should be called when state changes in the actor that requires a layout but does not change the minimum, preferred, maximum, or actual size of the actor (meaning it does not affect the parent actor's layout).- Specified by:
invalidate
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
invalidateHierarchy
public void invalidateHierarchy()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Invalidates this actor and its ascendants, callingLayout.invalidate()
on each. This method should be called when state changes in the actor that affects the minimum, preferred, maximum, or actual size of the actor (meaning it potentially affects the parent actor's layout).- Specified by:
invalidateHierarchy
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
layout
public void layout()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Computes and caches any information needed for drawing and, if this actor has children, positions and sizes each child, callsLayout.invalidate()
on any each child whose width or height has changed, and callsLayout.validate()
on each child. This method should almost never be called directly, insteadLayout.validate()
should be used.- Specified by:
layout
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
pack
public void pack()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Sizes this actor to its preferred width and height, then callsLayout.validate()
.Generally this method should not be called in an actor's constructor because it calls
Layout.layout()
, which means a subclass would have layout() called before the subclass' constructor. Instead, in constructors simply set the actor's size toLayout.getPrefWidth()
andLayout.getPrefHeight()
. This allows the actor to have a size at construction time for more convenient use with groups that do not layout their children.- Specified by:
pack
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
setFillParent
public void setFillParent(boolean p1) Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
If true, this actor will be sized to the parent inLayout.validate()
. If the parent is the stage, the actor will be sized to the stage. This method is for convenience only when the widget's parent does not set the size of its children (such as the stage).- Specified by:
setFillParent
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
setLayoutEnabled
public void setLayoutEnabled(boolean p1) Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Enables or disables the layout for this actor and all child actors, recursively. When false,Layout.validate()
will not cause a layout to occur. This can be useful when an actor will be manipulated externally, such as with actions. Default is true.- Specified by:
setLayoutEnabled
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-
validate
public void validate()Description copied from interface:com.badlogic.gdx.scenes.scene2d.utils.Layout
Ensures the actor has been laid out. CallsLayout.layout()
ifLayout.invalidate()
has been called since the last timeLayout.validate()
was called, or if the actor otherwise needs to be laid out. This method is usually called inActor.draw(Batch, float)
by the actor itself before drawing is performed.- Specified by:
validate
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout
-