Package me.hackware.api.gui
Class Chip
java.lang.Object
me.hackware.api.gui.Chip
A small pill label. Used for keybind chips (
[R], [...]) and for
"in wheels" membership toggles. Draws at the given left/top and returns its
total width so callers can flow chips in a row.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic intNeutral (bordered) chip.static intNeutral chip with an opacity multiplier (fading rows).static intdrawAccent(UiContext ui, int x, int y, String label) Accent-filled chip (active / selected).static int
-
Field Details
-
HEIGHT
public static final int HEIGHT- See Also:
-
-
Method Details
-
draw
Neutral (bordered) chip. Returns the drawn width. -
draw
Neutral chip with an opacity multiplier (fading rows). Returns the drawn width. -
drawAccent
Accent-filled chip (active / selected). Returns the drawn width. -
width
-