Class Group
-
-
Field Summary
-
Method Summary
Modifier and Type Method Description BooleangetRenders()Whether this component should be rendered. UnitsetRenders(Boolean renders)-
Methods inherited from class org.polyfrost.polyui.component.Drawable
clone, debugDraw, draw, get, getAlpha, getColor, getColorOrNull, getFramebuffer, getPalette, getRenderer, getRotation, getScaleX, getScaleY, getSkewX, getSkewY, getVisibleSize, isInside, needsRedraw, rescale0, setAlpha, setColor, setColorInternal, setNeedsRedraw, setPalette, setRotation, setScaleX, setScaleY, setSkewX, setSkewY, setVisibleSize, setup -
Methods inherited from class org.polyfrost.polyui.component.Scrollable
accept, fixVisibleSize, getHasVisibleSize, getShouldScroll, isScrolling, isScrollingX, isScrollingY, popScroll, pushScroll, recalculate, resetScroll, screenAt, setHasVisibleSize, setShouldScroll, tryMakeScrolling -
Methods inherited from class org.polyfrost.polyui.component.Inputtable
acceptsInput, addEventhandler, clearHandlers, getInputState, hasListenersFor, hasListenersFor, isEnabled, isFocusable, isFocused, on, setAcceptsInput, setEnabled, setInputState -
Methods inherited from class org.polyfrost.polyui.component.Component
addChild, addChild, addOperation, addOperation, at, calculateSize, clipChildren, contains, contains, createdWithSetPosition, createdWithSetSize, debugString, extraToString, get, get, getAlignment, getAt, getChildren, getHeight, getInitialized, getLayoutFlags, getName, getOperations, getPadding, getParent, getParentOrNull, getPolyUI, getSize, getWidth, getX, getY, intersects, isLayoutIgnored, isOperating, isPositioned, isRawResize, isSizeValid, position, remove, removeChild, removeChild, removeOperation, rescale, set, set, setAlignment, setAt, setHeight, setLayoutFlags, setLayoutIgnored, setName, setPadding, setParent, setRawResize, setSize, setWidth, setX, setY, set_parent, size -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getRenders
Boolean getRenders()
Whether this component should be rendered.
This is controlled by clipChildren to save resources by not drawing components which cannot be seen.
Note: also returns
falseif the size of this component is invalid. (this is implemented in an optimized way so it will only update when renders is modified).- Since:
0.21.4
-
setRenders
Unit setRenders(Boolean renders)
-
-
-
-