slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
函数
YGNode.cpp 文件参考
#include <yoga/Yoga.h>
#include <yoga/algorithm/Cache.h>
#include <yoga/algorithm/CalculateLayout.h>
#include <yoga/debug/AssertFatal.h>
#include <yoga/debug/Log.h>
#include <yoga/event/event.h>
#include <yoga/node/Node.h>
YGNode.cpp 的引用(Include)关系图:

函数

YGNodeRef YGNodeNew (void)
 
YGNodeRef YGNodeNewWithConfig (const YGConfigConstRef config)
 
YGNodeRef YGNodeClone (YGNodeConstRef oldNodeRef)
 
void YGNodeFree (const YGNodeRef nodeRef)
 
void YGNodeFreeRecursive (YGNodeRef rootRef)
 
void YGNodeFinalize (const YGNodeRef node)
 
void YGNodeReset (YGNodeRef node)
 
void YGNodeCalculateLayout (const YGNodeRef node, const float ownerWidth, const float ownerHeight, const YGDirection ownerDirection)
 
bool YGNodeGetHasNewLayout (YGNodeConstRef node)
 
void YGNodeSetHasNewLayout (YGNodeRef node, bool hasNewLayout)
 
bool YGNodeIsDirty (YGNodeConstRef node)
 
void YGNodeMarkDirty (const YGNodeRef nodeRef)
 
void YGNodeSetDirtiedFunc (YGNodeRef node, YGDirtiedFunc dirtiedFunc)
 
YGDirtiedFunc YGNodeGetDirtiedFunc (YGNodeConstRef node)
 
void YGNodeInsertChild (const YGNodeRef ownerRef, const YGNodeRef childRef, const size_t index)
 
void YGNodeSwapChild (const YGNodeRef ownerRef, const YGNodeRef childRef, const size_t index)
 
void YGNodeRemoveChild (const YGNodeRef ownerRef, const YGNodeRef excludedChildRef)
 
void YGNodeRemoveAllChildren (const YGNodeRef ownerRef)
 
void YGNodeSetChildren (const YGNodeRef ownerRef, const YGNodeRef *childrenRefs, const size_t count)
 
YGNodeRef YGNodeGetChild (const YGNodeRef nodeRef, const size_t index)
 
size_t YGNodeGetChildCount (const YGNodeConstRef node)
 
YGNodeRef YGNodeGetOwner (const YGNodeRef node)
 
YGNodeRef YGNodeGetParent (const YGNodeRef node)
 
void YGNodeSetConfig (YGNodeRef node, YGConfigRef config)
 
YGConfigConstRef YGNodeGetConfig (YGNodeRef node)
 
void YGNodeSetContext (YGNodeRef node, void *context)
 
void * YGNodeGetContext (YGNodeConstRef node)
 
void YGNodeSetMeasureFunc (YGNodeRef node, YGMeasureFunc measureFunc)
 
bool YGNodeHasMeasureFunc (YGNodeConstRef node)
 
void YGNodeSetBaselineFunc (YGNodeRef node, YGBaselineFunc baselineFunc)
 
bool YGNodeHasBaselineFunc (YGNodeConstRef node)
 
void YGNodeSetIsReferenceBaseline (YGNodeRef nodeRef, bool isReferenceBaseline)
 
bool YGNodeIsReferenceBaseline (YGNodeConstRef node)
 
void YGNodeSetNodeType (YGNodeRef node, YGNodeType nodeType)
 
YGNodeType YGNodeGetNodeType (YGNodeConstRef node)
 
void YGNodeSetAlwaysFormsContainingBlock (YGNodeRef node, bool alwaysFormsContainingBlock)
 
bool YGNodeGetAlwaysFormsContainingBlock (YGNodeConstRef node)
 
