Class ScrollBarWidget
java.lang.Object
io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TButtonWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TSliderWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TScrollBarWidget
io.github.thecsdev.betterstats.api.client.gui.widget.ScrollBarWidget
- All Implemented Interfaces:
io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
,io.github.thecsdev.tcdcommons.api.client.util.interfaces.ITooltipProvider
,io.github.thecsdev.tcdcommons.api.util.interfaces.IEnableStateProvider
,io.github.thecsdev.tcdcommons.api.util.interfaces.IEnableStateProviderSetter
,io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProvider
,io.github.thecsdev.tcdcommons.api.util.interfaces.ITextProviderSetter
public class ScrollBarWidget
extends io.github.thecsdev.tcdcommons.api.client.gui.widget.TScrollBarWidget
A
TScrollBarWidget
implementation whose visuals use
flat/static colors, instead of the default textures.-
Nested Class Summary
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget.TClickableWidgetEvent_Clicked
Nested classes/interfaces inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ChildAR, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ContextMenu, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_Moved, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_ParentChanged, io.github.thecsdev.tcdcommons.api.client.gui.TElement.TElementEvent_Resized
-
Field Summary
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TScrollBarWidget
isKnobSizeDirty, isValueDirty, target
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TSliderWidget
knobSize, sliderDirection, value
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TButtonWidget
icon, iconColor, onClick, text
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
BUTTON_TEXTURE_SLICE_SIZE, BUTTON_TEXTURES, eClicked, enabled, T_WIDGETS_TEXTURE
Fields inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
alpha, eChildAdded, eChildRemoved, eContextMenu, eMoved, eParentChanged, eResized, height, SP_ALL, SP_INVOKE_EVENT, SP_MOVE_CHILDREN, SP_RELATIVE, SP_UPDATE_TOPMOST, SS_ALL, SS_INVOKE_EVENT, SS_UPDATE_TOPMOST, tooltip, tooltipPositioner, width, x, y, zOffset
Fields inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
MAX_CHILD_NESTING_DEPTH
-
Constructor Summary
ConstructorDescriptionScrollBarWidget
(int x, int y, int width, int height, io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement target) ScrollBarWidget
(int x, int y, int width, int height, io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement target, boolean autoSetScrollFlags) -
Method Summary
Modifier and TypeMethodDescriptionvoid
render
(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil) void
renderSliderKnob
(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil, int knobX, int knobY, int knobWidth, int knobHeight) void
renderSliderProgressBar
(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil) Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TScrollBarWidget
applyValueToScroll, getTarget, input, refreshKnobSize, refreshValue, setValue, tick
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TSliderWidget
getKnobSize, getSliderDirection, getValue, renderSliderKnob, setKnobSize, setSliderDirection, setValue, setValueFromMouse
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TButtonWidget
getIcon, getIconColor, getOnClick, getText, onClick, renderBackground, setIcon, setIconColor, setIconColor, setOnClick, setText
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.widget.TClickableWidget
click, getEnabled, isFocusable, setEnabled
Methods inherited from class io.github.thecsdev.tcdcommons.api.client.gui.TElement
canBeAddedTo, createContextMenu, getAlpha, getChildren, getHeight, getItemRenderer, getParent, getParentTElement, getParentTScreen, getTextRenderer, getTooltip, getTooltipPositioner, getWidth, getX, getY, getZIndex, getZOffset, isDragging, isEnabled, isEnabledAndVisible, isFocused, isFocusedOrHovered, isHoverable, isHovered, isVisible, move, moveChildren, next, postRender, previous, setAlpha, setPosition, setPosition, setSize, setSize, setTooltip, setZOffset, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.thecsdev.tcdcommons.api.client.gui.TParentElement
addChild, addChild, clearChildren, findChild, findLastChild, findParent, findParentTElement, forEachChild, getEndX, getEndY, input, removeChild, removeChild
-
Constructor Details
-
ScrollBarWidget
public ScrollBarWidget(int x, int y, int width, int height, io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement target) -
ScrollBarWidget
public ScrollBarWidget(int x, int y, int width, int height, io.github.thecsdev.tcdcommons.api.client.gui.panel.TPanelElement target, boolean autoSetScrollFlags)
-
-
Method Details
-
render
public void render(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil) - Specified by:
render
in interfaceio.github.thecsdev.tcdcommons.api.client.gui.TParentElement
- Overrides:
render
in classio.github.thecsdev.tcdcommons.api.client.gui.widget.TSliderWidget
-
renderSliderProgressBar
public void renderSliderProgressBar(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil) - Overrides:
renderSliderProgressBar
in classio.github.thecsdev.tcdcommons.api.client.gui.widget.TSliderWidget
-
renderSliderKnob
public void renderSliderKnob(io.github.thecsdev.tcdcommons.api.client.gui.util.TDrawContext pencil, int knobX, int knobY, int knobWidth, int knobHeight) - Overrides:
renderSliderKnob
in classio.github.thecsdev.tcdcommons.api.client.gui.widget.TSliderWidget
-