Interface GUIScrollable
- All Known Subinterfaces:
GUIScrollable2
- All Known Implementing Classes:
GUICharacter,GUICharacterList,GUIFloorList,GUIInventoryList,GUIItem,GUIItemFloor,GUIItemInventory,GUIItemItem,GUIItemKnowledge,GUIItemKnowledgeType,GUIItemList,GUIItemQuest,GUIItemShortcut,GUIItemSpell,GUIItemSpellSkill,GUIKnowledgeList,GUIKnowledgeTypeList,GUILabelLog,GUIList,GUILog,GUIMessageLog,GUIMetaElement,GUIMetaElementList,GUIQuestList,GUISpellList,GUISpellSkillList
public interface GUIScrollable
Interface for
GUIElements that
support scrolling.-
Method Details
-
canScroll
boolean canScroll(int distance) Returns whether scrolling is possible.- Parameters:
distance- the distance to scroll- Returns:
- whether scrolling is possible
-
scroll
void scroll(int distance) Scrolls the element.- Parameters:
distance- the distance to scroll
-
resetScroll
void resetScroll()Resets the scroll index to the default value.
-