klyn.gui.windows.Widget.paintForeground
method
public paintForeground(painter as Painter) as Void
Description

Draws this widget's foreground decorations over its painted children.

Override for borders or focus contours that span child surfaces. Call it at the end of paint; native partial repaints also replay the ancestors' foregrounds, clipped to the dirty region. Do not repaint child contents here; floating popups still belong in paintOverlay.

Parameters
ParameterDescription
painterPainter receiving foreground decorations.
Example
public override paintForeground(painter as Painter) as Void:
    painter.strokeStyle = Color.parse("blue")
    painter.strokeRect(this.x, this.y, this.width, this.height)