klyn.gui.events.ResizeEvent.ResizeEvent
constructor

    public ResizeEvent(source as Object, width as Int, height as Int, oldWidth as Int = 0, oldHeight as Int = 0):

Description

Creates a resize event payload.

Parameters

Parameter | Description
--- | ---
`source` | Widget whose size changed.
`width` | New width.
`height` | New height.
`oldWidth` | Previous width.
`oldHeight` | Previous height.

Example

    event = ResizeEvent(widget, 800, 600, 640, 480)