public interface IContainingElement extends IInteractionElement
Modifier and Type | Method and Description |
---|---|
default void |
addHelpElements(java.util.List<ElementHelpInfo.HelpPosition> elements) |
default void |
addToolTips(java.util.List<ToolTip> tooltips)
Called to add tooltips to the list of existing tool tips.
|
default void |
calculateSizes()
Called after
getChildElements() is added to, possibly last (so it might not be called after every
addition). |
default IGuiPosition |
getChildElementPosition() |
java.util.List<IGuiElement> |
getChildElements() |
default java.util.List<IGuiElement> |
getThisAndChildrenAt(double x,
double y) |
default void |
onMouseClicked(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
default void |
onMouseDragged(int button,
long ticksSinceClick)
This is called EVEN IF the mouse is not inside your width and height!
|
default void |
onMouseReleased(int button)
This is called EVEN IF the mouse is not inside your width and height!
|
drawBackground, drawForeground, getDebugInfo, tick
asImmutable, contains, contains, contains, create, create, create, expand, expand, expand, expand, getCenter, getCenterTop, getCenterX, getCenterY, getEnd, getEndX, getEndY, getHeight, getPosition, getWidth, offset, offset, offset, offset, offset, offsetToOrigin, rectangleToString, resize, resize
getX, getY
java.util.List<IGuiElement> getChildElements()
default IGuiPosition getChildElementPosition()
default void calculateSizes()
getChildElements()
is added to, possibly last (so it might not be called after every
addition).default void addToolTips(java.util.List<ToolTip> tooltips)
IGuiElement
This is called EVEN IF the mouse is not inside your width and height!
addToolTips
in interface IGuiElement
addToolTips
in interface ITooltipElement
default void addHelpElements(java.util.List<ElementHelpInfo.HelpPosition> elements)
addHelpElements
in interface IGuiElement
addHelpElements
in interface IHelpElement
default java.util.List<IGuiElement> getThisAndChildrenAt(double x, double y)
getThisAndChildrenAt
in interface IGuiElement
default void onMouseClicked(int button)
IInteractionElement
onMouseClicked
in interface IInteractionElement
default void onMouseReleased(int button)
IInteractionElement
onMouseReleased
in interface IInteractionElement
default void onMouseDragged(int button, long ticksSinceClick)
IInteractionElement
onMouseDragged
in interface IInteractionElement