Package noppes.npcs.api
Interface IScreenSize
-
public interface IScreenSizeRepresents the scaled screen dimensions of the client display.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetHeight()Gets the scaled screen height in pixels.intgetHeightPercent(double percent)Gets a pixel value representing the given percentage of the screen height.intgetWidth()Gets the scaled screen width in pixels.intgetWidthPercent(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
-
-