CrystGLFW::Event::WindowRefresh
A CrystGLFW::Event::WindowRefresh is generated when a Windowis closed. It is yielded to the block defined by on_refresh.
window = Window.new
window.on_refresh do |event|
puts "window refreshed!"
end
window
You can retrieve the event's associated Window using the window method:
event.window # => CrystGLFW::Window