Module: AMS::Screen

Defined in:
Documentation/ams/screen.rb

Overview

Note:

Windows only!

The Screen namespace contains functions that are associated with Windows screen.

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

.resolutionArray<Fixnum>

Get screen resolution of the primary monitor.

Returns:

  • (Array<Fixnum>)

    [width, height] in pixels.

Since:

  • 2.0.0


10
11
# File 'Documentation/ams/screen.rb', line 10

def resolution
end

.virtual_resolutionArray<Fixnum>

Get screen resolution of all monitors combined.

Returns:

  • (Array<Fixnum>)

    [width, height] in pixels.

Since:

  • 2.0.0


15
16
# File 'Documentation/ams/screen.rb', line 15

def virtual_resolution
end