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 #==.
SourceInstance methods
blue
The bit depth of the blue channel of the video mode.
Sourcedepth
Total color depth of all channels.
Sourcegreen
The bit depth of the green channel of the video mode.
Sourceheight
The height, in screen coordinates, of the video mode.
Sourcered
The bit depth of the red channel of the video mode.
Sourcerefresh_rate
The refresh rate, in Hz, of the video mode.
Sourcesize
Width and height of the video mode.
Sourceto_s(io)
Creates a string representation of the video mode.
Sourcewidth
The width, in screen coordinates, of the video mode.
Source