Package com.avrix.ui.widgets
Class HorizontalBoxWidget
java.lang.Object
com.avrix.ui.widgets.Widget
com.avrix.ui.widgets.BoxLayoutWidget
com.avrix.ui.widgets.HorizontalBoxWidget
A
Widget
that places its children horizontally with a specified amount of space between them.
It can also resize itself to fit its children if the auto resizing option is enabled.-
Field Summary
-
Constructor Summary
ConstructorDescriptionHorizontalBoxWidget
(int x, int y, int width, int height, boolean autoresize) Constructs aHorizontalBoxWidget
with the specified position, size, and autoresize option. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Updates the layout of theWidget
, positioning its children horizontally with the specified margin between them.Methods inherited from class com.avrix.ui.widgets.BoxLayoutWidget
addChild, getMargin, isAutoresize, isUpdatingLayout, removeChild, render, setAutoresize, setMargin, setUpdatingLayout
Methods inherited from class com.avrix.ui.widgets.Widget
addToScreen, bringToTop, drawArc, drawArc, drawCircle, drawEllipse, drawImage, drawLine, drawRect, drawRectOutline, drawRoundedRect, drawRoundedRectOutline, drawText, getAbsoluteParent, getChildren, getHeight, getMaxScrollX, getMaxScrollY, getParent, getScrollSpeed, getScrollX, getScrollY, getWidth, getX, getXA, getY, getYA, intersectScissor, isAlwaysOnTop, isHovered, isPointOver, isScrollable, isScrollLock, isVisible, isVisibleWithinParent, isVisibleWithinWindow, onInitialize, onKeyPress, onKeyRelease, onKeyRepeat, onLeftMouseDown, onLeftMouseDownOutside, onLeftMouseUp, onLeftMouseUpOutside, onMouseEnter, onMouseExit, onMouseMove, onMouseMoveOutside, onMouseWheel, onRightMouseDown, onRightMouseDownOutside, onRightMouseUp, onRightMouseUpOutside, postRender, preRender, removeFromScreen, renderChildren, setAlwaysOnTop, setHeight, setMaxScrollX, setMaxScrollY, setScrollable, setScrollLock, setScrollSpeed, setScrollX, setScrollY, setVisible, setWidth, setX, setXA, setY, setYA, update
-
Constructor Details
-
HorizontalBoxWidget
public HorizontalBoxWidget(int x, int y, int width, int height, boolean autoresize) Constructs aHorizontalBoxWidget
with the specified position, size, and autoresize option.
-
-
Method Details
-
updateLayout
public void updateLayout()Updates the layout of theWidget
, positioning its children horizontally with the specified margin between them. Adjusts the size of the widget if autoresize is enabled.- Overrides:
updateLayout
in classBoxLayoutWidget
-