public class RenderTreeNode extends Object
Constructor and Description |
---|
RenderTreeNode(RenderTreeNode parent,
RenderUnit renderUnit,
Object layoutData,
Rect bounds,
int hostTranslationX,
int hostTranslationY,
Rect resolvedPadding,
int positionInParent) |
Modifier and Type | Method and Description |
---|---|
void |
child(RenderTreeNode renderTreeNode) |
Rect |
getBounds() |
RenderTreeNode |
getChildAt(int idx) |
int |
getChildrenCount() |
int |
getHostTranslationX() |
int |
getHostTranslationY() |
Object |
getLayoutData() |
void |
getMountBounds(Rect outRect)
Sets the relative bounds of this render tree node in ; i.e.
|
RenderTreeNode |
getParent() |
int |
getPositionInParent() |
RenderUnit |
getRenderUnit() |
Rect |
getResolvedPadding() |
public RenderTreeNode(RenderTreeNode parent, RenderUnit renderUnit, Object layoutData, Rect bounds, int hostTranslationX, int hostTranslationY, Rect resolvedPadding, int positionInParent)
public void child(RenderTreeNode renderTreeNode)
public Rect getBounds()
public int getHostTranslationX()
public int getHostTranslationY()
public void getMountBounds(Rect outRect)
mBounds
can be the absolute bounds.outRect
- the calculated relative bounds.public Rect getResolvedPadding()
public RenderUnit getRenderUnit()
public RenderTreeNode getParent()
public int getChildrenCount()
public RenderTreeNode getChildAt(int idx)
public int getPositionInParent()
public Object getLayoutData()