struct Termbox::Event::ResizeEvent

Overview

Emitted when the terminal window is resized.

Defined in:

termbox2/event.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Termbox::Event::BaseEvent

initialize initialize

Constructor methods inherited from struct Termbox::Event::BaseEvent

new new

Class methods inherited from struct Termbox::Event::BaseEvent

from(event : LibTermbox::Event) from

Constructor Detail

def self.new(w : Int32, h : Int32) #

[View source]

Class Method Detail

def self.from(event) #

Creates a ResizeEvent from a Termbox event struct.


[View source]

Instance Method Detail

def h : Int32 #

Returns the new terminal height.


[View source]
def w : Int32 #

Returns the new terminal width.


[View source]