Class Block
-
-
Field Summary
Fields Modifier and Type Field Description private 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
-
Constructor Summary
Constructors Constructor Description Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize, Boolean focusable, PolyColor color, FloatArray radii)Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize, Boolean focusable, PolyColor color)Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize, Boolean focusable)Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize)Block(Drawable children, Vec2 at, Vec2 size, Align alignment)Block(Drawable children, Vec2 at, Vec2 size)Block(Drawable children, Vec2 at)Block(Drawable children)
-
Method Summary
Modifier and Type Method Description final PolyColorgetBoarderColor()final UnitsetBoarderColor(PolyColor boarderColor)final FloatgetBoarderWidth()final UnitsetBoarderWidth(Float boarderWidth)final FloatArraygetRadii()Unitrescale(Float scaleX, Float scaleY, Boolean position)Method that is called when the physical size of the total window area changes. -
Methods inherited from class org.polyfrost.polyui.component.Drawable
accept, addChild, addChild, addEventHandler, addEventhandler, addOperation, addOperation, at, at, calculateSize, canBeRemoved, clipChildren, clone, debugDraw, debugString, 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, setup, toString, tryMakeScrolling -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Block
Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize, Boolean focusable, PolyColor color, FloatArray radii)
-
Block
Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize, Boolean focusable, PolyColor color)
-
Block
Block(Drawable children, Vec2 at, Vec2 size, Align alignment, Vec2 visibleSize, Boolean focusable)
-
Block
Block(Drawable children)
-
-
Method Detail
-
getBoarderColor
final PolyColor getBoarderColor()
-
setBoarderColor
final Unit setBoarderColor(PolyColor boarderColor)
-
getBoarderWidth
final Float getBoarderWidth()
-
setBoarderWidth
final Unit setBoarderWidth(Float boarderWidth)
-
getRadii
final FloatArray getRadii()
-
-
-
-