public interface InternalNode extends YogaNode.Inputs, LithoLayoutResult
ComponentLayout
.Modifier and Type | Interface and Description |
---|---|
static interface |
InternalNode.NestedTreeHolder
The API for the nested tree holder, which is used to hold the partial results of an unresolved
node which will be resolved after layout calculation for components which implement
OnCreateLayoutWithSizeSpec . |
LithoLayoutResult.NestedTreeHolderResult
freeze
areCachedMeasuresValid, assertContextSpecificStyleNotSet, getBorderColors, getBorderPathEffect, getBorderRadius, getChildAt, getChildCount, getChildIndex, getComponentKeys, getComponents, getComponentsNeedingPreviousRenderData, getContext, getDiffNode, getFocusedHandler, getForeground, getFullImpressionHandler, getHeadComponent, getHeadComponentKey, getImportantForAccessibility, getInvisibleHandler, getLastHeightSpec, getLastMeasuredHeight, getLastMeasuredWidth, getLastWidthSpec, getLayerPaint, getLayerType, getLayoutBorder, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getNodeInfo, getParent, getSimpleName, getStateListAnimator, getStateListAnimatorRes, getStyleDirection, getStyleHeight, getStyleWidth, getTailComponent, getTailComponentKey, getTestKey, getTouchExpansion, getTouchExpansionBottom, getTouchExpansionLeft, getTouchExpansionRight, getTouchExpansionTop, getTransitionGlobalKey, getTransitionKey, getTransitionKeyType, getTransitionOwnerKey, getTransitions, getUnfocusedHandler, getUnresolvedComponents, getVisibilityChangedHandler, getVisibleHandler, getVisibleHeightRatio, getVisibleWidthRatio, getWorkingRangeRegistrations, getYogaNode, hasBorderColor, hasStateListAnimatorResSet, hasTouchExpansion, hasTransitionKey, hasVisibilityHandlers, isDuplicateChildrenStatesEnabled, isDuplicateParentStateEnabled, isForceViewWrapping, isImportantForAccessibilityIsSet, isInitialized, isLayoutDirectionInherit, recursivelyResolveLayoutDirection, setLastHeightSpec, setLastMeasuredHeight, setLastMeasuredWidth, setLastWidthSpec, shouldDrawBorders
getBackground, getHeight, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getResolvedLayoutDirection, getWidth, getX, getY, isPaddingSet
void addChildAt(InternalNode child, int index)
void addComponentNeedingPreviousRenderData(java.lang.String globalKey, Component component)
void addTransition(Transition transition)
void addWorkingRanges(java.util.List<com.facebook.litho.WorkingRangeContainer.Registration> registrations)
InternalNode alignContent(YogaAlign alignContent)
InternalNode alignItems(YogaAlign alignItems)
void appendComponent(Component component, java.lang.String key)
void appendUnresolvedComponent(Component component)
InternalNode background(Drawable background)
InternalNode backgroundColor(int backgroundColor)
InternalNode backgroundRes(int resId)
InternalNode border(Border border)
void border(Edges width, int[] colors, float[] radii)
LithoLayoutResult calculateLayout(float width, float height)
void calculateLayout()
InternalNode child(Component child)
InternalNode child(Component.Builder<?> child)
InternalNode child(InternalNode child)
InternalNode duplicateParentState(boolean duplicateParentState)
InternalNode duplicateChildrenStates(boolean duplicateChildState)
InternalNode flexBasisAuto()
InternalNode flexDirection(YogaFlexDirection direction)
InternalNode focusedHandler(EventHandler<FocusedVisibleEvent> focusedHandler)
InternalNode foreground(Drawable foreground)
InternalNode foregroundColor(int foregroundColor)
InternalNode foregroundRes(int resId)
InternalNode layerType(int layoutType, Paint layerPaint)
InternalNode fullImpressionHandler(EventHandler<FullImpressionVisibleEvent> fullImpressionHandler)
void setDiffNode(DiffNode diffNode)
void setNodeInfo(NodeInfo nodeInfo)
NodeInfo getOrCreateNodeInfo()
InternalNode heightAuto()
InternalNode importantForAccessibility(int importantForAccessibility)
InternalNode invisibleHandler(EventHandler<InvisibleEvent> invisibleHandler)
InternalNode justifyContent(YogaJustify justifyContent)
void registerDebugComponent(DebugComponent debugComponent)
InternalNode removeChildAt(int index)
void resetResolvedLayoutProperties()
void setBorderWidth(YogaEdge edge, int borderWidth)
void setCachedMeasuresValid(boolean valid)
void setMeasureFunction(YogaMeasureFunction measureFunction)
void setStyleHeightFromSpec(int heightSpec)
void setStyleWidthFromSpec(int widthSpec)
InternalNode stateListAnimator(StateListAnimator stateListAnimator)
InternalNode stateListAnimatorRes(int resId)
InternalNode testKey(java.lang.String testKey)
InternalNode touchExpansionPx(YogaEdge edge, int touchExpansion)
InternalNode transitionKey(java.lang.String key, java.lang.String ownerKey)
InternalNode transitionKeyType(Transition.TransitionKeyType type)
InternalNode unfocusedHandler(EventHandler<UnfocusedVisibleEvent> unfocusedHandler)
InternalNode visibilityChangedHandler(EventHandler<VisibilityChangedEvent> visibilityChangedHandler)
InternalNode visibleHandler(EventHandler<VisibleEvent> visibleHandler)
InternalNode visibleHeightRatio(float visibleHeightRatio)
InternalNode visibleWidthRatio(float visibleWidthRatio)
InternalNode widthAuto()
InternalNode wrap(YogaWrap wrap)
InternalNode wrapInView()
void applyAttributes(TypedArray a)
InternalNode deepClone()
InternalNode reconcile(ComponentContext c, Component next, java.lang.String nextKey)
layoutStateContext
- c
- The new ComponentContext.next
- The new component to reconcile against.void widthPx(int width)
void widthPercent(float percent)
void minWidthPx(int minWidth)
void maxWidthPx(int maxWidth)
void minWidthPercent(float percent)
void maxWidthPercent(float percent)
void heightPx(int height)
void heightPercent(float percent)
void minHeightPx(int minHeight)
void maxHeightPx(int maxHeight)
void minHeightPercent(float percent)
void maxHeightPercent(float percent)
void layoutDirection(YogaDirection direction)
void alignSelf(YogaAlign alignSelf)
void flex(float flex)
void flexGrow(float flexGrow)
void flexShrink(float flexShrink)
void flexBasisPx(int flexBasis)
void flexBasisPercent(float percent)
void aspectRatio(float aspectRatio)
void positionType(YogaPositionType positionType)
void positionPx(YogaEdge edge, int position)
void positionPercent(YogaEdge edge, float percent)
void paddingPx(YogaEdge edge, int padding)
void paddingPercent(YogaEdge edge, float percent)
void marginPx(YogaEdge edge, int margin)
void marginPercent(YogaEdge edge, float percent)
void marginAuto(YogaEdge edge)
void isReferenceBaseline(boolean isReferenceBaseline)
void useHeightAsBaseline(boolean useHeightAsBaseline)