paintImmediately

fun paintImmediately(decoratable: Decoratable, x: Int, y: Int, width: Int, height: Int, paint: (x: Int, y: Int, width: Int, height: Int) -> Unit)

Hands paint, super.paintImmediately, the area at (x, y) of width by height, in decoratable's coordinates, grown as repaint grows it. In a Foundation container, the area grows first by what each visible child it touches spreads its part of the area into, if the child has a transform, steps with outsets or a step that does not repaint within its outsets, or holds such a child: by the steps' reach, held inside the child's bounds, or to the whole child if its steps move content or a step does not repaint within its outsets. Until the paint that DecorationModifierNode.invalidateLayerProperties asked for runs, the area is the whole bounds, so no paint shows the component at two values of what that paint changes. Decoration steps show content changes in this paint. Call this from paintImmediately(int, int, int, int) of a Decoratable.

Throws

if decoratable is not a java.awt.Component.