struct Espresso::VideoMode

Overview

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

Defined in:

espresso/video_mode.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(width, height, red, green, blue, refresh_rate) #

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 #==.


[View source]

Instance Method Detail

def blue : Int32 #

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


[View source]
def depth #

Total color depth of all channels.


[View source]
def green : Int32 #

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


[View source]
def height : Int32 #

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


[View source]
def red : Int32 #

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


[View source]
def refresh_rate : Int32 #

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


[View source]
def size #

Width and height of the video mode.


[View source]
def to_s(io) #

Creates a string representation of the video mode.


[View source]
def width : Int32 #

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


[View source]