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

Public Member Functions

 Counter (int x, boolean centered)
boolean isCentered ()
int getXCoord ()
Component getRender ()
int renderedSpriteSize ()
void perDisplay ()
boolean shouldBeRemoved ()
Public Member Functions inherited from cc.mrcl.hopperlib.ScreenUI.DrawingLayer
default boolean isRemoveOnQuit ()

Member Function Documentation

◆ getRender()

Component cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter.getRender ( )
Returns
The component to render in the screen.

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ getXCoord()

int cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter.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.

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ isCentered()

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

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ perDisplay()

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

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

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.

◆ renderedSpriteSize()

int cc.mrcl.hopperlib.ScreenUI.DrawingLayer.Counter.renderedSpriteSize ( )

◆ shouldBeRemoved()

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

Implements cc.mrcl.hopperlib.ScreenUI.DrawingLayer.


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