Class DragPanelScreenAddon
java.lang.Object
com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
com.hrznstudio.titanium.client.screen.addon.DragPanelScreenAddon
- All Implemented Interfaces:
IScreenAddon,net.minecraft.client.gui.components.events.GuiEventListener
-
Field Summary
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDragPanelScreenAddon(int posX, int posY, int sizeX, int sizeY, int panelSizeX, int panelSizeY) -
Method Summary
Methods inherited from class com.hrznstudio.titanium.client.screen.addon.BasicScreenAddon
getPosX, getPosY, isMouseOver, setPosX, setPosYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hrznstudio.titanium.api.client.IScreenAddon
changeFocus, charTyped, drawBackgroundLayer, drawForegroundLayer, getTooltipLines, init, isBackground, keyPressed, keyReleased, mouseClicked, mouseMoved, mouseReleased, mouseScrolled
-
Constructor Details
-
DragPanelScreenAddon
protected DragPanelScreenAddon(int posX, int posY, int sizeX, int sizeY, int panelSizeX, int panelSizeY)
-
-
Method Details
-
getXSize
public int getXSize()- Specified by:
getXSizein classBasicScreenAddon
-
getYSize
public int getYSize()- Specified by:
getYSizein classBasicScreenAddon
-
mouseDragged
public boolean mouseDragged(double mouseX, double mouseY, int button, double dragX, double dragY) Description copied from interface:IScreenAddonCalled when the mouse is pressed and dragged- Parameters:
mouseX- The X coordinate of the mouse where the drag was initiatedmouseY- The Y coordinate of the mouse where the drag was initiatedbutton- The Id of the Button that was presseddragX- The X coordinate of the mouse where the drag was finisheddragY- The Y coordinate of the mouse where the drag was finished- Returns:
- Returns true if the drag was handled
-
getScrollX
public int getScrollX() -
getScrollY
public int getScrollY() -
getMinX
public int getMinX() -
getMinY
public int getMinY() -
getMaxX
public int getMaxX() -
getMaxY
public int getMaxY()
-