Interface DisplayUnit

All Known Subinterfaces:
DisplayUnit.Pixel

public interface DisplayUnit
A generic unit for window managers relying on the player's screen size.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Represents an axis.
    static interface 
    Represents a unit in raw pixels.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    asPixels(mindustry.gen.Player player, DisplayUnit.Axis axis)
    Converts this unit to pixels based on the player's screen size.
  • Method Details

    • asPixels

      int asPixels(mindustry.gen.Player player, DisplayUnit.Axis axis)
      Converts this unit to pixels based on the player's screen size.
      Parameters:
      player - the player
      axis - the axis to convert
      Returns:
      the converted value