Class CappedLayout
java.lang.Object
com.blackrook.gui.layout.CappedLayout
- All Implemented Interfaces:
GUILayout
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLayout attributes for layout components.static enumCap style enumeration. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new capped layout in horizontal style.CappedLayout(CappedLayout.Style style) Creates a new capped layout. -
Method Summary
Modifier and TypeMethodDescriptionvoidresizeChild(GUIObject object, int index, int childTotal) Called when a child object needs resizing.
-
Field Details
-
style
Slider style.
-
-
Constructor Details
-
CappedLayout
public CappedLayout()Creates a new capped layout in horizontal style. -
CappedLayout
Creates a new capped layout.- Parameters:
style- the style of the layout.
-
-
Method Details
-
resizeChild
Description copied from interface:GUILayoutCalled when a child object needs resizing. DO NOT RESIZE THE PARENT OBJECT IN THIS METHOD, AS IT MAY CAUSE AN INFINITE LOOP TO OCCUR.- Specified by:
resizeChildin interfaceGUILayout- Parameters:
object- the object to resize.index- the child index while traversing through the list of children.childTotal- the total number of children.
-