struct CrystGLFW::Monitor::VideoMode

Overview

A VideoMode object wraps an underlying GLFW Vidmode and exposes its attributes.

Defined in:

crystglfw/monitors/video_mode.cr

Instance Method Summary

Instance Method Detail

def blue_bits : Number #

Returns the bit depth of the blue channel.


[View source]
def channel_bits : NamedTuple() #

Returns the bit depth of each channel of the video mode.


[View source]
def green_bits : Number #

Returns the bit depth of the green channel.


[View source]
def height : Number #

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


[View source]
def red_bits : Number #

Returns the bit depth of the red channel.


[View source]
def refresh_rate : Number #

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


[View source]
def size : NamedTuple() #

Returns the size, in screen coordinates, of the video mode.


[View source]
def width : Number #

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


[View source]