public int getParentId() { final Object inter = getInternal(); if (inter == null) { return -1; } final Client client = Context.client(); final Multipliers multipliers = Context.multipliers(); final int parentId = ((RSInterfaceParentID) ((RSInterfaceInts) inter).getRSInterfaceInts()) .getRSInterfaceParentID() * multipliers.INTERFACE_PARENTID; if (parentId != -1) { return parentId; } final int mainID = getId() >>> 0x10; final HashTable ncI = new HashTable(client.getRSInterfaceNC()); for (RSInterfaceNode node = (RSInterfaceNode) ncI.getFirst(); node != null; node = (RSInterfaceNode) ncI.getNext()) { if (mainID == ((RSInterfaceNodeMainID) ((RSInterfaceNodeInts) node.getData()).getRSInterfaceNodeInts()) .getRSInterfaceNodeMainID() * multipliers.INTERFACENODE_MAINID) { final long multiplier = (((long) multipliers.NODE_ID) << 32) + ((multipliers.NODE_ID_p2 & 0xffffffffL)); return (int) (node.getID() * multiplier); } } return -1; }
public int getRelativeY() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceY) ((RSInterfaceInts) widget).getRSInterfaceInts()).getRSInterfaceY() * Context.multipliers().INTERFACE_Y : -1; }
public int getType() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceType) ((RSInterfaceInts) widget).getRSInterfaceInts()).getRSInterfaceType() * Context.multipliers().INTERFACE_TYPE : -1; }
public int getBorderThickness() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceBorderThinkness) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceBorderThinkness() * Context.multipliers().INTERFACE_BORDERTHICKNESS : -1; }
public int getBoundsArrayIndex() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceBoundsArrayIndex) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceBoundsArrayIndex() * Context.multipliers().INTERFACE_BOUNDSARRAYINDEX : -1; }
public int getVerticalScrollThumbSize() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceVerticalScrollbarThumbSize) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceVerticalScrollbarThumbSize() * Context.multipliers().INTERFACE_VERTICALSCROLLBARTHUMBSIZE : -1; }
public int getVerticalScrollPosition() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceVerticalScrollbarPosition) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceVerticalScrollbarPosition() * Context.multipliers().INTERFACE_VERTICALSCROLLBARTHUMBPOSITION : -1; }
public int getScrollableContentWidth() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceHorizontalScrollbarSize) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceHorizontalScrollbarSize() * Context.multipliers().INTERFACE_HORIZONTALSCROLLBARSIZE : -1; }
public int getZRotation() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceZRotation) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceZRotation() * Context.multipliers().INTERFACE_ZROTATION : -1; }
public int getChildStackSize() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceComponentStackSize) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceComponentStackSize() * Context.multipliers().INTERFACE_COMPONENTSTACKSIZE : -1; }
public int getModelZoom() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceModelZoom) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceModelZoom() * Context.multipliers().INTERFACE_MODELZOOM : -1; }
public int getShadowColor() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceShadowColor) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceShadowColor() * Context.multipliers().INTERFACE_SHADOWCOLOR : -1; }
public int getTextureId() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceTextureID) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceTextureID() * Context.multipliers().INTERFACE_TEXTUREID : -1; }
public int getChildIndex() { final Object widget = getInternal(); return widget != null ? ((RSInterfaceComponentIndex) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceComponentIndex() * Context.multipliers().INTERFACE_COMPONENTINDEX : -1; }
public Point getRelativeLocation() { final Object widget = getInternal(); if (widget == null) { return new Point(-1, -1); } final Object rsInterfaceInts = ((RSInterfaceInts) widget).getRSInterfaceInts(); final Multipliers multipliers = Context.multipliers(); return new Point( ((RSInterfaceX) rsInterfaceInts).getRSInterfaceX() * multipliers.INTERFACE_X, ((RSInterfaceY) rsInterfaceInts).getRSInterfaceY() * multipliers.INTERFACE_Y); }
public int getHeight() { if (!isInScrollableArea()) { return getVerticalScrollThumbSize(); } final Object widget = getInternal(); return widget != null ? (((RSInterfaceHeight) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceHeight() * Context.multipliers().INTERFACE_HEIGHT) - 4 : -1; }
public int getWidth() { if (!isInScrollableArea()) { return getHorizontalScrollThumbSize(); } final Object widget = getInternal(); return widget != null ? (((RSInterfaceWidth) ((RSInterfaceInts) widget).getRSInterfaceInts()) .getRSInterfaceWidth() * Context.multipliers().INTERFACE_WIDTH) - 4 : -1; }