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 Type
    Method
    Description
    The id of the currently active tab.
    void
    Closes the ClickGUI.
    int
    Current GUI-scaled screen height.
    int
    Current GUI-scaled screen width.
    void
    Switches the active tab (no-op if tabId is 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

      void switchTab(String tabId)
      Switches the active tab (no-op if tabId is unknown).
    • closeGui

      void closeGui()
      Closes the ClickGUI.