Package me.hackware.api.gui
Interface TabHost
public interface TabHost
The screen hosting the ClickGUI tab bar, as visible to a
ClickGuiTab.
This is the API-safe view of the host: enough for a tab to lay itself out, close the GUI, or hand off to another tab. The client's concrete screen implements it (internal tabs downcast to reach their sub-screens; plugin tabs should treat it as opaque).
-
Method Summary
Modifier and TypeMethodDescriptionThe id of the currently active tab.voidcloseGui()Closes the ClickGUI.intCurrent GUI-scaled screen height.intCurrent GUI-scaled screen width.voidSwitches the active tab (no-op iftabIdis unknown).
-
Method Details
-
screenWidth
int screenWidth()Current GUI-scaled screen width. -
screenHeight
int screenHeight()Current GUI-scaled screen height. -
activeTabId
String activeTabId()The id of the currently active tab. -
switchTab
Switches the active tab (no-op iftabIdis unknown). -
closeGui
void closeGui()Closes the ClickGUI.
-