Hopperlib
Loading...
Searching...
No Matches
cc.mrcl.hopperlib.ScreenUI.DrawingLayer Interface Reference
Inheritance diagram for cc.mrcl.hopperlib.ScreenUI.DrawingLayer:
cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Sprite cc.mrcl.hopperlib.ScreenUI.HopperActionBar

Classes

class  Counter
class  Sprite

Public Member Functions

Component getRender ()
int renderedSpriteSize ()
int getXCoord ()
default boolean isRemoveOnQuit ()
default boolean isCentered ()
default void perDisplay ()
default boolean shouldBeRemoved ()

Member Function Documentation

◆ getRender()

Component cc.mrcl.hopperlib.ScreenUI.DrawingLayer.getRender ( )

◆ getXCoord()

int cc.mrcl.hopperlib.ScreenUI.DrawingLayer.getXCoord ( )
Returns
The horizontal coordinate, in pixels from the centre of the screen, that the component will be rendered at. 0 for rendering in the middle.

Implemented in cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter, cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Sprite, and cc.mrcl.hopperlib.ScreenUI.HopperActionBar.

◆ isCentered()

default boolean cc.mrcl.hopperlib.ScreenUI.DrawingLayer.isCentered ( )
Returns
Whether the sprite will be rendered centered over its x coordinate.

Implemented in cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter, cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Sprite, and cc.mrcl.hopperlib.ScreenUI.HopperActionBar.

◆ perDisplay()

default void cc.mrcl.hopperlib.ScreenUI.DrawingLayer.perDisplay ( )

Method that executes every time after this layer is displayed on screen. Can be used for animations.

Implemented in cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter, and cc.mrcl.hopperlib.ScreenUI.HopperActionBar.

◆ shouldBeRemoved()

default boolean cc.mrcl.hopperlib.ScreenUI.DrawingLayer.shouldBeRemoved ( )
Returns
Whether the layer should be removed permanently from the screen. This method executes before it renders in this iteration.

Implemented in cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter.


The documentation for this interface was generated from the following file:
  • src/main/java/cc/mrcl/hopperlib/ScreenUI/DrawingLayer.java