Class HorizontalScrollableViewport
java.lang.Object
com.pixelmonmod.api.client.screen.widget.StatefulWidget<HorizontalScrollableViewport>
com.pixelmonmod.api.client.screen.widget.design.HorizontalScrollableViewport
- All Implemented Interfaces:
States<HorizontalScrollableViewport>
Widget which performs scissor on all of its child widgets.
This widget handles rendering of its children, and as such they should be set to be not visible at all times.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HorizontalScrollableViewport
create
(double buffer) void
init()
float
double
maxWidth()
onMouseClicked
(Action action, double mouseX, double mouseY, int button) void
void
void
void
void
double
scroll()
void
scrollTo
(double scroll) float
void
Methods inherited from class com.pixelmonmod.api.client.screen.widget.StatefulWidget
bounds, boundsOffset, boundsOffset, boundsOffset, child, children, colorTable, contains, contains, defaultTypeface, draggableInternal, draggedInternal, enabledInternal, equals, focusableInternal, focusedInternal, hashCode, hoverableInternal, hoveredInternal, index, index, init, initInternal, minecraft, offset, offset, offset, onCharTyped, onCharTypedInternal, onKeyPressed, onKeyPressedInternal, onKeyReleased, onKeyReleasedInternal, onMouseClickedInternal, onMouseClickedInternal, onMouseDragged, onMouseDraggedInternal, onMouseMoved, onMouseMovedInternal, onMousePressedInternal, onMouseReleased, onMouseReleasedInternal, onMouseScrolled, onMouseScrolledInternal, owner, owner, parent, parent, play, play, play, play, play, play, playClick, player, position, position, position, position, positionRemap, positionRemap, postRender, postTick, preRender, preTick, rawPosition, rawSize, renderInternal, self, size, size, size, size, sizeRemap, sizeRemap, stateInternal, tick, tickableInternal, tickInternal, toString, transform, transform, uid, visibleInternal, widget
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pixelmonmod.api.client.screen.widget.States
active, disable, disabled, doesNotTick, draggable, draggable, dragged, dragged, enable, enabled, enabled, focusable, focusable, focused, focused, hidden, hide, hoverable, hoverable, hovered, hovered, inactive, noTicks, receivesTicks, show, state, state, state, tickable, ticks, visible, visible
-
Constructor Details
-
HorizontalScrollableViewport
protected HorizontalScrollableViewport(double buffer)
-
-
Method Details
-
create
-
init
public void init()- Overrides:
init
in classStatefulWidget<HorizontalScrollableViewport>
-
preRender
- Overrides:
preRender
in classStatefulWidget<HorizontalScrollableViewport>
-
preMouseClicked
public void preMouseClicked()- Overrides:
preMouseClicked
in classStatefulWidget<HorizontalScrollableViewport>
-
onMouseClicked
- Overrides:
onMouseClicked
in classStatefulWidget<HorizontalScrollableViewport>
-
postMouseClicked
public void postMouseClicked()- Overrides:
postMouseClicked
in classStatefulWidget<HorizontalScrollableViewport>
-
render
- Overrides:
render
in classStatefulWidget<HorizontalScrollableViewport>
-
postRender
- Overrides:
postRender
in classStatefulWidget<HorizontalScrollableViewport>
-
maxWidth
public double maxWidth() -
maxHeightF
public float maxHeightF() -
trueHeight
public float trueHeight() -
scroll
public double scroll() -
scrollTo
public void scrollTo(double scroll) -
updateBounds
public void updateBounds()- Overrides:
updateBounds
in classStatefulWidget<HorizontalScrollableViewport>
-