Class Image
-
-
Field Summary
Fields Modifier and Type Field Description private PolyImageimageprivate PolyColorbackgroundColorprivate PolyColorboarderColorprivate FloatboarderWidthprivate final FloatArrayradiiprivate Vec2sizeprivate Vec2visibleSize0private Vec2visibleSizeprivate final BooleanhasVisibleSizeprivate final transient Drawableparentprivate BooleanrawResizeprivate transient StringsimpleNameprivate final LinkedList<Drawable>childrenprivate final transient PolyUIpolyUIprivate final Rendererrendererprivate final Booleanoperatingprivate Framebufferframebufferprivate PolyColor.Animatedcolorprivate final transient Colors.Palettepaletteprivate Float_xprivate Float_yprivate Floatxprivate Floatyprivate Floatwidthprivate Floatheightprivate final BooleansizeValidprivate final BooleanatValidprivate final Booleanscrollingprivate transient BooleanneedsRedrawprivate transient BooleanacceptsInputprivate final transient Booleaninitializedprivate transient ByteinputStateprivate transient Booleanrendersprivate Booleanenabledprivate Doublerotationprivate DoubleskewXprivate DoubleskewYprivate FloatscaleXprivate FloatscaleYprivate Floatalphaprivate final Alignalignmentprivate final Booleanfocusable
-
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 -
Methods inherited from class org.polyfrost.polyui.component.Drawable
accept, addChild, addChild, addEventHandler, addEventhandler, addOperation, addOperation, at, at, calculateSize, canBeRemoved, clipChildren, clone, debugDraw, draw, forwardEventsTo, get, get, get, getAcceptsInput, getAlignment, getAlpha, getAtValid, getChildren, getColor, getEnabled, getFocusable, getFramebuffer, getHasVisibleSize, getHeight, getInitialized, getInputState, getNeedsRedraw, getOperating, getPalette, getParent, getPolyUI, getRawResize, getRenderer, getRenders, getRotation, getScaleX, getScaleY, getScrolling, getSimpleName, getSize, getSizeValid, getSkewX, getSkewY, getVisibleSize, getVisibleSize0, getWidth, getX, getY, get_x, get_y, intersects, isInside, recalculate, recalculateChildren, removeChild, removeChild, removeOperation, reset, resetScroll, set, set, setAcceptsInput, setAlpha, setColor, setEnabled, setFramebuffer, setHeight, setInputState, setNeedsRedraw, setPalette, setRawResize, setRenders, setRotation, setScaleX, setScaleY, setSimpleName, setSize, setSkewX, setSkewY, setVisibleSize, setVisibleSize0, setWidth, setX, setY, 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
-
-
-
-