Package com.xpdustry.distributor.api.gui
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 ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents an axis.static interfaceRepresents a unit in raw pixels. -
Method Summary
Modifier and TypeMethodDescriptionintasPixels(mindustry.gen.Player player, DisplayUnit.Axis axis) Converts this unit to pixels based on the player's screen size.
-
Method Details
-
asPixels
Converts this unit to pixels based on the player's screen size.- Parameters:
player- the playeraxis- the axis to convert- Returns:
- the converted value
-