Interface IScreenSize


  • public interface IScreenSize
    Represents the scaled screen dimensions of the client display.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getHeight()
      Gets the scaled screen height in pixels.
      int getHeightPercent​(double percent)
      Gets a pixel value representing the given percentage of the screen height.
      int getWidth()
      Gets the scaled screen width in pixels.
      int getWidthPercent​(double percent)
      Gets a pixel value representing the given percentage of the screen width.
    • Method Detail

      • getWidth

        int getWidth()
        Gets the scaled screen width in pixels.
        Returns:
        the screen width
      • getHeight

        int getHeight()
        Gets the scaled screen height in pixels.
        Returns:
        the screen height
      • getWidthPercent

        int getWidthPercent​(double percent)
        Gets a pixel value representing the given percentage of the screen width.
        Parameters:
        percent - the percentage of the width (0.0 to 100.0)
        Returns:
        the corresponding pixel value
      • getHeightPercent

        int getHeightPercent​(double percent)
        Gets a pixel value representing the given percentage of the screen height.
        Parameters:
        percent - the percentage of the height (0.0 to 100.0)
        Returns:
        the corresponding pixel value