public interface DiffNode
extends java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static int |
UNSPECIFIED |
Modifier and Type | Method and Description |
---|---|
void |
addChild(DiffNode node) |
com.facebook.litho.LayoutOutput |
getBackgroundOutput() |
com.facebook.litho.LayoutOutput |
getBorderOutput() |
DiffNode |
getChildAt(int i) |
int |
getChildCount() |
java.util.List<DiffNode> |
getChildren() |
Component |
getComponent() |
java.lang.String |
getComponentGlobalKey() |
com.facebook.litho.LayoutOutput |
getContentOutput() |
com.facebook.litho.LayoutOutput |
getForegroundOutput() |
com.facebook.litho.LayoutOutput |
getHostOutput() |
int |
getLastHeightSpec() |
float |
getLastMeasuredHeight()
The last value the measure funcion associated with this node
Component returned for the
height. |
float |
getLastMeasuredWidth()
The last value the measure funcion associated with this node
Component returned for the
width. |
int |
getLastWidthSpec() |
VisibilityOutput |
getVisibilityOutput() |
void |
setBackgroundOutput(com.facebook.litho.LayoutOutput background) |
void |
setBorderOutput(com.facebook.litho.LayoutOutput border) |
void |
setComponent(Component component,
java.lang.String globalKey) |
void |
setContentOutput(com.facebook.litho.LayoutOutput content) |
void |
setForegroundOutput(com.facebook.litho.LayoutOutput foreground) |
void |
setHostOutput(com.facebook.litho.LayoutOutput host) |
void |
setLastHeightSpec(int heightSpec) |
void |
setLastMeasuredHeight(float lastMeasuredHeight)
Sets the last value the measure funcion associated with this node
Component returned
for the height. |
void |
setLastMeasuredWidth(float lastMeasuredWidth)
Sets the last value the measure funcion associated with this node
Component returned
for the width. |
void |
setLastWidthSpec(int widthSpec) |
void |
setVisibilityOutput(VisibilityOutput visibilityOutput) |
static final int UNSPECIFIED
int getChildCount()
DiffNode getChildAt(int i)
Component getComponent()
java.lang.String getComponentGlobalKey()
void setComponent(Component component, java.lang.String globalKey)
float getLastMeasuredWidth()
Component
returned for the
width. This is used together with LithoLayoutResult.getLastWidthSpec()
to implement measure
caching.void setLastMeasuredWidth(float lastMeasuredWidth)
Component
returned
for the width.float getLastMeasuredHeight()
Component
returned for the
height. This is used together with LithoLayoutResult.getLastHeightSpec()
to implement
measure caching.void setLastMeasuredHeight(float lastMeasuredHeight)
Component
returned
for the height.int getLastWidthSpec()
void setLastWidthSpec(int widthSpec)
int getLastHeightSpec()
void setLastHeightSpec(int heightSpec)
java.util.List<DiffNode> getChildren()
void addChild(DiffNode node)
com.facebook.litho.LayoutOutput getContentOutput()
void setContentOutput(com.facebook.litho.LayoutOutput content)
VisibilityOutput getVisibilityOutput()
void setVisibilityOutput(VisibilityOutput visibilityOutput)
com.facebook.litho.LayoutOutput getBackgroundOutput()
void setBackgroundOutput(com.facebook.litho.LayoutOutput background)
com.facebook.litho.LayoutOutput getForegroundOutput()
void setForegroundOutput(com.facebook.litho.LayoutOutput foreground)
com.facebook.litho.LayoutOutput getBorderOutput()
void setBorderOutput(com.facebook.litho.LayoutOutput border)
com.facebook.litho.LayoutOutput getHostOutput()
void setHostOutput(com.facebook.litho.LayoutOutput host)