struct Espresso::VideoMode
- Espresso::VideoMode
- Struct
- Value
- Object
Overview
Information about the size, color depth, and refresh rate of a monitor.
Defined in:
espresso/monitor/video_mode.crConstructors
-
.new(width : Int32, height : Int32, red : Int32, green : Int32, blue : Int32, refresh_rate : Int32)
Creates a new video mode.
Instance Method Summary
-
#blue : Int32
The bit depth of the blue channel of the video mode.
-
#depth : Int
Total color depth of all channels.
-
#green : Int32
The bit depth of the green channel of the video mode.
-
#height : Int32
The height, in screen coordinates, of the video mode.
-
#red : Int32
The bit depth of the red channel of the video mode.
-
#refresh_rate : Int32
The refresh rate, in Hz, of the video mode.
-
#size : Size
Width and height of the video mode.
-
#to_s(io)
Creates a string representation of the video mode.
-
#width : Int32
The width, in screen coordinates, of the video mode.
Constructor Detail
def self.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 #==
.