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 YogaPropspublic 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 YogaPropspublic abstract void setDirection(YogaDirection direction)
setDirection in interface YogaPropspublic abstract YogaFlexDirection getFlexDirection()
getFlexDirection in interface YogaPropspublic abstract void setFlexDirection(YogaFlexDirection flexDirection)
setFlexDirection in interface YogaPropspublic abstract YogaJustify getJustifyContent()
getJustifyContent in interface YogaPropspublic abstract void setJustifyContent(YogaJustify justifyContent)
setJustifyContent in interface YogaPropspublic abstract YogaAlign getAlignItems()
getAlignItems in interface YogaPropspublic abstract void setAlignItems(YogaAlign alignItems)
setAlignItems in interface YogaPropspublic abstract YogaAlign getAlignSelf()
getAlignSelf in interface YogaPropspublic abstract void setAlignSelf(YogaAlign alignSelf)
setAlignSelf in interface YogaPropspublic abstract YogaAlign getAlignContent()
getAlignContent in interface YogaPropspublic abstract void setAlignContent(YogaAlign alignContent)
setAlignContent in interface YogaPropspublic abstract YogaPositionType getPositionType()
getPositionType in interface YogaPropspublic abstract void setPositionType(YogaPositionType positionType)
setPositionType in interface YogaPropspublic 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 YogaPropspublic abstract void setFlexGrow(float flexGrow)
setFlexGrow in interface YogaPropspublic abstract float getFlexShrink()
getFlexShrink in interface YogaPropspublic abstract void setFlexShrink(float flexShrink)
setFlexShrink in interface YogaPropspublic abstract YogaValue getFlexBasis()
getFlexBasis in interface YogaPropspublic abstract void setFlexBasis(float flexBasis)
setFlexBasis in interface YogaPropspublic abstract void setFlexBasisPercent(float percent)
setFlexBasisPercent in interface YogaPropspublic abstract void setFlexBasisAuto()
setFlexBasisAuto in interface YogaPropspublic abstract void setMargin(YogaEdge edge, float margin)
public abstract void setMarginPercent(YogaEdge edge, float percent)
setMarginPercent in interface YogaPropspublic abstract void setMarginAuto(YogaEdge edge)
setMarginAuto in interface YogaPropspublic abstract YogaValue getPadding(YogaEdge edge)
getPadding in interface YogaPropspublic abstract void setPadding(YogaEdge edge, float padding)
setPadding in interface YogaPropspublic abstract void setPaddingPercent(YogaEdge edge, float percent)
setPaddingPercent in interface YogaPropspublic abstract float getBorder(YogaEdge edge)
public abstract void setBorder(YogaEdge edge, float border)
public abstract YogaValue getPosition(YogaEdge edge)
getPosition in interface YogaPropspublic abstract void setPosition(YogaEdge edge, float position)
setPosition in interface YogaPropspublic abstract void setPositionPercent(YogaEdge edge, float percent)
setPositionPercent in interface YogaPropspublic abstract void setWidthPercent(float percent)
setWidthPercent in interface YogaPropspublic abstract void setWidthAuto()
setWidthAuto in interface YogaPropspublic abstract void setHeight(float height)
public abstract void setHeightPercent(float percent)
setHeightPercent in interface YogaPropspublic abstract void setHeightAuto()
setHeightAuto in interface YogaPropspublic abstract YogaValue getMinWidth()
getMinWidth in interface YogaPropspublic abstract void setMinWidth(float minWidth)
setMinWidth in interface YogaPropspublic abstract void setMinWidthPercent(float percent)
setMinWidthPercent in interface YogaPropspublic abstract YogaValue getMinHeight()
getMinHeight in interface YogaPropspublic abstract void setMinHeight(float minHeight)
setMinHeight in interface YogaPropspublic abstract void setMinHeightPercent(float percent)
setMinHeightPercent in interface YogaPropspublic abstract YogaValue getMaxWidth()
getMaxWidth in interface YogaPropspublic abstract void setMaxWidth(float maxWidth)
setMaxWidth in interface YogaPropspublic abstract void setMaxWidthPercent(float percent)
setMaxWidthPercent in interface YogaPropspublic abstract YogaValue getMaxHeight()
getMaxHeight in interface YogaPropspublic abstract void setMaxHeight(float maxheight)
setMaxHeight in interface YogaPropspublic abstract void setMaxHeightPercent(float percent)
setMaxHeightPercent in interface YogaPropspublic abstract float getAspectRatio()
getAspectRatio in interface YogaPropspublic abstract void setAspectRatio(float aspectRatio)
setAspectRatio in interface YogaPropspublic 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 YogaPropspublic abstract void setBaselineFunction(YogaBaselineFunction baselineFunction)
setBaselineFunction in interface YogaPropspublic 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()