Class Image
-
-
Field Summary
Fields Modifier and Type Field Description private PolyImageimageprivate FloatArrayradiiprivate PolyColorboarderColorprivate FloatboarderWidthprivate Vec2sizeprivate Vec2visibleSizeprivate final transient Drawableparentprivate Vec2atprivate BooleanrawResizeprivate transient StringsimpleNameprivate final LinkedList<Drawable>childrenprivate final transient PolyUIpolyUIprivate final Rendererrendererprivate Framebufferframebufferprivate PolyColor.Animatedcolorprivate final transient Colors.Palettepaletteprivate Floatxprivate Floatyprivate Floatwidthprivate Floatheightprivate FloatvisibleWidthprivate FloatvisibleHeightprivate transient BooleanneedsRedrawprivate transient BooleanacceptsInputprivate final transient Booleaninitializedprivate transient ByteinputStateprivate transient Booleanrendersprivate final BooleanconsumesHoverprivate Booleanenabledprivate Doublerotationprivate DoubleskewXprivate DoubleskewYprivate FloatscaleXprivate FloatscaleYprivate Floatalphaprivate Alignalignmentprivate final Booleanfocusable
-
Method Summary
Modifier and Type Method Description final PolyImagegetImage()final UnitsetImage(PolyImage image)Unitsetup(PolyUI polyUI)give this a PolyUI reference. -
Methods inherited from class org.polyfrost.polyui.component.impl.Block
getBoarderColor, getBoarderWidth, getRadii, setBoarderColor, setBoarderWidth, setRadii -
Methods inherited from class org.polyfrost.polyui.component.Drawable
accept, addChild, addChild, addEventHandler, addEventhandler, addOperation, addOperation, calculateSize, canBeRemoved, clipDrawables, clone, countChildren, debugDraw, debugPrint, draw, get, get, get, getAcceptsInput, getAlignment, getAlpha, getAt, getChildren, getColor, getConsumesHover, getEnabled, getFocusable, getFramebuffer, getHeight, getInitialized, getInputState, getNeedsRedraw, getPalette, getParent, getPolyUI, getRawResize, getRenderer, getRenders, getRotation, getScaleX, getScaleY, getSimpleName, getSize, getSkewX, getSkewY, getVisibleHeight, getVisibleSize, getVisibleWidth, getWidth, getX, getY, intersects, isInside, removeChild, removeChild, removeOperation, rescale, reset, set, set, setAcceptsInput, setAlignment, setAlpha, setAt, setColor, setEnabled, setFramebuffer, setHeight, setInputState, setNeedsRedraw, setPalette, setRawResize, setRenders, setRotation, setScaleX, setScaleY, setSimpleName, setSize, setSkewX, setSkewY, setVisibleHeight, setVisibleSize, setVisibleWidth, setWidth, setX, setY, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
setup
Unit 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.
-
-
-
-