Uses of Class
privbot.query.WidgetQuery
Packages that use WidgetQuery
Package
Description
ctx.* facades: inventory, bank, NPCs, widgets, and the other one-liners.Fluent queries behind
ctx.npcs.query(), objects, ground items, and widgets.-
Uses of WidgetQuery in privbot.hooks
Methods in privbot.hooks that return WidgetQueryModifier and TypeMethodDescriptionWidgets.query()Empty widget query — addroot(int)/expandImmediateChildren()as needed.Widgets.queryAt(int packedRootId) Query the widget at this inspector packed id (group.child) plus its immediate child layer. -
Uses of WidgetQuery in privbot.query
Methods in privbot.query that return WidgetQueryModifier and TypeMethodDescriptionWidgetQuery.expandDescendants(int maxRounds) RepeatsexpandImmediateChildren()maxRoundstimes, accumulating all widgets up to that many levels below the current set (deduplicated by identity).WidgetQuery.expandImmediateChildren()For each current widget, appends all immediate children (same child discovery as the dialogue hook's tree walks: dynamic, static, nested, andWidget.getChildren()), preserving order and deduplicating by identity.Narrows this query in place and returns it.static WidgetQueryWidgetQuery.fromPacked(net.runelite.api.Client client, int packedId) Single root via inspector-style lookup.WidgetQuery.root(int packedId) Add a widget resolved from an inspector packed id (group.child).WidgetQuery.roots()Adds all current top-level widget roots.static WidgetQueryWidgetQuery.start(net.runelite.api.Client client) WidgetQuery.visible()Keeps widgets that are not hidden (Widget.isHidden()).Alias offilter(Predicate).WidgetQuery.withAction(String... options) Keeps widgets whoseWidget.getActions()list matches any of the given options (normalized text, same rules as component menu interaction: exact normalized match or substring contains).WidgetQuery.withExactText(String... texts) Keeps widgets whose normalizedWidget.getText()orWidget.getName()exactly matches any requested value (case-insensitive, colour tags stripped).WidgetQuery.withItemOrName()Inventory-style slot:withNonEmptyName()logic or positiveWidget.getItemId()when the client omits the label but sets an item.WidgetQuery.withNonEmptyName()Non-blankWidget.getName()or meaningful text after stripping colour tags (the same normalisation the dialogue hook uses).Keeps widgets whoseWidget.getText()orWidget.getName()contains any of the given substrings (case-insensitive, colour tags stripped).WidgetQuery.withWidget(net.runelite.api.widgets.Widget w) Addswto the working set; null is ignored.