Class Positions

java.lang.Object
net.dillon.dillonlib.screen.Positions

public class Positions extends Object
Captures screen positions.
Since:
1.2
See Also:
  • Field Details

    • initialWidth

      protected int initialWidth
      The first width and height that are initialized when creating a screen builder. These values never change once the screen is created.
    • initialHeight

      protected int initialHeight
    • screenWidth

      protected int screenWidth
      The current width and height of the screen builder. Modify these in builder methods, like init() or widgets().
    • screenHeight

      protected int screenHeight
    • graphicsWidth

      protected int graphicsWidth
      The current graphics width and graphics height of the screen builder, which is updated and then reset every frame to keep correct positions. Only modify these in render methods, like extractRenderState() and drawText().
    • graphicsHeight

      protected int graphicsHeight
  • Constructor Details

    • Positions

      public Positions()