revealRect

Brings the region rect names of the pane's content into view - in the content's own coordinates, where its top left corner is the origin, whatever the pane is currently scrolled to - and returns whether it was reached.

Revealing is a gesture rather than a declaration: it scrolls where it is called and leaves nothing behind once delivered, so no later pass scrolls back and where the user scrolls afterwards stands. Wherever it lands is reported back through x and y, like the user's own scrolling, and a landing that moves the pane while a scroll block runs ends that block.

false means nothing was revealed: no pane renders this state. true means the pane was asked to show that region, or will be when its content is laid out; a later reveal or position write replaces one still waiting, and one waiting for a pane that stops rendering this state is discarded. A pane shows a region as far as the content reaches: a region larger than the viewport is shown from its leading edge, and one already in view leaves the pane where it stands.

Return

whether a pane renders this state to show the region in.

Parameters

rect

the region asked for, in the content's coordinates; not modified.

See also