PaintEvent
class in package klyn.gui.events

    public class PaintEvent extends GuiEvent:

Event
└ GuiEvent
└ PaintEvent

Paint request payload emitted by GUI windows and widgets.

The painter is typed as `Object` to keep this shared GUI event package free from a hard dependency on a specific backend painter class.

    canvas.paintRequested += lambda(e: PaintEvent): print(e.width)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | height `height as Int` | Current paint height.
public readonly property | painter `painter as Object` | Backend painter object for the current paint request.
public readonly property | width `width as Int` | Current paint width.

Inherited Properties
property Inherited Properties from Event: source, timestamp
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | PaintEvent `PaintEvent(source as Object, painter as Object, width as Int, height as Int):` | Creates a paint request payload.