public class LayerContainer<T extends Component> extends Component<T>
WindowSizeEventListener
which used to resize this container.Constructor and Description |
---|
LayerContainer()
Default constructor.
|
LayerContainer(float x,
float y,
float width,
float height)
Constructor with position and size parameters.
|
LayerContainer(org.joml.Vector2f position,
org.joml.Vector2f size)
Constructor with position and size parameters.
|
add, addAll, clearChilds, containerIterator, contains, containsAll, count, equals, forEach, getAbsolutePosition, getBackgroundColor, getBorder, getChilds, getCornerRadius, getFocusedStrokeColor, getIntersector, getListenerMap, getMetadata, getParent, getPosition, getSize, getTooltip, hashCode, intersects, isEmpty, isEnabled, isFocused, isHovered, isPressed, isVisible, parallelStream, remove, removeAll, removeIf, setBackgroundColor, setBackgroundColor, setBorder, setCornerRadius, setEnabled, setFocused, setFocusedStrokeColor, setFocusedStrokeColor, setHovered, setIntersector, setListenerMap, setParent, setPosition, setPosition, setPressed, setSize, setSize, setTooltip, setVisible, stream, toString
public LayerContainer()
Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.
public LayerContainer(float x, float y, float width, float height)
x
- x position position in parent component.y
- y position position in parent component.width
- width of component.height
- height of component.public LayerContainer(org.joml.Vector2f position, org.joml.Vector2f size)
position
- position position in parent component.size
- size of component.