Class Unit.Pixel

  • All Implemented Interfaces:
    kotlin.Cloneable , org.polyfrost.polyui.unit.Unit.Concrete

    
    public final class Unit.Pixel
    extends Unit implements Unit.Concrete
                        

    pixel unit. It is just a wrapper for a float to be honest, it's that simple.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Float px
      private final transient Unit.Type type
    • Constructor Summary

      Constructors 
      Constructor Description
      Unit.Pixel(Float pixels)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Float getPx() computed pixel value of this unit.
      Unit setPx(Float px) computed pixel value of this unit.
      Unit.Pixel clone()
      • Methods inherited from class org.polyfrost.polyui.unit.Unit

        compareTo, getType, plus, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait