Package io.github.cottonmc.cotton.gui.widget
package io.github.cottonmc.cotton.gui.widget
Widgets for building GUIs.
-
ClassDescriptionA builder for widget tooltips.A base class for slider widgets that can be used to select int values.The direction enum represents all four directions a slider can face.A bar that displays int values from a
PropertyDelegate
.The direction of aWBar
, representing where the bar will grown when its field increases.Similar to the BoxLayout in Swing, this widget represents a list of widgets along an axis.Similar to the CardLayout in AWT, this panel displays one widget at a time from a list of widgets.A panel that is clipped to only render widgets inside its bounds.Dynamic labels are labels that pull their text from aSupplier<String>
.A panel that positions children in a grid.A widget that displays an item or a list of items.A widget that displays an item that can be interacted with.A listener for changes in an item slot.A single-line label widget.A vanilla-style labeled slider widget.A label updater updates the label of a slider based on the current value.WListPanel<D,W extends WWidget> Similar to the RecyclerView in Android, this widget represents a scrollable list of items.Panels are widgets that contain other widgets.A panel that has layout insets.A panel that positions children by pixel-perfect positions.A player inventory widget that has a visually separate hotbar.Similar to the JScrollPane in Swing, this widget represents a scrollable widget.A simple slider widget that can be used to select int values.A panel that contains creative inventory-style tabs on the top.The data of a tab.A builder for tab data.A multiline label widget.A sprite whose texture will be tiled.The base class for all widgets.