klyn.gui.windows.Widget.paintClipped
method

    public paintClipped(painter as Painter) as Void:

Description

Paints this widget clipped to its computed bounds.

Container-like widgets use this helper when painting regular children so text, images and custom drawing cannot leak outside the space assigned by the layout. Overlay painting deliberately stays separate because popups, menus and modal layers may need to draw outside their owner bounds.

    child.paintClipped(painter)