Package net.runelite.api.widgets
Class WidgetUtil
- java.lang.Object
-
- net.runelite.api.widgets.WidgetUtil
-
public class WidgetUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description WidgetUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcomponentToId(int c)Utility method that converts a component id to the id it is within its interface.static intcomponentToInterface(int c)Utility method that converts a component id to the interface it belongs to.static intpackComponentId(int interfaceId, int childId)Utility method that packs a component id from an interface id and child id.
-
-
-
Method Detail
-
componentToInterface
@Interface public static int componentToInterface(@Component int c)
Utility method that converts a component id to the interface it belongs to.- Parameters:
c- component id- Returns:
- the interface id
-
componentToId
public static int componentToId(@Component int c)
Utility method that converts a component id to the id it is within its interface.- Parameters:
c- component id
-
packComponentId
@Component public static int packComponentId(@Interface int interfaceId, int childId)
Utility method that packs a component id from an interface id and child id.- Parameters:
interfaceId- interface idchildId- id within the interface- Returns:
- the component id
-
-