bool YGNodeCanUseCachedMeasurement (YGMeasureMode widthMode, float availableWidth, YGMeasureMode heightMode, float availableHeight, YGMeasureMode lastWidthMode, float lastAvailableWidth, YGMeasureMode lastHeightMode, float lastAvailableHeight, float lastComputedWidth, float lastComputedHeight, float marginRow, float marginColumn, YGConfigRef config)
 

函数说明

◆ YGNodeCalculateLayout()

void YGNodeCalculateLayout ( YGNodeRef node,
float availableWidth,
float availableHeight,
YGDirection ownerDirection )

Calculates the layout of the tree rooted at the given node.

Layout results may be read after calling YGNodeCalculateLayout() using functions like YGNodeLayoutGetLeft(), YGNodeLayoutGetTop(), etc.

YGNodeGetHasNewLayout() may be read to know if the layout of the node or its subtrees may have changed since the last time YGNodeCalculate() was called.

函数调用图:

◆ YGNodeCanUseCachedMeasurement()

bool YGNodeCanUseCachedMeasurement ( YGMeasureMode widthMode,
float availableWidth,
YGMeasureMode heightMode,
float availableHeight,
YGMeasureMode lastWidthMode,
float lastAvailableWidth,
YGMeasureMode lastHeightMode,
float lastAvailableHeight,
float lastComputedWidth,
float lastComputedHeight,
float marginRow,
float marginColumn,
YGConfigRef config )
函数调用图:

◆ YGNodeClone()

YGNodeRef YGNodeClone ( YGNodeConstRef node)

Returns a mutable copy of an existing node, with the same context and children, but no owner set. Does not call the function set by YGConfigSetCloneNodeFunc().

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeFinalize()

void YGNodeFinalize ( YGNodeRef node)

Frees the Yoga node without disconnecting it from its owner or children. Allows garbage collecting Yoga nodes in parallel when the entire tree is unreachable.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeFree()

void YGNodeFree ( YGNodeRef node)

Frees the Yoga node, disconnecting it from its owner and children.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeFreeRecursive()

void YGNodeFreeRecursive ( YGNodeRef node)

Frees the subtree of Yoga nodes rooted at the given node.

函数调用图:

◆ YGNodeGetAlwaysFormsContainingBlock()

bool YGNodeGetAlwaysFormsContainingBlock ( YGNodeConstRef node)

Whether the node will always form a containing block for any descendant. This can happen in situation where the client implements something like a transform that can affect containing blocks but is not handled by Yoga directly.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetChild()

YGNodeRef YGNodeGetChild ( YGNodeRef node,
size_t index )

Get the child node at a given index.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetChildCount()

size_t YGNodeGetChildCount ( YGNodeConstRef node)

The number of child nodes.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetConfig()

YGConfigConstRef YGNodeGetConfig ( YGNodeRef node)

Get the config currently set on the node.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetContext()

void * YGNodeGetContext ( YGNodeConstRef node)

Returns the context or NULL if no context has been set.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetDirtiedFunc()

YGDirtiedFunc YGNodeGetDirtiedFunc ( YGNodeConstRef node)

Returns a dirtied func if set.

函数调用图:

◆ YGNodeGetHasNewLayout()

bool YGNodeGetHasNewLayout ( YGNodeConstRef node)

Whether the given node may have new layout results. Must be reset by calling YGNodeSetHasNewLayout().

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetNodeType()

YGNodeType YGNodeGetNodeType ( YGNodeConstRef node)

Whether a leaf node's layout results may be truncated during layout rounding.

函数调用图:

◆ YGNodeGetOwner()

YGNodeRef YGNodeGetOwner ( YGNodeRef node)

Get the parent/owner currently set for a node.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeGetParent()

YGNodeRef YGNodeGetParent ( YGNodeRef node)

Get the parent/owner currently set for a node.

函数调用图:

◆ YGNodeHasBaselineFunc()

bool YGNodeHasBaselineFunc ( YGNodeConstRef node)

Whether a baseline function is set.

