ResizeEvent
classin packageklyn.gui.event
public class ResizeEvent extends GuiEvent:
└ ResizeEvent

Resize payload emitted when a widget's computed size changes.

window.resized += lambda(e: ResizeEvent): print(e.width)
Properties
Modifier and Type Member Description
public readonly property height
height as Int
New widget height.
public readonly property oldHeight
oldHeight as Int
Previous widget height.
public readonly property oldWidth
oldWidth as Int
Previous widget width.
public readonly property width
width as Int
New widget width.
Properties inherited from Event: source, timestamp
Constructors
Modifier and Type Member Description
public ResizeEvent
ResizeEvent(source as Object, width as Int, height as Int, oldWidth as Int = 0, oldHeight as Int = 0):
Creates a resize event payload.