public abstract class YogaNodeJNIBase extends YogaNode implements java.lang.Cloneable
YogaNode.Inputs
Modifier and Type | Field and Description |
---|---|
protected long |
mNativePointer |
public int getChildCount()
getChildCount
in class YogaNode
public YogaNodeJNIBase getChildAt(int i)
getChildAt
in class YogaNode
public void addChildAt(YogaNode c, int i)
addChildAt
in class YogaNode
public void setIsReferenceBaseline(boolean isReferenceBaseline)
setIsReferenceBaseline
in interface YogaProps
setIsReferenceBaseline
in class YogaNode
public boolean isReferenceBaseline()
isReferenceBaseline
in class YogaNode
public void swapChildAt(YogaNode newChild, int position)
public YogaNodeJNIBase cloneWithChildren()
cloneWithChildren
in class YogaNode
public YogaNodeJNIBase cloneWithoutChildren()
cloneWithoutChildren
in class YogaNode
public YogaNodeJNIBase removeChildAt(int i)
removeChildAt
in class YogaNode
public YogaNodeJNIBase getOwner()
@Deprecated public YogaNodeJNIBase getParent()
public void calculateLayout(float width, float height)
calculateLayout
in class YogaNode
public void dirtyAllDescendants()
public YogaDirection getStyleDirection()
getStyleDirection
in interface YogaProps
getStyleDirection
in class YogaNode
public void setDirection(YogaDirection direction)
setDirection
in interface YogaProps
setDirection
in class YogaNode
public YogaFlexDirection getFlexDirection()
getFlexDirection
in interface YogaProps
getFlexDirection
in class YogaNode
public void setFlexDirection(YogaFlexDirection flexDirection)
setFlexDirection
in interface YogaProps
setFlexDirection
in class YogaNode
public YogaJustify getJustifyContent()
getJustifyContent
in interface YogaProps
getJustifyContent
in class YogaNode
public void setJustifyContent(YogaJustify justifyContent)
setJustifyContent
in interface YogaProps
setJustifyContent
in class YogaNode
public YogaAlign getAlignItems()
getAlignItems
in interface YogaProps
getAlignItems
in class YogaNode
public void setAlignItems(YogaAlign alignItems)
setAlignItems
in interface YogaProps
setAlignItems
in class YogaNode
public YogaAlign getAlignSelf()
getAlignSelf
in interface YogaProps
getAlignSelf
in class YogaNode
public void setAlignSelf(YogaAlign alignSelf)
setAlignSelf
in interface YogaProps
setAlignSelf
in class YogaNode
public YogaAlign getAlignContent()
getAlignContent
in interface YogaProps
getAlignContent
in class YogaNode
public void setAlignContent(YogaAlign alignContent)
setAlignContent
in interface YogaProps
setAlignContent
in class YogaNode
public YogaPositionType getPositionType()
getPositionType
in interface YogaProps
getPositionType
in class YogaNode
public void setPositionType(YogaPositionType positionType)
setPositionType
in interface YogaProps
setPositionType
in class YogaNode
public void setWrap(YogaWrap flexWrap)
public YogaOverflow getOverflow()
getOverflow
in class YogaNode
public void setOverflow(YogaOverflow overflow)
setOverflow
in class YogaNode
public YogaDisplay getDisplay()
getDisplay
in class YogaNode
public void setDisplay(YogaDisplay display)
setDisplay
in class YogaNode
public void setFlex(float flex)
public float getFlexGrow()
getFlexGrow
in interface YogaProps
getFlexGrow
in class YogaNode
public void setFlexGrow(float flexGrow)
setFlexGrow
in interface YogaProps
setFlexGrow
in class YogaNode
public float getFlexShrink()
getFlexShrink
in interface YogaProps
getFlexShrink
in class YogaNode
public void setFlexShrink(float flexShrink)
setFlexShrink
in interface YogaProps
setFlexShrink
in class YogaNode
public YogaValue getFlexBasis()
getFlexBasis
in interface YogaProps
getFlexBasis
in class YogaNode
public void setFlexBasis(float flexBasis)
setFlexBasis
in interface YogaProps
setFlexBasis
in class YogaNode
public void setFlexBasisPercent(float percent)
setFlexBasisPercent
in interface YogaProps
setFlexBasisPercent
in class YogaNode
public void setFlexBasisAuto()
setFlexBasisAuto
in interface YogaProps
setFlexBasisAuto
in class YogaNode
public void setMargin(YogaEdge edge, float margin)
public void setMarginPercent(YogaEdge edge, float percent)
setMarginPercent
in interface YogaProps
setMarginPercent
in class YogaNode
public void setMarginAuto(YogaEdge edge)
setMarginAuto
in interface YogaProps
setMarginAuto
in class YogaNode
public YogaValue getPadding(YogaEdge edge)
getPadding
in interface YogaProps
getPadding
in class YogaNode
public void setPadding(YogaEdge edge, float padding)
setPadding
in interface YogaProps
setPadding
in class YogaNode
public void setPaddingPercent(YogaEdge edge, float percent)
setPaddingPercent
in interface YogaProps
setPaddingPercent
in class YogaNode
public float getBorder(YogaEdge edge)
public void setBorder(YogaEdge edge, float border)
public YogaValue getPosition(YogaEdge edge)
getPosition
in interface YogaProps
getPosition
in class YogaNode
public void setPosition(YogaEdge edge, float position)
setPosition
in interface YogaProps
setPosition
in class YogaNode
public void setPositionPercent(YogaEdge edge, float percent)
setPositionPercent
in interface YogaProps
setPositionPercent
in class YogaNode
public YogaValue getWidth()
public void setWidth(float width)
public void setWidthPercent(float percent)
setWidthPercent
in interface YogaProps
setWidthPercent
in class YogaNode
public void setWidthAuto()
setWidthAuto
in interface YogaProps
setWidthAuto
in class YogaNode
public YogaValue getHeight()
public void setHeight(float height)
public void setHeightPercent(float percent)
setHeightPercent
in interface YogaProps
setHeightPercent
in class YogaNode
public void setHeightAuto()
setHeightAuto
in interface YogaProps
setHeightAuto
in class YogaNode
public YogaValue getMinWidth()
getMinWidth
in interface YogaProps
getMinWidth
in class YogaNode
public void setMinWidth(float minWidth)
setMinWidth
in interface YogaProps
setMinWidth
in class YogaNode
public void setMinWidthPercent(float percent)
setMinWidthPercent
in interface YogaProps
setMinWidthPercent
in class YogaNode
public YogaValue getMinHeight()
getMinHeight
in interface YogaProps
getMinHeight
in class YogaNode
public void setMinHeight(float minHeight)
setMinHeight
in interface YogaProps
setMinHeight
in class YogaNode
public void setMinHeightPercent(float percent)
setMinHeightPercent
in interface YogaProps
setMinHeightPercent
in class YogaNode
public YogaValue getMaxWidth()
getMaxWidth
in interface YogaProps
getMaxWidth
in class YogaNode
public void setMaxWidth(float maxWidth)
setMaxWidth
in interface YogaProps
setMaxWidth
in class YogaNode
public void setMaxWidthPercent(float percent)
setMaxWidthPercent
in interface YogaProps
setMaxWidthPercent
in class YogaNode
public YogaValue getMaxHeight()
getMaxHeight
in interface YogaProps
getMaxHeight
in class YogaNode
public void setMaxHeight(float maxheight)
setMaxHeight
in interface YogaProps
setMaxHeight
in class YogaNode
public void setMaxHeightPercent(float percent)
setMaxHeightPercent
in interface YogaProps
setMaxHeightPercent
in class YogaNode
public float getAspectRatio()
getAspectRatio
in interface YogaProps
getAspectRatio
in class YogaNode
public void setAspectRatio(float aspectRatio)
setAspectRatio
in interface YogaProps
setAspectRatio
in class YogaNode
public void setMeasureFunction(YogaMeasureFunction measureFunction)
setMeasureFunction
in interface YogaProps
setMeasureFunction
in class YogaNode
public final long measure(float width, int widthMode, float height, int heightMode)
public void setBaselineFunction(YogaBaselineFunction baselineFunction)
setBaselineFunction
in interface YogaProps
setBaselineFunction
in class YogaNode
public final float baseline(float width, float height)
public boolean isMeasureDefined()
isMeasureDefined
in class YogaNode
public boolean isBaselineDefined()
isBaselineDefined
in class YogaNode
public void print()
public float getLayoutX()
getLayoutX
in class YogaNode
public float getLayoutY()
getLayoutY
in class YogaNode
public float getLayoutWidth()
getLayoutWidth
in class YogaNode
public float getLayoutHeight()
getLayoutHeight
in class YogaNode
public boolean getDoesLegacyStretchFlagAffectsLayout()
public float getLayoutMargin(YogaEdge edge)
getLayoutMargin
in class YogaNode
public float getLayoutPadding(YogaEdge edge)
getLayoutPadding
in class YogaNode
public float getLayoutBorder(YogaEdge edge)
getLayoutBorder
in class YogaNode
public YogaDirection getLayoutDirection()
getLayoutDirection
in class YogaNode
public boolean hasNewLayout()
hasNewLayout
in class YogaNode
public void markLayoutSeen()
markLayoutSeen
in class YogaNode
public float getGap(YogaGutter gutter)
public void setGap(YogaGutter gutter, float gapLength)