class Eagle::WindowEvent

Overview

The window was resized, gained or lost focus, was minimized or restored, or the mouse entered or left it. App#resize and Node#resized already cover resizing.

Defined in:

eagle/core/events.cr

Constructors

Instance Method Summary

Instance methods inherited from class Eagle::Event

handled=(handled : Bool) handled=, handled? : Bool handled?

Constructor Detail

def self.new(kind : Eagle::WindowEventKind, size : Eagle::Vec2 = Vec2::ZERO) #

Creates a window event.


Instance Method Detail

def kind : WindowEventKind #

What happened to the window.


def size : Vec2 #

The window size, for Resized events.