Class ScreenSize


  • public class ScreenSize
    extends Object
    Screen size coordinates in pixels.
    Author:
    Grégory Van den Borre
    • Field Detail

      • width

        public final int width
        Screen width, in pixels.
      • height

        public final int height
        Screen height, in pixels.
    • Constructor Detail

      • ScreenSize

        public ScreenSize​(int width,
                          int height)
        Create a new screen size instance.
        Parameters:
        width - Screen width, in pixels, cannot be smaller than 0.
        height - Screen height, in pixels, cannot be smaller than 0.