Class Unit.Percent

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

    
    public final class Unit.Percent
    extends Unit implements Unit.Dynamic
                        

    a dynamic unit, that is a percentage of its parents size.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • 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.
      final Float getAmount()
      Unit.Percent clone()
      Unit set(Unit parent)
      • 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