Function OSSingleton.getScreenSize

Returns the dimensions in pixels of the specified screen. If screen is /code-1/code (the default value), the current screen will be used.

Vector2 getScreenSize (
  const(long) screen = -1L
) nothrow @nogc const;