|
slot 0.0.1
A real time UI render framework
|
#include <Node.h>


Public 类型 | |
| using | LayoutableChildren = yoga::LayoutableChildren<Node> |
Public 成员函数 | |
| Node () | |
| Node (const Config *config) | |
| Node (Node &&node) noexcept | |
| Node (const Node &node)=default | |
| Node & | operator= (const Node &)=delete |
| void * | getContext () const |
| bool | alwaysFormsContainingBlock () const |
| bool | getHasNewLayout () const |
| NodeType | getNodeType () const |
| bool | hasMeasureFunc () const noexcept |
| YGSize | measure (float availableWidth, MeasureMode widthMode, float availableHeight, MeasureMode heightMode) |
| bool | hasBaselineFunc () const noexcept |
| float | baseline (float width, float height) const |
| float | dimensionWithMargin (FlexDirection axis, float widthSize) |
| bool | isLayoutDimensionDefined (FlexDirection axis) |
| bool | hasDefiniteLength (Dimension dimension, float ownerSize) |
| bool | hasErrata (Errata errata) const |
| bool | hasContentsChildren () const |
| YGDirtiedFunc | getDirtiedFunc () const |
| Style & | style () |
| const Style & | style () const |
| LayoutResults & | getLayout () |
| const LayoutResults & | getLayout () const |
| size_t | getLineIndex () const |
| bool | isReferenceBaseline () const |
| Node * | getOwner () const |
| const std::vector< Node * > & | getChildren () const |
| Node * | getChild (size_t index) const |
| size_t | getChildCount () const |
| LayoutableChildren | getLayoutChildren () const |
| size_t | getLayoutChildCount () const |
| const Config * | getConfig () const |
| bool | isDirty () const |
| Style::SizeLength | getProcessedDimension (Dimension dimension) const |
| FloatOptional | getResolvedDimension (Direction direction, Dimension dimension, float referenceLength, float ownerWidth) const |
| void | setContext (void *context) |
| void | setAlwaysFormsContainingBlock (bool alwaysFormsContainingBlock) |
| void | setHasNewLayout (bool hasNewLayout) |
| void | setNodeType (NodeType nodeType) |
| void | setMeasureFunc (YGMeasureFunc measureFunc) |
| void | setBaselineFunc (YGBaselineFunc baseLineFunc) |
| void | setDirtiedFunc (YGDirtiedFunc dirtiedFunc) |
| void | setStyle (const Style &style) |
| void | setLayout (const LayoutResults &layout) |
| void | setLineIndex (size_t lineIndex) |
| void | setIsReferenceBaseline (bool isReferenceBaseline) |
| void | setOwner (Node *owner) |
| void | setConfig (Config *config) |
| void | setDirty (bool isDirty) |
| void | setChildren (const std::vector< Node * > &children) |
| void | setLayoutLastOwnerDirection (Direction direction) |
| void | setLayoutComputedFlexBasis (FloatOptional computedFlexBasis) |
| void | setLayoutComputedFlexBasisGeneration (uint32_t computedFlexBasisGeneration) |
| void | setLayoutMeasuredDimension (float measuredDimension, Dimension dimension) |
| void | setLayoutHadOverflow (bool hadOverflow) |
| void | setLayoutDimension (float lengthValue, Dimension dimension) |
| void | setLayoutDirection (Direction direction) |
| void | setLayoutMargin (float margin, PhysicalEdge edge) |
| void | setLayoutBorder (float border, PhysicalEdge edge) |
| void | setLayoutPadding (float padding, PhysicalEdge edge) |
| void | setLayoutPosition (float position, PhysicalEdge edge) |
| void | setPosition (Direction direction, float ownerWidth, float ownerHeight) |
| Style::SizeLength | processFlexBasis () const |
| FloatOptional | resolveFlexBasis (Direction direction, FlexDirection flexDirection, float referenceLength, float ownerWidth) const |
| void | processDimensions () |
| Direction | resolveDirection (Direction ownerDirection) |
| void | clearChildren () |
| void | replaceChild (Node *oldChild, Node *newChild) |
| Replaces the occurrences of oldChild with newChild | |
| void | replaceChild (Node *child, size_t index) |
| void | insertChild (Node *child, size_t index) |
| bool | removeChild (Node *child) |
| Removes the first occurrence of child | |
| void | removeChild (size_t index) |
| void | cloneChildrenIfNeeded () |
| void | cloneContentsChildrenIfNeeded () |
| void | markDirtyAndPropagate () |
| float | resolveFlexGrow () const |
| float | resolveFlexShrink () const |
| bool | isNodeFlexible () |
| void | reset () |
| float | relativePosition (FlexDirection axis, Direction direction, float axisSize) const |
Private 成员函数 | |
| Node & | operator= (Node &&) noexcept=default |
| void | useWebDefaults () |
Private 属性 | |
| bool | hasNewLayout_: 1 = true |
| bool | isReferenceBaseline_: 1 = false |
| bool | isDirty_: 1 = true |
| bool | alwaysFormsContainingBlock_: 1 = false |
| NodeType | nodeType_: bitCount<NodeType>() = NodeType::Default |
| void * | context_ = nullptr |
| YGMeasureFunc | measureFunc_ = nullptr |
| YGBaselineFunc | baselineFunc_ = nullptr |
| YGDirtiedFunc | dirtiedFunc_ = nullptr |
| Style | style_ |
| LayoutResults | layout_ |
| size_t | lineIndex_ = 0 |
| size_t | contentsChildrenCount_ = 0 |
| Node * | owner_ = nullptr |
| std::vector< Node * > | children_ |
| const Config * | config_ |
| std::array< Style::SizeLength, 2 > | processedDimensions_ |
| using facebook::yoga::Node::LayoutableChildren = yoga::LayoutableChildren<Node> |
| facebook::yoga::Node::Node | ( | ) |
|
explicit |
|
noexcept |
|
default |
|
inline |
| float facebook::yoga::Node::baseline | ( | float | width, |
| float | height ) const |
| void facebook::yoga::Node::clearChildren | ( | ) |
| void facebook::yoga::Node::cloneChildrenIfNeeded | ( | ) |

