Interface SurfaceSize


public interface SurfaceSize
The size of the window's framebuffer in pixels.

On a high-DPI display this is larger than the window size in screen points (twice as large on a 2x Retina screen). Everything Helios allocates per screen is sized from this, never from window points.

  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the framebuffer height.
    int
    Returns the framebuffer width.
  • Method Details

    • width

      int width()
      Returns the framebuffer width.
      Returns:
      width in pixels
    • height

      int height()
      Returns the framebuffer height.
      Returns:
      height in pixels