Package me.hackware.api.gui.studio
Class StudioSearchField
java.lang.Object
me.hackware.api.gui.studio.StudioSearchField
The Studio sidebar search box: an outlined field (accent ring on focus) with a
leading search glyph and, on the right, either a clear ✕ (when there's a query)
or a
Ctrl F / ⌘ F focus hint. Renders the caller's TextField inline
and returns the field + clear hit rects for the host to wire up.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordclearis null when there's no query (no ✕ shown). -
Method Summary
Modifier and TypeMethodDescriptionstatic StudioSearchField.Rectsdraw(UiContext ui, TextField field, int x, int y, int w, int h, String placeholder, boolean showFocusHint) static StudioSearchField.Rectsdraw(UiContext ui, TextField field, int x, int y, int w, int h, String placeholder, boolean showFocusHint, int fillColor) Asdraw(UiContext, TextField, int, int, int, int, String, boolean)but with an explicit field fill — a0-alpha colour draws no fill (transparent).
-
Method Details
-
draw
public static StudioSearchField.Rects draw(UiContext ui, TextField field, int x, int y, int w, int h, String placeholder, boolean showFocusHint) -
draw
public static StudioSearchField.Rects draw(UiContext ui, TextField field, int x, int y, int w, int h, String placeholder, boolean showFocusHint, int fillColor) Asdraw(UiContext, TextField, int, int, int, int, String, boolean)but with an explicit field fill — a0-alpha colour draws no fill (transparent).
-