| void facebook::yoga::Node::cloneContentsChildrenIfNeeded | ( | ) |

| float facebook::yoga::Node::dimensionWithMargin | ( | FlexDirection | axis, |
| float | widthSize ) |

|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |

|
inline |

|
inlinenoexcept |
|
inline |
|
inline |
Whether the node has a "definite length" along the given axis. https://www.w3.org/TR/css-sizing-3/#definite

|
inline |
|
inlinenoexcept |
| void facebook::yoga::Node::insertChild | ( | Node * | child, |
| size_t | index ) |
|
inline |
| bool facebook::yoga::Node::isLayoutDimensionDefined | ( | FlexDirection | axis | ) |

| bool facebook::yoga::Node::isNodeFlexible | ( | ) |
|
inline |
| void facebook::yoga::Node::markDirtyAndPropagate | ( | ) |
| YGSize facebook::yoga::Node::measure | ( | float | availableWidth, |
| MeasureMode | widthMode, | ||
| float | availableHeight, | ||
| MeasureMode | heightMode ) |

|
delete |
|
privatedefaultnoexcept |
| void facebook::yoga::Node::processDimensions | ( | ) |
| Style::SizeLength facebook::yoga::Node::processFlexBasis | ( | ) | const |

| float facebook::yoga::Node::relativePosition | ( | FlexDirection | axis, |
| Direction | direction, | ||
| float | axisSize ) const |
| bool facebook::yoga::Node::removeChild | ( | Node * | child | ) |
Removes the first occurrence of child
| void facebook::yoga::Node::removeChild | ( | size_t | index | ) |
| void facebook::yoga::Node::replaceChild | ( | Node * | child, |
| size_t | index ) |
| void facebook::yoga::Node::replaceChild | ( | Node * | oldChild, |
| Node * | newChild ) |
Replaces the occurrences of oldChild with newChild
| void facebook::yoga::Node::reset | ( | ) |
| FloatOptional facebook::yoga::Node::resolveFlexBasis | ( | Direction | direction, |
| FlexDirection | flexDirection, | ||
| float | referenceLength, | ||
| float | ownerWidth ) const |

| float facebook::yoga::Node::resolveFlexGrow | ( | ) | const |
| float facebook::yoga::Node::resolveFlexShrink | ( | ) | const |
|
inline |
|
inline |
| void facebook::yoga::Node::setChildren | ( | const std::vector< Node * > & | children | ) |
| void facebook::yoga::Node::setConfig | ( | yoga::Config * | config | ) |
|
inline |
|
inline |
| void facebook::yoga::Node::setDirty | ( | bool | isDirty | ) |
|
inline |
|
inline |
|
inline |
| void facebook::yoga::Node::setLayoutBorder | ( | float | border, |
| PhysicalEdge | edge ) |
| void facebook::yoga::Node::setLayoutComputedFlexBasis | ( | FloatOptional | computedFlexBasis | ) |
| void facebook::yoga::Node::setLayoutComputedFlexBasisGeneration | ( | uint32_t | computedFlexBasisGeneration | ) |
| void facebook::yoga::Node::setLayoutDimension | ( | float | lengthValue, |
| Dimension | dimension ) |

| void facebook::yoga::Node::setLayoutDirection | ( | Direction | direction | ) |
| void facebook::yoga::Node::setLayoutHadOverflow | ( | bool | hadOverflow | ) |
| void facebook::yoga::Node::setLayoutLastOwnerDirection | ( | Direction | direction | ) |
| void facebook::yoga::Node::setLayoutMargin | ( | float | margin, |
| PhysicalEdge | edge ) |
| void facebook::yoga::Node::setLayoutMeasuredDimension | ( | float | measuredDimension, |
| Dimension | dimension ) |

| void facebook::yoga::Node::setLayoutPadding | ( | float | padding, |
| PhysicalEdge | edge ) |
| void facebook::yoga::Node::setLayoutPosition | ( | float | position, |
| PhysicalEdge | edge ) |
|
inline |
| void facebook::yoga::Node::setMeasureFunc | ( | YGMeasureFunc | measureFunc | ) |
|
inline |
|
inline |
| void facebook::yoga::Node::setPosition | ( | Direction | direction, |
| float | ownerWidth, | ||
| float | ownerHeight ) |

|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |