Class ContainerComponent
- Direct Known Subclasses:
ContentBoxComponent, DraggableContainerComponent, DragSourceComponent, DropReceiverComponent, GuiPseudoElementComponent, MenuBarComponent, MenuFolderItemComponent, MultiColumnComponent, PagedContainerComponent, PressableComponent, ScrollContainerComponent, TableCaptionComponent, TableCellComponent, TableColumnComponent, TableComponent, TableRowComponent, TableSectionComponent, ToastComponent, TooltipComponent
AABB component that can lay out child components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContainerLayoutPlaces children in a top-to-bottom flow layout.flowRow()Places children in a left-to-right flow layout.gap(float gap) Sets the spacing between flowed children in design-space pixels.layout(ContainerLayout childLayout) Sets the layout mode used for child placement.protected floatpreferredHeight(com.render.api.gui.GuiRenderContext context) protected floatpreferredWidth(com.render.api.gui.GuiRenderContext context) protected voidrenderSelf(com.render.api.gui.GuiRenderContext context) protected voidresolveBaseProperties(com.render.api.gui.GuiPropertyValues properties) stack()Places children on top of each other inside the same content box.Methods inherited from class GuiComponent
activeStateStyle, add, alignContent, alignItems, alignSelf, anchor, anchorName, anchorPlacement, animatedBorder, animation, applyStyle, aspectRatio, autoHeight, autoSize, autoWidth, backdropFilters, backfaceVisibility, backgroundColor, backgroundColor, backgroundLayer, backgroundLayers, backgroundLayers, border, borderCollapse, borderColor, borderColor, borderSpacing, borderWidth, boxDecorationBreak, boxGlow, boxShadow, boxShadows, boxShadows, boxSizing, breakAfter, breakBefore, breakInside, cancel, captionSide, caretStyle, centered, childGap, childLayoutViewport, childOffsetX, childOffsetY, children, clearChildren, clipChildren, clipPath, clipsChildren, color, color, columnCount, columnFill, columnGap, columnRule, columnSpan, columnWidth, computedStyle, containsChildClipPoint, contextMenu, cornerRadius, defaultDisplay, dirtyCategories, disabled, display, emptyCells, enabled, enabled, filters, findById, findById, flexBasis, flexDirection, flexGrow, flexShrink, flexWrap, focused, focused, fragmentTree, glow, gradient, gridAutoFlow, gridPlacement, gridTemplate, handlesMouseClick, handlesMouseScroll, height, height, height, hovered, id, id, indeterminate, indeterminate, inlineStyle, inset, inset, intrinsicSize, invalidateModernLayout, isClippingChildren, isFocusable, justifyContent, justifyItems, justifySelf, lastInvalidationReason, layoutChildren, layoutFragments, listStyleImage, listStylePosition, listStyleType, margin, margin, margin, marginBreak, markerGap, markerSide, maskLayers, maskLayers, matchesStyleState, maxHeight, maxWidth, minHeight, minWidth, motionPath, onCharTyped, onFocusChanged, onKeyPressed, onModernLayoutComplete, onMouseClicked, onMouseDragged, onMouseReleased, onMouseScrolled, opacity, order, orphans, outline, padding, padding, padding, pageName, paint, parent, pause, play, position, position, preferredHeightForWidth, pressed, pseudoElementBox, pseudoElementStyle, quotes, rangeState, rangeState, readOnly, readOnly, remove, removeStyleClass, renderChildren, renderClippedChildren, renderOverlay, requestFocus, required, required, resume, rowGap, scrollMargin, scrollMargin, scrollSnapStop, self, shadow, shouldRouteToChildren, size, size, startingStyle, stateProvider, styleAttribute, styleAttribute, styleClass, styleClasses, styledPseudoElements, styleOpen, styleState, styleState, tabIndex, tabIndex, tableLayout, tick, tooltip, transform, transformBox, transformOrigin, transformStyle, transition, transition, transition, transition, transition, transition, transitionAll, transitionAll, transitionAll, translate, translateX, translateY, validity, validity, verticalAlign, viewTransitionName, viewTransitionName, visible, visible, widows, width, width, width, writeModernInline, writeTextShadow, writingState, x, x, y, y, zIndex
-
Constructor Details
-
ContainerComponent
public ContainerComponent()
-
-
Method Details
-
layout
Sets the layout mode used for child placement.- Parameters:
childLayout- child layout mode- Returns:
- this component
-
stack
Places children on top of each other inside the same content box.- Returns:
- this component
-
flowRow
Places children in a left-to-right flow layout.- Returns:
- this component
-
flowColumn
Places children in a top-to-bottom flow layout.- Returns:
- this component
-
gap
Sets the spacing between flowed children in design-space pixels.- Parameters:
gap- child gap- Returns:
- this component
-
childLayout
- Overrides:
childLayoutin classGuiComponent<ContainerComponent>
-
resolveBaseProperties
protected void resolveBaseProperties(com.render.api.gui.GuiPropertyValues properties) - Overrides:
resolveBasePropertiesin classGuiComponent<ContainerComponent>
-
preferredWidth
protected float preferredWidth(com.render.api.gui.GuiRenderContext context) - Overrides:
preferredWidthin classGuiComponent<ContainerComponent>
-
preferredHeight
protected float preferredHeight(com.render.api.gui.GuiRenderContext context) - Overrides:
preferredHeightin classGuiComponent<ContainerComponent>
-
renderSelf
protected void renderSelf(com.render.api.gui.GuiRenderContext context) - Overrides:
renderSelfin classGuiComponent<ContainerComponent>
-