struct

Espresso::VideoMode

Inherits Struct / Value / Object

Information about the size, color depth, and refresh rate of a monitor.

Constructors

new(width : Int32, height : Int32, red : Int32, green : Int32, blue : Int32, refresh_rate : Int32)

Creates a new video mode. This initializer is typically used for constructing a desired video mode. Then the desired video mode can be compared against supported modes with #==.

Source

Instance methods

blue

The bit depth of the blue channel of the video mode.

Source
depth

Total color depth of all channels.

Source
green

The bit depth of the green channel of the video mode.

Source
height

The height, in screen coordinates, of the video mode.

Source
red

The bit depth of the red channel of the video mode.

Source
refresh_rate

The refresh rate, in Hz, of the video mode.

Source
size

Width and height of the video mode.

Source
to_s(io)

Creates a string representation of the video mode.

Source
width

The width, in screen coordinates, of the video mode.

Source