public static class VisibilityExtension.Visitor extends java.lang.Object implements LayoutResultVisitor<VisibilityExtension.Results>
Constructor and Description |
---|
Visitor(VisibilityOutput.Factory factory) |
Modifier and Type | Method and Description |
---|---|
void |
visit(RenderTreeNode parent,
LayoutResult layoutResult,
Rect bounds,
int x,
int y,
int position,
VisibilityExtension.Results results)
This API is called for every LayoutResult during a layout pass.
|
public Visitor(VisibilityOutput.Factory factory)
public void visit(RenderTreeNode parent, LayoutResult layoutResult, Rect bounds, int x, int y, int position, VisibilityExtension.Results results)
LayoutResultVisitor
visit
in interface LayoutResultVisitor<VisibilityExtension.Results>
parent
- The parent RenderTreeNode
.layoutResult
- The LayoutResult
being visited.bounds
- The bounds of this LayoutResult
relative to its parent.x
- The absolute x position.y
- The absolute y position.position
- The position of the layout result.results
- The state the visitor can write to.