public abstract class YogaNode extends java.lang.Object implements YogaProps
Modifier and Type | Class and Description |
---|---|
static interface |
YogaNode.Inputs
The interface the
getData() object can optionally implement. |
Constructor and Description |
---|
YogaNode() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addChildAt(YogaNode child,
int i) |
abstract void |
calculateLayout(float width,
float height) |
abstract YogaNode |
cloneWithChildren() |
abstract YogaNode |
cloneWithoutChildren() |
abstract void |
copyStyle(YogaNode srcNode) |
abstract void |
dirty() |
abstract YogaAlign |
getAlignContent() |
abstract YogaAlign |
getAlignItems() |
abstract YogaAlign |
getAlignSelf() |
abstract float |
getAspectRatio() |
abstract float |
getBorder(YogaEdge edge) |
abstract YogaNode |
getChildAt(int i) |
abstract int |
getChildCount() |
abstract java.lang.Object |
getData() |
abstract YogaDisplay |
getDisplay() |
abstract float |
getFlex() |
abstract YogaValue |
getFlexBasis() |
abstract YogaFlexDirection |
getFlexDirection() |
abstract float |
getFlexGrow() |
abstract float |
getFlexShrink() |
abstract float |
getGap(YogaGutter gutter) |
abstract YogaValue |
getHeight() |
abstract YogaJustify |
getJustifyContent() |
abstract float |
getLayoutBorder(YogaEdge edge) |
abstract YogaDirection |
getLayoutDirection() |
abstract float |
getLayoutHeight() |
abstract float |
getLayoutMargin(YogaEdge edge) |
abstract float |
getLayoutPadding(YogaEdge edge) |
abstract float |
getLayoutWidth() |
abstract float |
getLayoutX() |
abstract float |
getLayoutY() |
abstract YogaValue |
getMargin(YogaEdge edge) |
abstract YogaValue |
getMaxHeight() |
abstract YogaValue |
getMaxWidth() |
abstract YogaValue |
getMinHeight() |
abstract YogaValue |
getMinWidth() |
abstract YogaOverflow |
getOverflow() |
abstract YogaNode |
getOwner() |
abstract YogaValue |
getPadding(YogaEdge edge) |
abstract YogaNode |
getParent()
Deprecated.
Use #getOwner() instead. This will be removed in the next version.
|
abstract YogaValue |
getPosition(YogaEdge edge) |
abstract YogaPositionType |
getPositionType() |
abstract YogaDirection |
getStyleDirection() |
abstract YogaValue |
getWidth() |
abstract YogaWrap |
getWrap() |
abstract boolean |
hasNewLayout() |
abstract int |
indexOf(YogaNode child) |
abstract boolean |
isBaselineDefined() |
abstract boolean |
isDirty() |
abstract boolean |
isMeasureDefined() |
abstract boolean |
isReferenceBaseline() |
abstract void |
markLayoutSeen() |
abstract void |
print() |
abstract YogaNode |
removeChildAt(int i) |
abstract void |
reset() |
abstract void |
setAlignContent(YogaAlign alignContent) |
abstract void |
setAlignItems(YogaAlign alignItems) |
abstract void |
setAlignSelf(YogaAlign alignSelf) |
abstract void |
setAspectRatio(float aspectRatio) |
abstract void |
setBaselineFunction(YogaBaselineFunction baselineFunction) |
abstract void |
setBorder(YogaEdge edge,
float border) |
abstract void |
setData(java.lang.Object data) |
abstract void |
setDirection(YogaDirection direction) |
abstract void |
setDisplay(YogaDisplay display) |
abstract void |
setFlex(float flex) |
abstract void |
setFlexBasis(float flexBasis) |
abstract void |
setFlexBasisAuto() |
abstract void |
setFlexBasisPercent(float percent) |
abstract void |
setFlexDirection(YogaFlexDirection flexDirection) |
abstract void |
setFlexGrow(float flexGrow) |
abstract void |
setFlexShrink(float flexShrink) |
abstract void |
setGap(YogaGutter gutter,
float gapLength) |
abstract void |
setHeight(float height) |
abstract void |
setHeightAuto() |
abstract void |
setHeightPercent(float percent) |
abstract void |
setIsReferenceBaseline(boolean isReferenceBaseline) |
abstract void |
setJustifyContent(YogaJustify justifyContent) |
abstract void |
setMargin(YogaEdge edge,
float margin) |
abstract void |
setMarginAuto(YogaEdge edge) |
abstract void |
setMarginPercent(YogaEdge edge,
float percent) |
abstract void |
setMaxHeight(float maxheight) |
abstract void |
setMaxHeightPercent(float percent) |
abstract void |
setMaxWidth(float maxWidth) |
abstract void |
setMaxWidthPercent(float percent) |
abstract void |
setMeasureFunction(YogaMeasureFunction measureFunction) |
abstract void |
setMinHeight(float minHeight) |
abstract void |
setMinHeightPercent(float percent) |
abstract void |
setMinWidth(float minWidth) |
abstract void |
setMinWidthPercent(float percent) |
abstract void |
setOverflow(YogaOverflow overflow) |
abstract void |
setPadding(YogaEdge edge,
float padding) |
abstract void |
setPaddingPercent(YogaEdge edge,
float percent) |
abstract void |
setPosition(YogaEdge edge,
float position) |
abstract void |
setPositionPercent(YogaEdge edge,
float percent) |
abstract void |
setPositionType(YogaPositionType positionType) |
abstract void |
setWidth(float width) |
abstract void |
setWidthAuto() |
abstract void |
setWidthPercent(float percent) |
abstract void |
setWrap(YogaWrap flexWrap) |
public abstract void reset()
public abstract int getChildCount()
public abstract YogaNode getChildAt(int i)
public abstract void addChildAt(YogaNode child, int i)
public abstract void setIsReferenceBaseline(boolean isReferenceBaseline)
setIsReferenceBaseline
in interface YogaProps
public abstract boolean isReferenceBaseline()
public abstract YogaNode removeChildAt(int i)
public abstract YogaNode getOwner()
@Deprecated public abstract YogaNode getParent()
public abstract int indexOf(YogaNode child)
public abstract void calculateLayout(float width, float height)
public abstract boolean hasNewLayout()
public abstract void dirty()
public abstract boolean isDirty()
public abstract void copyStyle(YogaNode srcNode)
public abstract void markLayoutSeen()
public abstract YogaDirection getStyleDirection()
getStyleDirection
in interface YogaProps
public abstract void setDirection(YogaDirection direction)
setDirection
in interface YogaProps
public abstract YogaFlexDirection getFlexDirection()
getFlexDirection
in interface YogaProps
public abstract void setFlexDirection(YogaFlexDirection flexDirection)
setFlexDirection
in interface YogaProps
public abstract YogaJustify getJustifyContent()
getJustifyContent
in interface YogaProps
public abstract void setJustifyContent(YogaJustify justifyContent)
setJustifyContent
in interface YogaProps
public abstract YogaAlign getAlignItems()
getAlignItems
in interface YogaProps
public abstract void setAlignItems(YogaAlign alignItems)
setAlignItems
in interface YogaProps
public abstract YogaAlign getAlignSelf()
getAlignSelf
in interface YogaProps
public abstract void setAlignSelf(YogaAlign alignSelf)
setAlignSelf
in interface YogaProps
public abstract YogaAlign getAlignContent()
getAlignContent
in interface YogaProps
public abstract void setAlignContent(YogaAlign alignContent)
setAlignContent
in interface YogaProps
public abstract YogaPositionType getPositionType()
getPositionType
in interface YogaProps
public abstract void setPositionType(YogaPositionType positionType)
setPositionType
in interface YogaProps
public abstract YogaWrap getWrap()
public abstract void setWrap(YogaWrap flexWrap)
public abstract YogaOverflow getOverflow()
public abstract void setOverflow(YogaOverflow overflow)
public abstract YogaDisplay getDisplay()
public abstract void setDisplay(YogaDisplay display)
public abstract float getFlex()
public abstract float getFlexGrow()
getFlexGrow
in interface YogaProps
public abstract void setFlexGrow(float flexGrow)
setFlexGrow
in interface YogaProps
public abstract float getFlexShrink()
getFlexShrink
in interface YogaProps
public abstract void setFlexShrink(float flexShrink)
setFlexShrink
in interface YogaProps
public abstract YogaValue getFlexBasis()
getFlexBasis
in interface YogaProps
public abstract void setFlexBasis(float flexBasis)
setFlexBasis
in interface YogaProps
public abstract void setFlexBasisPercent(float percent)
setFlexBasisPercent
in interface YogaProps
public abstract void setFlexBasisAuto()
setFlexBasisAuto
in interface YogaProps
public abstract void setMargin(YogaEdge edge, float margin)
public abstract void setMarginPercent(YogaEdge edge, float percent)
setMarginPercent
in interface YogaProps
public abstract void setMarginAuto(YogaEdge edge)
setMarginAuto
in interface YogaProps
public abstract YogaValue getPadding(YogaEdge edge)
getPadding
in interface YogaProps
public abstract void setPadding(YogaEdge edge, float padding)
setPadding
in interface YogaProps
public abstract void setPaddingPercent(YogaEdge edge, float percent)
setPaddingPercent
in interface YogaProps
public abstract float getBorder(YogaEdge edge)
public abstract void setBorder(YogaEdge edge, float border)
public abstract YogaValue getPosition(YogaEdge edge)
getPosition
in interface YogaProps
public abstract void setPosition(YogaEdge edge, float position)
setPosition
in interface YogaProps
public abstract void setPositionPercent(YogaEdge edge, float percent)
setPositionPercent
in interface YogaProps
public abstract void setWidthPercent(float percent)
setWidthPercent
in interface YogaProps
public abstract void setWidthAuto()
setWidthAuto
in interface YogaProps
public abstract void setHeight(float height)
public abstract void setHeightPercent(float percent)
setHeightPercent
in interface YogaProps
public abstract void setHeightAuto()
setHeightAuto
in interface YogaProps
public abstract YogaValue getMinWidth()
getMinWidth
in interface YogaProps
public abstract void setMinWidth(float minWidth)
setMinWidth
in interface YogaProps
public abstract void setMinWidthPercent(float percent)
setMinWidthPercent
in interface YogaProps
public abstract YogaValue getMinHeight()
getMinHeight
in interface YogaProps
public abstract void setMinHeight(float minHeight)
setMinHeight
in interface YogaProps
public abstract void setMinHeightPercent(float percent)
setMinHeightPercent
in interface YogaProps
public abstract YogaValue getMaxWidth()
getMaxWidth
in interface YogaProps
public abstract void setMaxWidth(float maxWidth)
setMaxWidth
in interface YogaProps
public abstract void setMaxWidthPercent(float percent)
setMaxWidthPercent
in interface YogaProps
public abstract YogaValue getMaxHeight()
getMaxHeight
in interface YogaProps
public abstract void setMaxHeight(float maxheight)
setMaxHeight
in interface YogaProps
public abstract void setMaxHeightPercent(float percent)
setMaxHeightPercent
in interface YogaProps
public abstract float getAspectRatio()
getAspectRatio
in interface YogaProps
public abstract void setAspectRatio(float aspectRatio)
setAspectRatio
in interface YogaProps
public abstract float getGap(YogaGutter gutter)
public abstract void setGap(YogaGutter gutter, float gapLength)
public abstract float getLayoutX()
public abstract float getLayoutY()
public abstract float getLayoutWidth()
public abstract float getLayoutHeight()
public abstract float getLayoutMargin(YogaEdge edge)
public abstract float getLayoutPadding(YogaEdge edge)
public abstract float getLayoutBorder(YogaEdge edge)
public abstract YogaDirection getLayoutDirection()
public abstract void setMeasureFunction(YogaMeasureFunction measureFunction)
setMeasureFunction
in interface YogaProps
public abstract void setBaselineFunction(YogaBaselineFunction baselineFunction)
setBaselineFunction
in interface YogaProps
public abstract boolean isMeasureDefined()
public abstract boolean isBaselineDefined()
public abstract void setData(java.lang.Object data)
public abstract java.lang.Object getData()
public abstract void print()
public abstract YogaNode cloneWithoutChildren()
public abstract YogaNode cloneWithChildren()