函数调用图:

◆ YGNodeHasMeasureFunc()

bool YGNodeHasMeasureFunc ( YGNodeConstRef node)

Whether a measure function is set.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeInsertChild()

void YGNodeInsertChild ( YGNodeRef node,
YGNodeRef child,
size_t index )

Inserts a child node at the given index.

函数调用图:

◆ YGNodeIsDirty()

bool YGNodeIsDirty ( YGNodeConstRef node)

Whether the node's layout results are dirty due to it or its children changing.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeIsReferenceBaseline()

bool YGNodeIsReferenceBaseline ( YGNodeConstRef node)

Whether this node is set as the reference baseline.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeMarkDirty()

void YGNodeMarkDirty ( YGNodeRef node)

Marks a node with custom measure function as dirty.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeNew()

YGNodeRef YGNodeNew ( void )

Heap allocates and returns a new Yoga node using Yoga settings.

函数调用图:

◆ YGNodeNewWithConfig()

YGNodeRef YGNodeNewWithConfig ( YGConfigConstRef config)

Heap allocates and returns a new Yoga node, with customized settings.

函数调用图:

◆ YGNodeRemoveAllChildren()

void YGNodeRemoveAllChildren ( YGNodeRef node)

Removes all children nodes.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeRemoveChild()

void YGNodeRemoveChild ( YGNodeRef node,
YGNodeRef child )

Removes the given child node.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeReset()

void YGNodeReset ( YGNodeRef node)

Resets the node to its default state.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetAlwaysFormsContainingBlock()

void YGNodeSetAlwaysFormsContainingBlock ( YGNodeRef node,
bool alwaysFormsContainingBlock )

Make it so that this node will always form a containing block for any descendant nodes. This is useful for when a node has a property outside of of Yoga that will form a containing block. For example, transforms or some of the others listed in https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetBaselineFunc()

void YGNodeSetBaselineFunc ( YGNodeRef node,
YGBaselineFunc baselineFunc )

Set a custom function for determining the text baseline for use in baseline alignment.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetChildren()

void YGNodeSetChildren ( YGNodeRef owner,
const YGNodeRef * children,
size_t count )

Sets children according to the given list of nodes.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetConfig()

void YGNodeSetConfig ( YGNodeRef node,
YGConfigRef config )

Set a new config for the node after creation.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetContext()

void YGNodeSetContext ( YGNodeRef node,
void * context )

Sets extra data on the Yoga node which may be read from during callbacks.

函数调用图:

◆ YGNodeSetDirtiedFunc()

void YGNodeSetDirtiedFunc ( YGNodeRef node,
YGDirtiedFunc dirtiedFunc )

Called when a change is made to the Yoga tree which dirties this node.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetHasNewLayout()

void YGNodeSetHasNewLayout ( YGNodeRef node,
bool hasNewLayout )

Sets whether a nodes layout is considered new.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetIsReferenceBaseline()

void YGNodeSetIsReferenceBaseline ( YGNodeRef node,
bool isReferenceBaseline )

Sets this node should be considered the reference baseline among siblings.

函数调用图:
这是这个函数的调用关系图:

◆ YGNodeSetMeasureFunc()

void YGNodeSetMeasureFunc ( YGNodeRef node,
YGMeasureFunc measureFunc )

Allows providing custom measurements for a Yoga leaf node (usually for measuring text). YGNodeMarkDirty() must be set if content effecting the measurements of the node changes.

函数调用图:

◆ YGNodeSetNodeType()

void YGNodeSetNodeType ( YGNodeRef node,
YGNodeType nodeType )

Sets whether a leaf node's layout results may be truncated during layout rounding.

函数调用图:

◆ YGNodeSwapChild()

void YGNodeSwapChild ( YGNodeRef node,
YGNodeRef child,
size_t index )

Replaces the child node at a given index with a new one.

函数调用图:
这是这个函数的调用关系图: