slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
命名空间 | 函数
CalculateLayout.cpp 文件参考
#include <algorithm>
#include <atomic>
#include <cfloat>
#include <cmath>
#include <cstring>
#include <yoga/Yoga.h>
#include <yoga/algorithm/AbsoluteLayout.h>
#include <yoga/algorithm/Align.h>
#include <yoga/algorithm/Baseline.h>
#include <yoga/algorithm/BoundAxis.h>
#include <yoga/algorithm/Cache.h>
#include <yoga/algorithm/CalculateLayout.h>
#include <yoga/algorithm/FlexDirection.h>
#include <yoga/algorithm/FlexLine.h>
#include <yoga/algorithm/PixelGrid.h>
#include <yoga/algorithm/SizingMode.h>
#include <yoga/algorithm/TrailingPosition.h>
#include <yoga/debug/AssertFatal.h>
#include <yoga/debug/Log.h>
#include <yoga/event/event.h>
#include <yoga/node/Node.h>
#include <yoga/numeric/Comparison.h>
#include <yoga/numeric/FloatOptional.h>
CalculateLayout.cpp 的引用(Include)关系图:

命名空间

namespace  facebook
 
namespace  facebook::yoga
 

函数

std::atomic< uint32_t > facebook::yoga::gCurrentGenerationCount (0)
 
void facebook::yoga::constrainMaxSizeForMode (const yoga::Node *node, Direction direction, FlexDirection axis, float ownerAxisSize, float ownerWidth, SizingMode *mode, float *size)
 
static void facebook::yoga::computeFlexBasisForChild (const yoga::Node *const node, yoga::Node *const child, const float width, const SizingMode widthMode, const float height, const float ownerWidth, const float ownerHeight, const SizingMode heightMode, const Direction direction, LayoutData &layoutMarkerData, const uint32_t depth, const uint32_t generationCount)
 
static void facebook::yoga::measureNodeWithMeasureFunc (yoga::Node *const node, const Direction direction, float availableWidth, float availableHeight, const SizingMode widthSizingMode, const SizingMode heightSizingMode, const float ownerWidth, const float ownerHeight, LayoutData &layoutMarkerData, const LayoutPassReason reason)
 
static void facebook::yoga::measureNodeWithoutChildren (yoga::Node *const node, const Direction direction, const float availableWidth, const float availableHeight, const SizingMode widthSizingMode, const SizingMode heightSizingMode, const float ownerWidth, const float ownerHeight)
 
bool facebook::yoga::isFixedSize (float dim, SizingMode sizingMode)
 
static bool facebook::yoga::measureNodeWithFixedSize (yoga::Node *const node, const Direction direction, const float availableWidth, const float availableHeight, const SizingMode widthSizingMode, const SizingMode heightSizingMode, const float ownerWidth, const float ownerHeight)
 
void facebook::yoga::zeroOutLayoutRecursively (yoga::Node *const node)
 
void facebook::yoga::cleanupContentsNodesRecursively (yoga::Node *const node)
 
float facebook::yoga::calculateAvailableInnerDimension (const yoga::Node *const node, const Direction direction, const Dimension dimension, const float availableDim, const float paddingAndBorder, const float ownerDim, const float ownerWidth)
 
static float facebook::yoga::computeFlexBasisForChildren (yoga::Node *const node, const float availableInnerWidth, const float availableInnerHeight, const float ownerWidth, const float ownerHeight, SizingMode widthSizingMode, SizingMode heightSizingMode, Direction direction, FlexDirection mainAxis, bool performLayout, LayoutData &layoutMarkerData, const uint32_t depth, const uint32_t generationCount)
 
static float facebook::yoga::distributeFreeSpaceSecondPass (FlexLine &flexLine, yoga::Node *const node, const FlexDirection mainAxis, const FlexDirection crossAxis, const Direction direction, const float ownerWidth, const float mainAxisOwnerSize, const float availableInnerMainDim, const float availableInnerCrossDim, const float availableInnerWidth, const float availableInnerHeight, const bool mainAxisOverflows, const SizingMode sizingModeCrossDim, const bool performLayout, LayoutData &layoutMarkerData, const uint32_t depth, const uint32_t generationCount)
 
static void facebook::yoga::distributeFreeSpaceFirstPass (FlexLine &flexLine, const Direction direction, const FlexDirection mainAxis, const float ownerWidth, const float mainAxisOwnerSize, const float availableInnerMainDim, const float availableInnerWidth)
 
static void facebook::yoga::resolveFlexibleLength (yoga::Node *const node, FlexLine &flexLine, const FlexDirection mainAxis, const FlexDirection crossAxis, const Direction direction, const float ownerWidth, const float mainAxisOwnerSize, const float availableInnerMainDim, const float availableInnerCrossDim, const float availableInnerWidth, const float availableInnerHeight, const bool mainAxisOverflows, const SizingMode sizingModeCrossDim, const bool performLayout, LayoutData &layoutMarkerData, const uint32_t depth, const uint32_t generationCount)
 
static void facebook::yoga::justifyMainAxis (yoga::Node *const node, FlexLine &flexLine, const FlexDirection mainAxis, const FlexDirection crossAxis, const Direction direction, const SizingMode sizingModeMainDim, const SizingMode sizingModeCrossDim, const float mainAxisOwnerSize, const float ownerWidth, const float availableInnerMainDim, const float availableInnerCrossDim, const float availableInnerWidth, const bool performLayout)
 
static void facebook::yoga::calculateLayoutImpl (yoga::Node *const node, const float availableWidth, const float availableHeight, const Direction ownerDirection, const SizingMode widthSizingMode, const SizingMode heightSizingMode, const float ownerWidth, const float ownerHeight, const bool performLayout, const LayoutPassReason reason, LayoutData &layoutMarkerData, const uint32_t depth, const uint32_t generationCount)
 
bool facebook::yoga::calculateLayoutInternal (yoga::Node *const node, const float availableWidth, const float availableHeight, const Direction ownerDirection, const SizingMode widthSizingMode, const SizingMode heightSizingMode, const float ownerWidth, const float ownerHeight, const bool performLayout, const LayoutPassReason reason, LayoutData &layoutMarkerData, uint32_t depth, const uint32_t generationCount)
 
void facebook::yoga::calculateLayout (yoga::Node *const node, const float ownerWidth, const float ownerHeight, const Direction ownerDirection)