Class TScrollBarWidget.Flat
java.lang.Object
com.thecsdev.common.scene.Node<TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.widget.TClickableWidget
com.thecsdev.commonmc.api.client.gui.widget.TButtonWidget
com.thecsdev.commonmc.api.client.gui.widget.TSliderWidget
com.thecsdev.commonmc.api.client.gui.widget.TScrollBarWidget
com.thecsdev.commonmc.api.client.gui.widget.TScrollBarWidget.Flat
- All Implemented Interfaces:
INode<TElement>, INodeBounded<TElement,Bounds2i>, INodeRenderable<TElement, TGuiGraphics>, Iterable<TElement>, Collection<TElement>
- Enclosing class:
TScrollBarWidget
TScrollBarWidget whose visual appearance is more flat and does not
use the vanilla button texture.-
Nested Class Summary
Nested classes/interfaces inherited from class TScrollBarWidget
TScrollBarWidget.Flat, TScrollBarWidget.ScrollDirectionNested classes/interfaces inherited from class TButtonWidget
TButtonWidget.Paintable, TButtonWidget.Transparent -
Field Summary
Fields inherited from class TButtonWidget
LBL_PAD_X, LBL_PAD_YFields inherited from class TClickableWidget
eClicked, ONCLICK_SOUNDFields inherited from class TElement
eInitialized -
Constructor Summary
ConstructorsConstructorDescriptionFlat()Flat(@NotNull TPanelElement panel) Flat(@NotNull TPanelElement panel, @NotNull TScrollBarWidget.ScrollDirection direction) -
Method Summary
Modifier and TypeMethodDescriptionvoidrenderBackground(@NotNull TGuiGraphics pencil) Renders the background of thisTSliderWidget.voidrenderKnob(@NotNull TGuiGraphics pencil, @NotNull Bounds2i kbb) Renders the knob of thisTSliderWidget.Methods inherited from class TScrollBarWidget
inputCallback, panelProperty, refresh, scrollDirectionPropertyMethods inherited from class TSliderWidget
knobSizeProperty, postRenderCallback, refreshKnobQuietly, renderCallback, valuePropertyMethods inherited from class TButtonWidget
getLabel, initCallbackMethods inherited from class TClickableWidget
click, clickCallback, dragEndCallback, dragStartCallback, enabledProperty, focusLostCallback, getCursor, hoverGainedCallback, isFocusable, pressedPropertyMethods inherited from class TElement
addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, findElementAt, focusableProperty, focusGainedCallback, forEachVisible, getBaseType, getBounds, getClient, getContentBounds, getSelf, getTooltip, hoverableProperty, hoverLostCallback, invalidateTooltipCache, isFocused, isHoverable, isHovered, isHoveredOrFocused, isVisible, move, moveChildren, moveTo, removeRel, screenProperty, setBounds, setBounds, setBounds, showContextMenu, tickCallback, tooltipProperty, toString, visiblePropertyMethods inherited from class Node
add, addAll, childAddedCallback, childRemovedCallback, clear, contains, containsAll, equals, findChild, findParent, findSibling, forEach, get, getFirst, getLast, getParent, hashCode, indexOf, isEmpty, iterator, parentProperty, remove, remove, remove, removeAll, retainAll, rootProperty, size, toArray, toArray
-
Constructor Details
-
Flat
public Flat() -
Flat
-
Flat
public Flat(@NotNull @NotNull TPanelElement panel, @NotNull @NotNull TScrollBarWidget.ScrollDirection direction)
-
-
Method Details
-
renderBackground
Description copied from class:TSliderWidgetRenders the background of thisTSliderWidget.- Overrides:
renderBackgroundin classTSliderWidget
-
renderKnob
@Virtual public void renderKnob(@NotNull @NotNull TGuiGraphics pencil, @NotNull @NotNull Bounds2i kbb) Description copied from class:TSliderWidgetRenders the knob of thisTSliderWidget.- Overrides:
renderKnobin classTSliderWidget
-