package mnm.mods.tabbychat.api.gui;

import mnm.mods.util.gui.GuiComponent;

interface IGui<Gui extends GuiComponent> {

    /**
     * Gets this gui as its underlying gui type. Convenience method for casting
     * to Gui. Implementation should return this.
     *
     * <pre>
     * &#64;Override
     * public GuiComponent asGui() {
     *     return this;
     * }
     * </pre>
     *
     * @return
     */
    Gui asGui();
}
@@ -30,16 +30,44 @@
 i.gui;%0A%0A
+import java.awt.Rectangle;%0A%0A
 import m
@@ -98,16 +98,23 @@
 onent;%0A%0A
+public 
 interfac
@@ -458,10 +458,263 @@
 asGui();
+%0A%0A    /**%0A     * Gets the bounds of this gui relative to the parent.%0A     *%0A     * @return The size and position%0A     */%0A    Rectangle getBounds();%0A%0A    /**%0A     * Gets the scale of this gui.%0A     *%0A     * @return The scale%0A     */%0A    float getScale();
 %0A%7D

Add an api hook for gui bounds and scale.