Package rs.kreme.ksbot.api.wrappers
Class KSWidget
- java.lang.Object
-
- rs.kreme.ksbot.api.wrappers.KSWidget
-
public class KSWidget extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description KSWidget(net.runelite.api.widgets.Widget widget)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String[]
getActions()
int
getBorderType()
net.runelite.api.Point
getCanvasLocation()
KSWidget
getChild(int index)
KSWidget[]
getChildren()
java.awt.geom.Rectangle2D
getClickBounds()
KSWidget[]
getDynamicChildren()
int
getId()
int
getIndex()
KSItem
getItem(int index)
int
getItemId()
int
getItemQuantity()
java.util.List<KSItem>
getItems()
int
getModel()
java.lang.String
getName()
KSWidget[]
getNestedChildren()
KSWidget
getParent()
int
getParentId()
net.runelite.api.SpritePixels
getSprite()
Deprecated.int
getSpriteId()
KSWidget[]
getStaticChildren()
java.lang.String
getText()
boolean
hasListener()
void
interact(int option)
Interacts with a widget using the specified option.void
interact(int option, int index)
Interacts with a widget using the specified option and index.void
interact(net.runelite.api.MenuAction menuAction, int index, int option)
Interacts with a widget using a specified menu action, index, and option.boolean
isHidden()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCanvasLocation
public net.runelite.api.Point getCanvasLocation()
-
getChild
public KSWidget getChild(int index)
-
getChildren
public KSWidget[] getChildren()
-
getDynamicChildren
public KSWidget[] getDynamicChildren()
-
getNestedChildren
public KSWidget[] getNestedChildren()
-
getStaticChildren
public KSWidget[] getStaticChildren()
-
getId
public int getId()
-
getItem
public KSItem getItem(int index)
-
getItems
public java.util.List<KSItem> getItems()
-
getModel
public int getModel()
-
getName
public java.lang.String getName()
-
getParent
public KSWidget getParent()
-
getSprite
@Deprecated public net.runelite.api.SpritePixels getSprite()
Deprecated.
-
getSpriteId
public int getSpriteId()
-
getText
public java.lang.String getText()
-
hasListener
public boolean hasListener()
-
isHidden
public boolean isHidden()
-
getClickBounds
public java.awt.geom.Rectangle2D getClickBounds()
-
getItemId
public int getItemId()
-
getItemQuantity
public int getItemQuantity()
-
getIndex
public int getIndex()
-
getParentId
public int getParentId()
-
getActions
public java.lang.String[] getActions()
-
getBorderType
public int getBorderType()
-
interact
public void interact(int option, int index)
Interacts with a widget using the specified option and index.- Parameters:
option
- The option to select.index
- The index of the widget.
-
interact
public void interact(net.runelite.api.MenuAction menuAction, int index, int option)
Interacts with a widget using a specified menu action, index, and option.- Parameters:
menuAction
- The type of menu action.index
- The index of the widget.option
- The option to select.
-
interact
public void interact(int option)
Interacts with a widget using the specified option.- Parameters:
option
- The option to select.
-
-