Class Image
-
-
Field Summary
-
Method Summary
Modifier and Type Method Description final PolyImagegetImage()final UnitsetImage(PolyImage image)final PolyColorgetBackgroundColor()final UnitsetBackgroundColor(PolyColor backgroundColor)Booleansetup(PolyUI polyUI)give this a PolyUI reference. StringdebugString()Override this function to add things to the debug display of this drawable. -
Methods inherited from class org.polyfrost.polyui.component.impl.Block
getBoarderColor, getBoarderWidth, getRadii, rescale, setBoarderColor, setBoarderWidth, setRadii -
Methods inherited from class org.polyfrost.polyui.component.Drawable
accept, addChild, addChild, addEventhandler, addOperation, addOperation, at, at, calculateSize, canBeRemoved, clipChildren, clone, debugDraw, draw, get, get, get, getAcceptsInput, getAlignment, getAlpha, getAtValid, getChildren, getColor, getEnabled, getFocusable, getFocused, getFramebuffer, getHasVisibleSize, getHeight, getInputState, getNeedsRedraw, getOperating, getPadding, getPalette, getParent, getPolyUI, getRawResize, getRenderer, getRenders, getRotation, getScaleX, getScaleY, getScrolling, getSimpleName, getSize, getSizeValid, getSkewX, getSkewY, getVisibleSize, getWidth, getX, getY, get_color, get_parent, get_x, get_y, hasListenersFor, hasListenersFor, intersects, isInitialized, isInside, on, recalculate, removeChild, removeChild, removeOperation, repositionChildren, resetScroll, set, set, setAcceptsInput, setAlpha, setColor, setEnabled, setHeight, setInputState, setNeedsRedraw, setPadding, setPalette, setRawResize, setRenders, setRotation, setScaleX, setScaleY, setSimpleName, setSkewX, setSkewY, setVisibleSize, setWidth, setX, setY, set_color, set_x, set_y, toString, tryMakeScrolling -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBackgroundColor
final PolyColor getBackgroundColor()
-
setBackgroundColor
final Unit setBackgroundColor(PolyColor backgroundColor)
-
setup
Boolean setup(PolyUI polyUI)
give this a PolyUI reference.
You can also use this method to do some calculations (such as text widths) that are not dependent on other sizes, or operations that require access to PolyUI things, like PolyUI.settings or PolyUI.translator
this method is called once, and only once.
-
debugString
String debugString()
Override this function to add things to the debug display of this drawable.
- Since:
1.1.1
-
-
-
-