Class Resolution.Ratio

java.lang.Object
de.gurkenlabs.litiengine.gui.screens.Resolution.Ratio
Direct Known Subclasses:
Resolution.Ratio16x10, Resolution.Ratio16x9, Resolution.Ratio4x3, Resolution.Ratio5x4
Enclosing class:
Resolution

public static class Resolution.Ratio extends Object
  • Constructor Details

    • Ratio

      protected Ratio(int x, int y)
    • Ratio

      protected Ratio(int x, int y, String name)
  • Method Details

    • getAll

      protected static List<Resolution> getAll(Class<?> clz)
    • getName

      public String getName()
      Gets the name of this aspect ratio
      Returns:
      The name of this aspect ratio.
    • getX

      public int getX()
      Gets the x-value of this aspect ratio.
      Returns:
      The x-value of this aspect ratio.
    • getY

      public int getY()
      Gets the y-value of this aspect ratio.
      Returns:
      The y-value of this aspect ratio.
    • toString

      public String toString()
      Overrides:
      toString in class Object