struct Espresso::VideoMode

Overview

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

Defined in:

espresso/monitor/video_mode.cr

Constructors

Instance Method Summary

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


[View source]

Instance Method Detail

def blue : Int32 #

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


[View source]
def depth : Int #

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 : 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]