Package me.hackware.api.gui
Class SegmentedControl
java.lang.Object
me.hackware.api.gui.SegmentedControl
A horizontal segmented control (two or more options, one selected) — used for
the macro/wheel keybind mode toggle (Toggle / Hold). Stateless: the host owns
the selected index and hit-tests clicks with
indexAt(int, int, int, int, double, double).-
Field Summary
Fields -
Method Summary
-
Field Details
-
HEIGHT
public static final int HEIGHT- See Also:
-
-
Method Details
-
draw
-
indexAt
public static int indexAt(int x, int y, int w, int count, double mx, double my) Returns the clicked segment index, or -1 if the point is outside.
-