Class TFillColorElement
java.lang.Object
com.thecsdev.common.scene.Node<TElement>
com.thecsdev.commonmc.api.client.gui.TElement
com.thecsdev.commonmc.api.client.gui.misc.TFillColorElement
- All Implemented Interfaces:
INode<TElement>, INodeBounded<TElement,Bounds2i>, INodeRenderable<TElement, TGuiGraphics>, Iterable<TElement>, Collection<TElement>
- Direct Known Subclasses:
TFillColorElement.Flat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTFillColorElementimplementation that renders its outline inTFillColorElement.Flat.renderCallback(TGuiGraphics)instead ofTFillColorElement.Flat.postRenderCallback(TGuiGraphics), allowing you to have an outline that doesn't overlay over children. -
Field Summary
Fields inherited from class TElement
eInitialized -
Constructor Summary
ConstructorsConstructorDescriptionTFillColorElement(int fillColor) TFillColorElement(int fillColor, int outlineColor) -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerPropertyReturns theIntegerPropertythat represents the color of the rectangle that is being drawn.final IntegerPropertyReturns theIntegerPropertythat represents the color of the rectangle border that is being drawn as an "outline".voidpostRenderCallback(@NotNull TGuiGraphics pencil) Callback method that is invoked after thisNodeand all of their children have been rendered.voidrenderCallback(@NotNull TGuiGraphics pencil) Callback method that is invoked when thisNodeis being rendered.Methods inherited from class TElement
addRel, boundsProperty, clearAndInit, clipsDescendantsProperty, contextMenuProperty, dragEndCallback, dragStartCallback, findElementAt, focusableProperty, focusGainedCallback, focusLostCallback, forEachVisible, getBaseType, getBounds, getClient, getContentBounds, getCursor, getSelf, getTooltip, hoverableProperty, hoverGainedCallback, hoverLostCallback, initCallback, inputCallback, invalidateTooltipCache, isFocusable, 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
-
TFillColorElement
public TFillColorElement() -
TFillColorElement
public TFillColorElement(int fillColor) -
TFillColorElement
public TFillColorElement(int fillColor, int outlineColor)
-
-
Method Details
-
fillColorProperty
Returns theIntegerPropertythat represents the color of the rectangle that is being drawn. -
outlineColorProperty
Returns theIntegerPropertythat represents the color of the rectangle border that is being drawn as an "outline". -
renderCallback
Description copied from interface:INodeRenderableCallback method that is invoked when thisNodeis being rendered.- Specified by:
renderCallbackin interfaceINodeRenderable<TElement, TGuiGraphics>- Overrides:
renderCallbackin classTElement- Parameters:
pencil- The rendering context.
-
postRenderCallback
Description copied from interface:INodeRenderableCallback method that is invoked after thisNodeand all of their children have been rendered.- Specified by:
postRenderCallbackin interfaceINodeRenderable<TElement, TGuiGraphics>- Overrides:
postRenderCallbackin classTElement- Parameters:
pencil- The rendering context.
-