slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
命名空间 | | 概念 | 类型定义 | 枚举 | 函数 | 变量
facebook::yoga 命名空间参考

命名空间

namespace  test
 
namespace  vanillajni
 

struct  BenchmarkResult
 
struct  CachedMeasurement
 
class  Config
 
struct  Event
 
struct  FlexLine
 
struct  FlexLineRunningLayout
 
struct  FloatOptional
 
struct  GridLine
 
struct  GridTrackSize
 
class  LayoutableChildren
 
struct  LayoutData
 
struct  LayoutResults
 
class  Node
 
struct  SerializedMeasureFunc
 
class  SmallValueBuffer
 
class  Style
 
class  StyleLength
 
class  StyleSizeLength
 
class  StyleValueHandle
 
class  StyleValuePool
 
struct  YGPersistentNodeCloningTest
 
struct  YogaNodeAndConfig
 

概念

concept  Enumeration
 
concept  HasOrdinality
 

类型定义

using SteadyClockDurations
 
using SerializedMeasureFuncMap
 
using ExperimentalFeatureSet = std::bitset<ordinalCount<ExperimentalFeature>()>
 
using GridTrackList = std::vector<GridTrackSize>
 

枚举

enum class  PrintOptions : uint8_t {
  Layout = 1 << 0 , Children = 1 << 1 , Style = 1 << 2 , Config = 1 << 3 ,
  Node = 1 << 4
}
 
enum class  SizingMode { StretchFit , MaxContent , FitContent }
 
enum class  Align : uint8_t {
  Auto = YGAlignAuto , FlexStart = YGAlignFlexStart , Center = YGAlignCenter , FlexEnd = YGAlignFlexEnd ,
  Stretch = YGAlignStretch , Baseline = YGAlignBaseline , SpaceBetween = YGAlignSpaceBetween , SpaceAround = YGAlignSpaceAround ,
  SpaceEvenly = YGAlignSpaceEvenly , Start = YGAlignStart , End = YGAlignEnd
}
 
enum class  BoxSizing : uint8_t { BorderBox = YGBoxSizingBorderBox , ContentBox = YGBoxSizingContentBox }
 
enum class  Dimension : uint8_t { Width = YGDimensionWidth , Height = YGDimensionHeight }
 
enum class  Direction : uint8_t { Inherit = YGDirectionInherit , LTR = YGDirectionLTR , RTL = YGDirectionRTL }
 
enum class  Display : uint8_t { Flex = YGDisplayFlex , None = YGDisplayNone , Contents = YGDisplayContents , Grid = YGDisplayGrid }
 
enum class  Edge : uint8_t {
  Left = YGEdgeLeft , Top = YGEdgeTop , Right = YGEdgeRight , Bottom = YGEdgeBottom ,
  Start = YGEdgeStart , End = YGEdgeEnd , Horizontal = YGEdgeHorizontal , Vertical = YGEdgeVertical ,
  All = YGEdgeAll
}
 
enum class  Errata : uint32_t {
  None = YGErrataNone , StretchFlexBasis = YGErrataStretchFlexBasis , AbsolutePositionWithoutInsetsExcludesPadding = YGErrataAbsolutePositionWithoutInsetsExcludesPadding , AbsolutePercentAgainstInnerSize = YGErrataAbsolutePercentAgainstInnerSize ,
  All = YGErrataAll , Classic = YGErrataClassic
}
 
enum class  ExperimentalFeature : uint8_t { WebFlexBasis = YGExperimentalFeatureWebFlexBasis , FixFlexBasisFitContent = YGExperimentalFeatureFixFlexBasisFitContent }
 
enum class  FlexDirection : uint8_t { Column = YGFlexDirectionColumn , ColumnReverse = YGFlexDirectionColumnReverse , Row = YGFlexDirectionRow , RowReverse = YGFlexDirectionRowReverse }
 
enum class  GridTrackType : uint8_t {
  Auto = YGGridTrackTypeAuto , Points = YGGridTrackTypePoints , Percent = YGGridTrackTypePercent , Fr = YGGridTrackTypeFr ,
  Minmax = YGGridTrackTypeMinmax
}
 
enum class  Gutter : uint8_t { Column = YGGutterColumn , Row = YGGutterRow , All = YGGutterAll }
 
enum class  Justify : uint8_t {
  Auto = YGJustifyAuto , FlexStart = YGJustifyFlexStart , Center = YGJustifyCenter , FlexEnd = YGJustifyFlexEnd ,
  SpaceBetween = YGJustifySpaceBetween , SpaceAround = YGJustifySpaceAround , SpaceEvenly = YGJustifySpaceEvenly , Stretch = YGJustifyStretch ,
  Start = YGJustifyStart , End = YGJustifyEnd
}
 
enum class  LogLevel : uint8_t {
  Error = YGLogLevelError , Warn = YGLogLevelWarn , Info = YGLogLevelInfo , Debug = YGLogLevelDebug ,
  Verbose = YGLogLevelVerbose , Fatal = YGLogLevelFatal
}
 
enum class  MeasureMode : uint8_t { Undefined = YGMeasureModeUndefined , Exactly = YGMeasureModeExactly , AtMost = YGMeasureModeAtMost }
 
enum class  NodeType : uint8_t { Default = YGNodeTypeDefault , Text = YGNodeTypeText }
 
enum class  Overflow : uint8_t { Visible = YGOverflowVisible , Hidden = YGOverflowHidden , Scroll = YGOverflowScroll }
 
enum class  PhysicalEdge : uint32_t { Left = yoga::to_underlying(Edge::Left) , Top = yoga::to_underlying(Edge::Top) , Right = yoga::to_underlying(Edge::Right) , Bottom = yoga::to_underlying(Edge::Bottom) }
 
enum class  PositionType : uint8_t { Static = YGPositionTypeStatic , Relative = YGPositionTypeRelative , Absolute = YGPositionTypeAbsolute }
 
enum class  Unit : uint8_t {
  Undefined = YGUnitUndefined , Point = YGUnitPoint , Percent = YGUnitPercent , Auto = YGUnitAuto ,
  MaxContent = YGUnitMaxContent , FitContent = YGUnitFitContent , Stretch = YGUnitStretch
}
 
enum class  Wrap : uint8_t { NoWrap = YGWrapNoWrap , Wrap = YGWrapWrap , WrapReverse = YGWrapWrapReverse }
 
enum struct  LayoutType : int { kLayout = 0 , kMeasure = 1 , kCachedLayout = 2 , kCachedMeasure = 3 }
 
enum struct  LayoutPassReason : int {
  kInitial = 0 , kAbsLayout = 1 , kStretch = 2 , kMultilineStretch = 3 ,
  kFlexLayout = 4 , kMeasureChild = 5 , kAbsMeasureChild = 6 , kFlexMeasure = 7 ,
  kGridLayout = 8 , COUNT
}
 
enum class  GridLineType : uint8_t { Auto , Integer , Span }
 

函数

static bool inputsMatch (float actualWidth, float expectedWidth, float actualHeight, float expectedHeight, YGMeasureMode actualWidthMode, YGMeasureMode expectedWidthMode, YGMeasureMode actualHeightMode, YGMeasureMode expectedHeightMode)
 
YGSize defaultMeasureFunctionResult ()
 
YGSize mockMeasureFunc (YGNodeConstRef node, float availableWidth, YGMeasureMode widthMode, float availableHeight, YGMeasureMode heightMode)
 
std::shared_ptr< const YGConfigbuildConfigFromJson (const json &j)
 
std::string edgeStringFromPropertyName (const std::string &key, const std::string &propertyName)
 
void setStylesFromJson (const json &j, YGNodeRef node)
 
std::shared_ptr< YGNodebuildNodeFromJson (const json &j, std::shared_ptr< const YGConfig > config, std::shared_ptr< SerializedMeasureFuncMap > fns)
 
std::shared_ptr< YogaNodeAndConfigbuildTreeFromJson (const json &j, std::shared_ptr< SerializedMeasureFuncMap > fns, std::shared_ptr< YogaNodeAndConfig > parent, size_t index)
 
BenchmarkResult generateBenchmark (json &capture)
 
static void printBenchmarkResult (const std::string &name, SteadyClockDurations &durations)
 
void benchmark (std::filesystem::path &capturesDir)
 
static bool isAuto (json &j)
 
static bool isUndefined (json &j)
 
static std::string invalidArgumentMessage (const std::string &arg, const std::string &enumName)
 
static float floatFromJson (json &j)
 
YGFlexDirection flexDirectionFromString (const std::string &str)
 
YGJustify justifyContentFromString (const std::string &str)
 
YGAlign alignFromString (const std::string &str)
 
YGWrap wrapFromString (const std::string &str)
 
YGOverflow overflowFromString (const std::string &str)
 
YGDisplay displayFromString (const std::string &str)
 
YGPositionType positionTypeFromString (const std::string &str)
 
YGUnit unitFromJson (json &j)
 
YGEdge edgeFromString (const std::string &str)
 
YGErrata errataFromString (const std::string &str)
 
YGExperimentalFeature experimentalFeatureFromString (const std::string &str)
 
std::string edgeStringFromPropertyName (const json::iterator &it, const std::string &propertyName)
 
YGDirection directionFromString (const std::string &str)
 
YGMeasureMode measureModeFromString (const std::string &str)
 
SerializedMeasureFunc serializedMeasureFuncFromJson (json &j)
 
static void captureTree (std::string_view serializedTree, const std::filesystem::path &path)
 
static SerializedMeasureFuncMapcurrentSerializedMeasureFuncMap ()
 
static void dirtyTree (YGNodeRef node)
 
void YGNodeCalculateLayoutWithCapture (YGNodeRef node, float availableWidth, float availableHeight, YGDirection ownerDirection, const std::filesystem::path &path)
 
void captureMeasureFunc (YGNodeConstRef node, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode, YGSize output, std::chrono::steady_clock::duration durationNs)
 
static void appendFloatIfNotDefault (json &j, std::string_view key, float num, float defaultNum)
 
static void appendYGValueIfNotDefault (json &j, std::string_view key, const YGValue &value, const YGValue &defaultValue)
 
static void appendEnumValueIfNotDefault (json &j, std::string_view key, std::string_view value, std::string_view defaultValue)
 
static void appendBoolIfNotDefault (json &j, std::string_view key, bool value, bool defaultValue)
 
template<auto Field>
static void appendEdges (json &j, const std::string &key, YGNodeRef node, YGNodeRef defaultNode)
 
static YGValue borderFloatToYGValue (YGNodeRef node, YGEdge edge)
 
static void serializeMeasureFuncResults (json &j, std::vector< SerializedMeasureFunc > &measureFuncs)
 
static void serializeTreeImpl (json &j, SerializedMeasureFuncMap &nodesToMeasureFuncs, YGNodeRef node, PrintOptions options)
 
void serializeTree (json &j, SerializedMeasureFuncMap &nodesToMeasureFuncs, YGNodeRef node, PrintOptions options)
 
void serializeLayoutInputs (json &j, float availableWidth, float availableHeight, YGDirection ownerDirection)
 
 YG_DEFINE_ENUM_FLAG_OPERATORS (PrintOptions)
 
void serializeTree (nlohmann::json &j, SerializedMeasureFuncMap &nodesToMeasureFuncs, YGNodeRef node, PrintOptions options)
 
void serializeLayoutInputs (nlohmann::json &j, float availableWidth, float availableHeight, YGDirection ownerDirection)
 
 TEST (Ordinals, iteration)
 
 TEST (SmallValueBuffer, copy_assignment_with_overflow)
 
 TEST (SmallValueBuffer, push_32)
 
 TEST (SmallValueBuffer, push_overflow)
 
 TEST (SmallValueBuffer, push_64)
 
 TEST (SmallValueBuffer, push_64_overflow)
 
 TEST (SmallValueBuffer, push_64_after_32)
 
 TEST (SmallValueBuffer, push_32_after_64)
 
 TEST (SmallValueBuffer, replace_32_with_32)
 
 TEST (SmallValueBuffer, replace_32_with_64)
 
 TEST (SmallValueBuffer, replace_32_with_64_causes_overflow)
 
 TEST (SmallValueBuffer, replace_64_with_32)
 
 TEST (SmallValueBuffer, replace_64_with_64)
 
 TEST (Style, computed_padding_is_floored)
 
 TEST (Style, computed_border_is_floored)
 
 TEST (Style, computed_gap_is_floored)
 
 TEST (Style, computed_margin_is_not_floored)
 
 TEST (StyleValuePool, undefined_at_init)
 
 TEST (StyleValuePool, auto_at_init)
 
 TEST (StyleValuePool, store_small_int_points)
 
 TEST (StyleValuePool, store_small_negative_int_points)
 
 TEST (StyleValuePool, store_small_int_percent)
 
 TEST (StyleValuePool, store_large_int_percent)
 
 TEST (StyleValuePool, store_large_int_after_small_int)
 
 TEST (StyleValuePool, store_small_int_after_large_int)
 
 TEST (StyleValuePool, store_small_int_number)
 
 TEST (StyleValuePool, store_undefined)
 
 TEST (StyleValuePool, store_undefined_after_small_int)
 
 TEST (StyleValuePool, store_undefined_after_large_int)
 
 TEST (StyleValuePool, store_keywords)
 
 TEST_F (YGPersistentNodeCloningTest, changing_sibling_height_does_not_clone_neighbors)
 
 TEST_F (YGPersistentNodeCloningTest, clone_leaf_display_contents_node)
 
static void setFlexStartLayoutPosition (const yoga::Node *const parent, yoga::Node *child, const Direction direction, const FlexDirection axis, const float containingBlockWidth)
 
static void setFlexEndLayoutPosition (const yoga::Node *const parent, yoga::Node *child, const Direction direction, const FlexDirection axis, const float containingBlockWidth)
 
static void setCenterLayoutPosition (const yoga::Node *const parent, yoga::Node *child, const Direction direction, const FlexDirection axis, const float containingBlockWidth)
 
static void justifyAbsoluteChild (const yoga::Node *const parent, yoga::Node *child, const Direction direction, const FlexDirection mainAxis, const float containingBlockWidth)
 
static void alignAbsoluteChild (const yoga::Node *const parent, yoga::Node *child, const Direction direction, const FlexDirection crossAxis, const float containingBlockWidth)
 
static void positionAbsoluteChild (const yoga::Node *const containingNode, const yoga::Node *const parent, yoga::Node *child, const Direction direction, const FlexDirection axis, const bool isMainAxis, const float containingBlockWidth, const float containingBlockHeight)
 
void layoutAbsoluteChild (const yoga::Node *const containingNode, const yoga::Node *const node, yoga::Node *const child, const float containingBlockWidth, const float containingBlockHeight, const SizingMode widthMode, const Direction direction, LayoutData &layoutMarkerData, const uint32_t depth, const uint32_t generationCount)
 
bool layoutAbsoluteDescendants (yoga::Node *containingNode, yoga::Node *currentNode, SizingMode widthSizingMode, Direction currentNodeDirection, LayoutData &layoutMarkerData, uint32_t currentDepth, uint32_t generationCount, float currentNodeLeftOffsetFromContainingBlock, float currentNodeTopOffsetFromContainingBlock, float containingNodeAvailableInnerWidth, float containingNodeAvailableInnerHeight)
 
Align resolveChildAlignment (const yoga::Node *node, const yoga::Node *child)
 
Justify resolveChildJustification (const yoga::Node *node, const yoga::Node *child)
 
constexpr Align fallbackAlignment (Align align)
 
constexpr Justify fallbackAlignment (Justify align)
 
float calculateBaseline (const yoga::Node *node)
 
bool isBaselineLayout (const yoga::Node *node)
 
float paddingAndBorderForAxis (const yoga::Node *const node, const FlexDirection axis, const Direction direction, const float widthSize)
 
FloatOptional boundAxisWithinMinAndMax (const yoga::Node *const node, const Direction direction, const FlexDirection axis, const FloatOptional value, const float axisSize, const float widthSize)
 
float boundAxis (const yoga::Node *const node, const FlexDirection axis, const Direction direction, const float value, const float axisSize, const float widthSize)
 
static bool sizeIsExactAndMatchesOldMeasuredSize (SizingMode sizeMode, float size, float lastComputedSize)
 
static bool oldSizeIsMaxContentAndStillFits (SizingMode sizeMode, float size, SizingMode lastSizeMode, float lastComputedSize)
 
static bool newSizeIsStricterAndStillValid (SizingMode sizeMode, float size, SizingMode lastSizeMode, float lastSize, float lastComputedSize)
 
bool canUseCachedMeasurement (const SizingMode widthMode, const float availableWidth, const SizingMode heightMode, const float availableHeight, const SizingMode lastWidthMode, const float lastAvailableWidth, const SizingMode lastHeightMode, const float lastAvailableHeight, const float lastComputedWidth, const float lastComputedHeight, const float marginRow, const float marginColumn, const yoga::Config *const config)
 
std::atomic< uint32_t > gCurrentGenerationCount (0)
 
void constrainMaxSizeForMode (const yoga::Node *node, Direction direction, FlexDirection axis, float ownerAxisSize, float ownerWidth, SizingMode *mode, float *size)
 
static void 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 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 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 isFixedSize (float dim, SizingMode sizingMode)
 
static bool 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 zeroOutLayoutRecursively (yoga::Node *const node)
 
void cleanupContentsNodesRecursively (yoga::Node *const node)
 
float 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 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 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 distributeFreeSpaceFirstPass (FlexLine &flexLine, const Direction direction, const FlexDirection mainAxis, const float ownerWidth, const float mainAxisOwnerSize, const float availableInnerMainDim, const float availableInnerWidth)
 
static void 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 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 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 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 calculateLayout (yoga::Node *const node, const float ownerWidth, const float ownerHeight, const Direction ownerDirection)
 
bool isRow (const FlexDirection flexDirection)
 
bool isColumn (const FlexDirection flexDirection)
 
FlexDirection resolveDirection (const FlexDirection flexDirection, const Direction direction)
 
FlexDirection resolveCrossDirection (const FlexDirection flexDirection, const Direction direction)
 
PhysicalEdge flexStartEdge (FlexDirection flexDirection)
 
PhysicalEdge flexEndEdge (FlexDirection flexDirection)
 
PhysicalEdge inlineStartEdge (FlexDirection flexDirection, Direction direction)
 
PhysicalEdge inlineEndEdge (FlexDirection flexDirection, Direction direction)
 
Dimension dimension (FlexDirection flexDirection)
 
FlexLine calculateFlexLine (yoga::Node *const node, const Direction ownerDirection, const float ownerWidth, const float mainAxisOwnerSize, const float availableInnerWidth, const float availableInnerMainDim, Node::LayoutableChildren::Iterator &iterator, const size_t lineCount)
 
float roundValueToPixelGrid (const double value, const double pointScaleFactor, const bool forceCeil, const bool forceFloor)
 
void roundLayoutResultsToPixelGrid (yoga::Node *const node, const double absoluteLeft, const double absoluteTop)
 
MeasureMode measureMode (SizingMode mode)
 
SizingMode sizingMode (MeasureMode mode)
 
float getPositionOfOppositeEdge (float position, FlexDirection axis, const yoga::Node *const containingNode, const yoga::Node *const node)
 
void setChildTrailingPosition (const yoga::Node *const node, yoga::Node *const child, const FlexDirection axis)
 
bool needsTrailingPosition (const FlexDirection axis)
 
bool configUpdateInvalidatesLayout (const Config &oldConfig, const Config &newConfig)
 
ConfigresolveRef (const YGConfigRef ref)
 
void fatalWithMessage (const char *message)
 
void assertFatal (const bool condition, const char *message)
 
void assertFatalWithNode (const yoga::Node *const node, const bool condition, const char *message)
 
void assertFatalWithConfig (const yoga::Config *const config, const bool condition, const char *message)
 
void log (LogLevel level, const char *format,...) noexcept
 
void log (const yoga::Node *node, LogLevel level, const char *format,...) noexcept
 
void log (const yoga::Config *config, LogLevel level, const char *format,...) noexcept
 
YGLogger getDefaultLogger ()
 
template<>
constexpr int32_t ordinalCount< Align > ()
 
constexpr Align scopedEnum (YGAlign unscoped)
 
constexpr YGAlign unscopedEnum (Align scoped)
 
const char * toString (Align e)
 
template<>
constexpr int32_t ordinalCount< BoxSizing > ()
 
constexpr BoxSizing scopedEnum (YGBoxSizing unscoped)
 
constexpr YGBoxSizing unscopedEnum (BoxSizing scoped)
 
const char * toString (BoxSizing e)
 
template<>
constexpr int32_t ordinalCount< Dimension > ()
 
constexpr Dimension scopedEnum (YGDimension unscoped)
 
constexpr YGDimension unscopedEnum (Dimension scoped)
 
const char * toString (Dimension e)
 
template<>
constexpr int32_t ordinalCount< Direction > ()
 
constexpr Direction scopedEnum (YGDirection unscoped)
 
constexpr YGDirection unscopedEnum (Direction scoped)
 
const char * toString (Direction e)
 
template<>
constexpr int32_t ordinalCount< Display > ()
 
constexpr Display scopedEnum (YGDisplay unscoped)
 
constexpr YGDisplay unscopedEnum (Display scoped)
 
const char * toString (Display e)
 
template<>
constexpr int32_t ordinalCount< Edge > ()
 
constexpr Edge scopedEnum (YGEdge unscoped)
 
constexpr YGEdge unscopedEnum (Edge scoped)
 
const char * toString (Edge e)
 
constexpr Errata scopedEnum (YGErrata unscoped)
 
constexpr YGErrata unscopedEnum (Errata scoped)
 
const char * toString (Errata e)
 
template<>
constexpr int32_t ordinalCount< ExperimentalFeature > ()
 
constexpr ExperimentalFeature scopedEnum (YGExperimentalFeature unscoped)
 
constexpr YGExperimentalFeature unscopedEnum (ExperimentalFeature scoped)
 
const char * toString (ExperimentalFeature e)
 
template<>
constexpr int32_t ordinalCount< FlexDirection > ()
 
constexpr FlexDirection scopedEnum (YGFlexDirection unscoped)
 
constexpr YGFlexDirection unscopedEnum (FlexDirection scoped)
 
const char * toString (FlexDirection e)
 
template<>
constexpr int32_t ordinalCount< GridTrackType > ()
 
constexpr GridTrackType scopedEnum (YGGridTrackType unscoped)
 
constexpr YGGridTrackType unscopedEnum (GridTrackType scoped)
 
const char * toString (GridTrackType e)
 
template<>
constexpr int32_t ordinalCount< Gutter > ()
 
constexpr Gutter scopedEnum (YGGutter unscoped)
 
constexpr YGGutter unscopedEnum (Gutter scoped)
 
const char * toString (Gutter e)
 
template<>
constexpr int32_t ordinalCount< Justify > ()
 
constexpr Justify scopedEnum (YGJustify unscoped)
 
constexpr YGJustify unscopedEnum (Justify scoped)
 
const char * toString (Justify e)
 
template<>
constexpr int32_t ordinalCount< LogLevel > ()
 
constexpr LogLevel scopedEnum (YGLogLevel unscoped)
 
constexpr YGLogLevel unscopedEnum (LogLevel scoped)
 
const char * toString (LogLevel e)
 
template<>
constexpr int32_t ordinalCount< MeasureMode > ()
 
constexpr MeasureMode scopedEnum (YGMeasureMode unscoped)
 
constexpr YGMeasureMode unscopedEnum (MeasureMode scoped)
 
const char * toString (MeasureMode e)
 
template<>
constexpr int32_t ordinalCount< NodeType > ()
 
constexpr NodeType scopedEnum (YGNodeType unscoped)
 
constexpr YGNodeType unscopedEnum (NodeType scoped)
 
const char * toString (NodeType e)
 
template<>
constexpr int32_t ordinalCount< Overflow > ()
 
constexpr Overflow scopedEnum (YGOverflow unscoped)
 
constexpr YGOverflow unscopedEnum (Overflow scoped)
 
const char * toString (Overflow e)
 
template<>
constexpr int32_t ordinalCount< PositionType > ()
 
constexpr PositionType scopedEnum (YGPositionType unscoped)
 
constexpr YGPositionType unscopedEnum (PositionType scoped)
 
const char * toString (PositionType e)
 
template<>
constexpr int32_t ordinalCount< Unit > ()
 
constexpr Unit scopedEnum (YGUnit unscoped)
 
constexpr YGUnit unscopedEnum (Unit scoped)
 
const char * toString (Unit e)
 
template<>
constexpr int32_t ordinalCount< Wrap > ()
 
constexpr Wrap scopedEnum (YGWrap unscoped)
 
constexpr YGWrap unscopedEnum (Wrap scoped)
 
const char * toString (Wrap e)
 
template<Enumeration EnumT>
constexpr int32_t ordinalCount ()
 
template<HasOrdinality EnumT>
constexpr int32_t bitCount ()
 
constexpr auto to_underlying (Enumeration auto e) noexcept
 
template<HasOrdinality EnumT>
auto ordinals ()
 
const char * LayoutPassReasonToString (const LayoutPassReason value)
 
Node * resolveRef (const YGNodeRef ref)
 
const Node * resolveRef (const YGNodeConstRef ref)
 
constexpr bool isUndefined (std::floating_point auto value)
 
constexpr bool isDefined (std::floating_point auto value)
 
constexpr bool isinf (auto value)
 
constexpr auto maxOrDefined (std::floating_point auto a, std::floating_point auto b)
 
constexpr auto minOrDefined (std::floating_point auto a, std::floating_point auto b)
 
bool inexactEquals (float a, float b)
 
bool inexactEquals (double a, double b)
 
template<std::size_t Size, typename ElementT >
bool inexactEquals (const std::array< ElementT, Size > &val1, const std::array< ElementT, Size > &val2)
 
constexpr bool operator== (FloatOptional lhs, FloatOptional rhs)
 
constexpr bool operator== (FloatOptional lhs, float rhs)
 
constexpr bool operator== (float lhs, FloatOptional rhs)
 
constexpr FloatOptional operator+ (FloatOptional lhs, FloatOptional rhs)
 
constexpr bool operator> (FloatOptional lhs, FloatOptional rhs)
 
constexpr bool operator< (FloatOptional lhs, FloatOptional rhs)
 
constexpr bool operator>= (FloatOptional lhs, FloatOptional rhs)
 
constexpr bool operator<= (FloatOptional lhs, FloatOptional rhs)
 
constexpr FloatOptional maxOrDefined (FloatOptional lhs, FloatOptional rhs)
 
bool inexactEquals (FloatOptional lhs, FloatOptional rhs)
 
bool inexactEquals (const StyleLength &a, const StyleLength &b)
 
bool inexactEquals (const StyleSizeLength &a, const StyleSizeLength &b)
 

变量

constexpr uint32_t kNumRepetitions = 100
 
constexpr size_t kBufferSize = 4
 

类型定义说明

◆ ExperimentalFeatureSet

◆ GridTrackList

◆ SerializedMeasureFuncMap

初始值:
std::unordered_map<YGNodeConstRef, std::vector<SerializedMeasureFunc>>

◆ SteadyClockDurations

初始值:
std::array<steady_clock::duration, kNumRepetitions>

枚举类型说明

◆ Align

enum class facebook::yoga::Align : uint8_t
strong
枚举值
Auto 
FlexStart 
Center 
FlexEnd 
Stretch 
Baseline 
SpaceBetween 
SpaceAround 
SpaceEvenly 
Start 
End 

◆ BoxSizing

enum class facebook::yoga::BoxSizing : uint8_t
strong
枚举值
BorderBox 
ContentBox 

◆ Dimension

enum class facebook::yoga::Dimension : uint8_t
strong
枚举值
Width 
Height 

◆ Direction

enum class facebook::yoga::Direction : uint8_t
strong
枚举值
Inherit 
LTR 
RTL 

◆ Display

enum class facebook::yoga::Display : uint8_t
strong
枚举值
Flex 
None 
Contents 
Grid 

◆ Edge

enum class facebook::yoga::Edge : uint8_t
strong
枚举值
Left 
Top 
Right 
Bottom 
Start 
End 
Horizontal 
Vertical 
All 

◆ Errata

enum class facebook::yoga::Errata : uint32_t
strong
枚举值
None 
StretchFlexBasis 
AbsolutePositionWithoutInsetsExcludesPadding 
AbsolutePercentAgainstInnerSize 
All 
Classic 

◆ ExperimentalFeature

enum class facebook::yoga::ExperimentalFeature : uint8_t
strong
枚举值
WebFlexBasis 
FixFlexBasisFitContent 

◆ FlexDirection

enum class facebook::yoga::FlexDirection : uint8_t
strong
枚举值
Column 
ColumnReverse 
Row 
RowReverse 

◆ GridLineType

enum class facebook::yoga::GridLineType : uint8_t
strong
枚举值
Auto 
Integer 
Span 

◆ GridTrackType

enum class facebook::yoga::GridTrackType : uint8_t
strong
枚举值
Auto 
Points 
Percent 
Fr 
Minmax 

◆ Gutter

enum class facebook::yoga::Gutter : uint8_t
strong
枚举值
Column 
Row 
All 

◆ Justify

enum class facebook::yoga::Justify : uint8_t
strong
枚举值
Auto 
FlexStart 
Center 
FlexEnd 
SpaceBetween 
SpaceAround 
SpaceEvenly 
Stretch 
Start 
End 

◆ LayoutPassReason

enum struct facebook::yoga::LayoutPassReason : int
strong
枚举值
kInitial 
kAbsLayout 
kStretch 
kMultilineStretch 
kFlexLayout 
kMeasureChild 
kAbsMeasureChild 
kFlexMeasure 
kGridLayout 
COUNT 

◆ LayoutType

enum struct facebook::yoga::LayoutType : int
strong
枚举值
kLayout 
kMeasure 
kCachedLayout 
kCachedMeasure 

◆ LogLevel

enum class facebook::yoga::LogLevel : uint8_t
strong
枚举值
Error 
Warn 
Info 
Debug 
Verbose 
Fatal 

◆ MeasureMode

enum class facebook::yoga::MeasureMode : uint8_t
strong
枚举值
Undefined 
Exactly 
AtMost 

◆ NodeType

enum class facebook::yoga::NodeType : uint8_t
strong
枚举值
Default 
Text 

◆ Overflow

enum class facebook::yoga::Overflow : uint8_t
strong
枚举值
Visible 
Hidden 
Scroll 

◆ PhysicalEdge

enum class facebook::yoga::PhysicalEdge : uint32_t
strong
枚举值
Left 
Top 
Right 
Bottom 

◆ PositionType

enum class facebook::yoga::PositionType : uint8_t
strong
枚举值
Static 
Relative 
Absolute 

◆ PrintOptions

enum class facebook::yoga::PrintOptions : uint8_t
strong
枚举值
Layout 
Children 
Style 
Config 
Node 

◆ SizingMode

enum class facebook::yoga::SizingMode
strong

Corresponds to a CSS auto box sizes. Missing "min-content", as Yoga does not current support automatic minimum sizes. https://www.w3.org/TR/css-sizing-3/#auto-box-sizes https://www.w3.org/TR/css-flexbox-1/#min-size-auto

枚举值
StretchFit 

The size a box would take if its outer size filled the available space in the given axis; in other words, the stretch fit into the available space, if that is definite. Undefined if the available space is indefinite.

MaxContent 

A box’s “ideal” size in a given axis when given infinite available space. Usually this is the smallest size the box could take in that axis while still fitting around its contents, i.e. minimizing unfilled space while avoiding overflow.

FitContent 

If the available space in a given axis is definite, equal to clamp(min-content size, stretch-fit size, max-content size) (i.e. max(min-content size, min(max-content size, stretch-fit size))). When sizing under a min-content constraint, equal to the min-content size. Otherwise, equal to the max-content size in that axis.

◆ Unit

enum class facebook::yoga::Unit : uint8_t
strong
枚举值
Undefined 
Point 
Percent 
Auto 
MaxContent 
FitContent 
Stretch 

◆ Wrap

enum class facebook::yoga::Wrap : uint8_t
strong
枚举值
NoWrap 
Wrap 
WrapReverse 

函数说明

◆ alignAbsoluteChild()

static void facebook::yoga::alignAbsoluteChild ( const yoga::Node *const parent,
yoga::Node * child,
const Direction direction,
const FlexDirection crossAxis,
const float containingBlockWidth )
static
函数调用图:
这是这个函数的调用关系图:

◆ alignFromString()

YGAlign facebook::yoga::alignFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ appendBoolIfNotDefault()

static void facebook::yoga::appendBoolIfNotDefault ( json & j,
std::string_view key,
bool value,
bool defaultValue )
static
这是这个函数的调用关系图:

◆ appendEdges()

template<auto Field>
static void facebook::yoga::appendEdges ( json & j,
const std::string & key,
YGNodeRef node,
YGNodeRef defaultNode )
static
函数调用图:

◆ appendEnumValueIfNotDefault()

static void facebook::yoga::appendEnumValueIfNotDefault ( json & j,
std::string_view key,
std::string_view value,
std::string_view defaultValue )
static
这是这个函数的调用关系图:

◆ appendFloatIfNotDefault()

static void facebook::yoga::appendFloatIfNotDefault ( json & j,
std::string_view key,
float num,
float defaultNum )
static
函数调用图:
这是这个函数的调用关系图:

◆ appendYGValueIfNotDefault()

static void facebook::yoga::appendYGValueIfNotDefault ( json & j,
std::string_view key,
const YGValue & value,
const YGValue & defaultValue )
static
这是这个函数的调用关系图:

◆ assertFatal()

void facebook::yoga::assertFatal ( const bool condition,
const char * message )
函数调用图:
这是这个函数的调用关系图:

◆ assertFatalWithConfig()

void facebook::yoga::assertFatalWithConfig ( const yoga::Config *const config,
const bool condition,
const char * message )
函数调用图:
这是这个函数的调用关系图:

◆ assertFatalWithNode()

void facebook::yoga::assertFatalWithNode ( const yoga::Node *const node,
const bool condition,
const char * message )
函数调用图:
这是这个函数的调用关系图:

◆ benchmark()

void facebook::yoga::benchmark ( std::filesystem::path & capturesDir)
函数调用图:
这是这个函数的调用关系图:

◆ bitCount()

template<HasOrdinality EnumT>
constexpr int32_t facebook::yoga::bitCount ( )
constexpr

Count of bits needed to represent every ordinal

◆ borderFloatToYGValue()

static YGValue facebook::yoga::borderFloatToYGValue ( YGNodeRef node,
YGEdge edge )
static
函数调用图:

◆ boundAxis()

float facebook::yoga::boundAxis ( const yoga::Node *const node,
const FlexDirection axis,
const Direction direction,
const float value,
const float axisSize,
const float widthSize )
inline
函数调用图:
这是这个函数的调用关系图:

◆ boundAxisWithinMinAndMax()

FloatOptional facebook::yoga::boundAxisWithinMinAndMax ( const yoga::Node *const node,
const Direction direction,
const FlexDirection axis,
const FloatOptional value,
const float axisSize,
const float widthSize )
inline
函数调用图:
这是这个函数的调用关系图:

◆ buildConfigFromJson()

std::shared_ptr< const YGConfig > facebook::yoga::buildConfigFromJson ( const json & j)
函数调用图:
这是这个函数的调用关系图:

◆ buildNodeFromJson()

std::shared_ptr< YGNode > facebook::yoga::buildNodeFromJson ( const json & j,
std::shared_ptr< const YGConfig > config,
std::shared_ptr< SerializedMeasureFuncMap > fns )
函数调用图:
这是这个函数的调用关系图:

◆ buildTreeFromJson()

std::shared_ptr< YogaNodeAndConfig > facebook::yoga::buildTreeFromJson ( const json & j,
std::shared_ptr< SerializedMeasureFuncMap > fns,
std::shared_ptr< YogaNodeAndConfig > parent,
size_t index )
函数调用图:
这是这个函数的调用关系图:

◆ calculateAvailableInnerDimension()

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 )
函数调用图:
这是这个函数的调用关系图:

◆ calculateBaseline()

float facebook::yoga::calculateBaseline ( const yoga::Node * node)
函数调用图:
这是这个函数的调用关系图:

◆ calculateFlexLine()

FlexLine facebook::yoga::calculateFlexLine ( yoga::Node *const node,
const Direction ownerDirection,
const float ownerWidth,
const float mainAxisOwnerSize,
const float availableInnerWidth,
const float availableInnerMainDim,
Node::LayoutableChildren::Iterator & iterator,
const size_t lineCount )
函数调用图:
这是这个函数的调用关系图:

◆ calculateLayout()

void facebook::yoga::calculateLayout ( yoga::Node *const node,
const float ownerWidth,
const float ownerHeight,
const Direction ownerDirection )
函数调用图:
这是这个函数的调用关系图:

◆ calculateLayoutImpl()

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 )
static
函数调用图:
这是这个函数的调用关系图:

◆ calculateLayoutInternal()

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 )
函数调用图:
这是这个函数的调用关系图:

◆ canUseCachedMeasurement()

bool facebook::yoga::canUseCachedMeasurement ( const SizingMode widthMode,
const float availableWidth,
const SizingMode heightMode,
const float availableHeight,
const SizingMode lastWidthMode,
const float lastAvailableWidth,
const SizingMode lastHeightMode,
const float lastAvailableHeight,
const float lastComputedWidth,
const float lastComputedHeight,
const float marginRow,
const float marginColumn,
const yoga::Config *const config )
函数调用图:
这是这个函数的调用关系图:

◆ captureMeasureFunc()

void facebook::yoga::captureMeasureFunc ( YGNodeConstRef node,
float width,
YGMeasureMode widthMode,
float height,
YGMeasureMode heightMode,
YGSize output,
std::chrono::steady_clock::duration durationNs )
函数调用图:

◆ captureTree()

static void facebook::yoga::captureTree ( std::string_view serializedTree,
const std::filesystem::path & path )
static
这是这个函数的调用关系图:

◆ cleanupContentsNodesRecursively()

void facebook::yoga::cleanupContentsNodesRecursively ( yoga::Node *const node)
函数调用图:
这是这个函数的调用关系图:

◆ computeFlexBasisForChild()

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
函数调用图:
这是这个函数的调用关系图:

◆ computeFlexBasisForChildren()

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
函数调用图:
这是这个函数的调用关系图:

◆ configUpdateInvalidatesLayout()

bool facebook::yoga::configUpdateInvalidatesLayout ( const Config & oldConfig,
const Config & newConfig )
函数调用图:
这是这个函数的调用关系图:

◆ constrainMaxSizeForMode()

void facebook::yoga::constrainMaxSizeForMode ( const yoga::Node * node,
Direction direction,
FlexDirection axis,
float ownerAxisSize,
float ownerWidth,
SizingMode * mode,
float * size )
函数调用图:
这是这个函数的调用关系图:

◆ currentSerializedMeasureFuncMap()

static SerializedMeasureFuncMap & facebook::yoga::currentSerializedMeasureFuncMap ( )
static
这是这个函数的调用关系图:

◆ defaultMeasureFunctionResult()

YGSize facebook::yoga::defaultMeasureFunctionResult ( )
这是这个函数的调用关系图:

◆ dimension()

Dimension facebook::yoga::dimension ( FlexDirection flexDirection)
inline
函数调用图:
这是这个函数的调用关系图:

◆ directionFromString()

YGDirection facebook::yoga::directionFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ dirtyTree()

static void facebook::yoga::dirtyTree ( YGNodeRef node)
static
函数调用图:
这是这个函数的调用关系图:

◆ displayFromString()

YGDisplay facebook::yoga::displayFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ distributeFreeSpaceFirstPass()

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
函数调用图:
这是这个函数的调用关系图:

◆ distributeFreeSpaceSecondPass()

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
函数调用图:
这是这个函数的调用关系图:

◆ edgeFromString()

YGEdge facebook::yoga::edgeFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ edgeStringFromPropertyName() [1/2]

std::string facebook::yoga::edgeStringFromPropertyName ( const json::iterator & it,
const std::string & propertyName )

◆ edgeStringFromPropertyName() [2/2]

std::string facebook::yoga::edgeStringFromPropertyName ( const std::string & key,
const std::string & propertyName )
这是这个函数的调用关系图:

◆ errataFromString()

YGErrata facebook::yoga::errataFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ experimentalFeatureFromString()

YGExperimentalFeature facebook::yoga::experimentalFeatureFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ fallbackAlignment() [1/2]

constexpr Align facebook::yoga::fallbackAlignment ( Align align)
constexpr

Fallback alignment to use on overflow https://www.w3.org/TR/css-align-3/#distribution-values

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

◆ fallbackAlignment() [2/2]

constexpr Justify facebook::yoga::fallbackAlignment ( Justify align)
constexpr

Fallback alignment to use on overflow https://www.w3.org/TR/css-align-3/#distribution-values

◆ fatalWithMessage()

void facebook::yoga::fatalWithMessage ( const char * message)
这是这个函数的调用关系图:

◆ flexDirectionFromString()

YGFlexDirection facebook::yoga::flexDirectionFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ flexEndEdge()

PhysicalEdge facebook::yoga::flexEndEdge ( FlexDirection flexDirection)
inline
函数调用图:
这是这个函数的调用关系图:

◆ flexStartEdge()

PhysicalEdge facebook::yoga::flexStartEdge ( FlexDirection flexDirection)
inline
函数调用图:
这是这个函数的调用关系图:

◆ floatFromJson()

static float facebook::yoga::floatFromJson ( json & j)
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ gCurrentGenerationCount()

std::atomic< uint32_t > facebook::yoga::gCurrentGenerationCount ( 0 )
这是这个函数的调用关系图:

◆ generateBenchmark()

BenchmarkResult facebook::yoga::generateBenchmark ( json & capture)
函数调用图:
这是这个函数的调用关系图:

◆ getDefaultLogger()

YGLogger facebook::yoga::getDefaultLogger ( )
这是这个函数的调用关系图:

◆ getPositionOfOppositeEdge()

float facebook::yoga::getPositionOfOppositeEdge ( float position,
FlexDirection axis,
const yoga::Node *const containingNode,
const yoga::Node *const node )
inline
函数调用图:
这是这个函数的调用关系图:

◆ inexactEquals() [1/6]

template<std::size_t Size, typename ElementT >
bool facebook::yoga::inexactEquals ( const std::array< ElementT, Size > & val1,
const std::array< ElementT, Size > & val2 )
函数调用图:

◆ inexactEquals() [2/6]

bool facebook::yoga::inexactEquals ( const StyleLength & a,
const StyleLength & b )
inline
函数调用图:

◆ inexactEquals() [3/6]

bool facebook::yoga::inexactEquals ( const StyleSizeLength & a,
const StyleSizeLength & b )
inline
函数调用图:

◆ inexactEquals() [4/6]

bool facebook::yoga::inexactEquals ( double a,
double b )
inline
函数调用图:

◆ inexactEquals() [5/6]

bool facebook::yoga::inexactEquals ( float a,
float b )
inline
函数调用图:
这是这个函数的调用关系图:

◆ inexactEquals() [6/6]

bool facebook::yoga::inexactEquals ( FloatOptional lhs,
FloatOptional rhs )
inline
函数调用图:

◆ inlineEndEdge()

PhysicalEdge facebook::yoga::inlineEndEdge ( FlexDirection flexDirection,
Direction direction )
inline
函数调用图:
这是这个函数的调用关系图:

◆ inlineStartEdge()

PhysicalEdge facebook::yoga::inlineStartEdge ( FlexDirection flexDirection,
Direction direction )
inline
函数调用图:
这是这个函数的调用关系图:

◆ inputsMatch()

static bool facebook::yoga::inputsMatch ( float actualWidth,
float expectedWidth,
float actualHeight,
float expectedHeight,
YGMeasureMode actualWidthMode,
YGMeasureMode expectedWidthMode,
YGMeasureMode actualHeightMode,
YGMeasureMode expectedHeightMode )
static
函数调用图:
这是这个函数的调用关系图:

◆ invalidArgumentMessage()

static std::string facebook::yoga::invalidArgumentMessage ( const std::string & arg,
const std::string & enumName )
inlinestatic
这是这个函数的调用关系图:

◆ isAuto()

static bool facebook::yoga::isAuto ( json & j)
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ isBaselineLayout()

bool facebook::yoga::isBaselineLayout ( const yoga::Node * node)
函数调用图:
这是这个函数的调用关系图:

◆ isColumn()

bool facebook::yoga::isColumn ( const FlexDirection flexDirection)
inline
这是这个函数的调用关系图:

◆ isDefined()

constexpr bool facebook::yoga::isDefined ( std::floating_point auto value)
constexpr
函数调用图:
这是这个函数的调用关系图:

◆ isFixedSize()

bool facebook::yoga::isFixedSize ( float dim,
SizingMode sizingMode )
inline
函数调用图:
这是这个函数的调用关系图:

◆ isinf()

constexpr bool facebook::yoga::isinf ( auto value)
constexpr

Constexpr version of std::isinf before C++ 23

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

◆ isRow()

bool facebook::yoga::isRow ( const FlexDirection flexDirection)
inline
这是这个函数的调用关系图:

◆ isUndefined() [1/2]

static bool facebook::yoga::isUndefined ( json & j)
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ isUndefined() [2/2]

constexpr bool facebook::yoga::isUndefined ( std::floating_point auto value)
constexpr

◆ justifyAbsoluteChild()

static void facebook::yoga::justifyAbsoluteChild ( const yoga::Node *const parent,
yoga::Node * child,
const Direction direction,
const FlexDirection mainAxis,
const float containingBlockWidth )
static
函数调用图:
这是这个函数的调用关系图:

◆ justifyContentFromString()

YGJustify facebook::yoga::justifyContentFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ justifyMainAxis()

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
函数调用图:
这是这个函数的调用关系图:

◆ layoutAbsoluteChild()

void facebook::yoga::layoutAbsoluteChild ( const yoga::Node *const containingNode,
const yoga::Node *const node,
yoga::Node *const child,
const float containingBlockWidth,
const float containingBlockHeight,
const SizingMode widthMode,
const Direction direction,
LayoutData & layoutMarkerData,
const uint32_t depth,
const uint32_t generationCount )
函数调用图:
这是这个函数的调用关系图:

◆ layoutAbsoluteDescendants()

bool facebook::yoga::layoutAbsoluteDescendants ( yoga::Node * containingNode,
yoga::Node * currentNode,
SizingMode widthSizingMode,
Direction currentNodeDirection,
LayoutData & layoutMarkerData,
uint32_t currentDepth,
uint32_t generationCount,
float currentNodeLeftOffsetFromContainingBlock,
float currentNodeTopOffsetFromContainingBlock,
float containingNodeAvailableInnerWidth,
float containingNodeAvailableInnerHeight )
函数调用图:
这是这个函数的调用关系图:

◆ LayoutPassReasonToString()

const char * facebook::yoga::LayoutPassReasonToString ( const LayoutPassReason value)

◆ log() [1/3]

void facebook::yoga::log ( const yoga::Config * config,
LogLevel level,
const char * format,
... )
noexcept

◆ log() [2/3]

void facebook::yoga::log ( const yoga::Node * node,
LogLevel level,
const char * format,
... )
noexcept

◆ log() [3/3]

void facebook::yoga::log ( LogLevel level,
const char * format,
... )
noexcept
这是这个函数的调用关系图:

◆ maxOrDefined() [1/2]

constexpr FloatOptional facebook::yoga::maxOrDefined ( FloatOptional lhs,
FloatOptional rhs )
constexpr
函数调用图:

◆ maxOrDefined() [2/2]

constexpr auto facebook::yoga::maxOrDefined ( std::floating_point auto a,
std::floating_point auto b )
constexpr
函数调用图:
这是这个函数的调用关系图:

◆ measureMode()

MeasureMode facebook::yoga::measureMode ( SizingMode mode)
inline
函数调用图:
这是这个函数的调用关系图:

◆ measureModeFromString()

YGMeasureMode facebook::yoga::measureModeFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ measureNodeWithFixedSize()

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 )
static
函数调用图:
这是这个函数的调用关系图:

◆ measureNodeWithMeasureFunc()

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
函数调用图:
这是这个函数的调用关系图:

◆ measureNodeWithoutChildren()

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 )
static
函数调用图:
这是这个函数的调用关系图:

◆ minOrDefined()

constexpr auto facebook::yoga::minOrDefined ( std::floating_point auto a,
std::floating_point auto b )
constexpr
函数调用图:
这是这个函数的调用关系图:

◆ mockMeasureFunc()

YGSize facebook::yoga::mockMeasureFunc ( YGNodeConstRef node,
float availableWidth,
YGMeasureMode widthMode,
float availableHeight,
YGMeasureMode heightMode )
函数调用图:
这是这个函数的调用关系图:

◆ needsTrailingPosition()

bool facebook::yoga::needsTrailingPosition ( const FlexDirection axis)
inline
这是这个函数的调用关系图:

◆ newSizeIsStricterAndStillValid()

static bool facebook::yoga::newSizeIsStricterAndStillValid ( SizingMode sizeMode,
float size,
SizingMode lastSizeMode,
float lastSize,
float lastComputedSize )
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ oldSizeIsMaxContentAndStillFits()

static bool facebook::yoga::oldSizeIsMaxContentAndStillFits ( SizingMode sizeMode,
float size,
SizingMode lastSizeMode,
float lastComputedSize )
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ operator+()

constexpr FloatOptional facebook::yoga::operator+ ( FloatOptional lhs,
FloatOptional rhs )
constexpr
函数调用图:

◆ operator<()

constexpr bool facebook::yoga::operator< ( FloatOptional lhs,
FloatOptional rhs )
constexpr
函数调用图:

◆ operator<=()

constexpr bool facebook::yoga::operator<= ( FloatOptional lhs,
FloatOptional rhs )
constexpr

◆ operator==() [1/3]

constexpr bool facebook::yoga::operator== ( float lhs,
FloatOptional rhs )
constexpr

◆ operator==() [2/3]

constexpr bool facebook::yoga::operator== ( FloatOptional lhs,
float rhs )
constexpr

◆ operator==() [3/3]

constexpr bool facebook::yoga::operator== ( FloatOptional lhs,
FloatOptional rhs )
constexpr
函数调用图:

◆ operator>()

constexpr bool facebook::yoga::operator> ( FloatOptional lhs,
FloatOptional rhs )
constexpr
函数调用图:

◆ operator>=()

constexpr bool facebook::yoga::operator>= ( FloatOptional lhs,
FloatOptional rhs )
constexpr

◆ ordinalCount()

template<Enumeration EnumT>
constexpr int32_t facebook::yoga::ordinalCount ( )
constexpr

Count of ordinals in a Yoga enum which is sequential

◆ ordinalCount< Align >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Align > ( )
constexpr

◆ ordinalCount< BoxSizing >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< BoxSizing > ( )
constexpr

◆ ordinalCount< Dimension >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Dimension > ( )
constexpr

◆ ordinalCount< Direction >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Direction > ( )
constexpr

◆ ordinalCount< Display >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Display > ( )
constexpr

◆ ordinalCount< Edge >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Edge > ( )
constexpr

◆ ordinalCount< ExperimentalFeature >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< ExperimentalFeature > ( )
constexpr

◆ ordinalCount< FlexDirection >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< FlexDirection > ( )
constexpr

◆ ordinalCount< GridTrackType >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< GridTrackType > ( )
constexpr

◆ ordinalCount< Gutter >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Gutter > ( )
constexpr

◆ ordinalCount< Justify >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Justify > ( )
constexpr

◆ ordinalCount< LogLevel >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< LogLevel > ( )
constexpr

◆ ordinalCount< MeasureMode >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< MeasureMode > ( )
constexpr

◆ ordinalCount< NodeType >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< NodeType > ( )
constexpr

◆ ordinalCount< Overflow >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Overflow > ( )
constexpr

◆ ordinalCount< PositionType >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< PositionType > ( )
constexpr

◆ ordinalCount< Unit >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Unit > ( )
constexpr

◆ ordinalCount< Wrap >()

template<>
constexpr int32_t facebook::yoga::ordinalCount< Wrap > ( )
constexpr

◆ ordinals()

template<HasOrdinality EnumT>
auto facebook::yoga::ordinals ( )

Convenience function to iterate through every value in a Yoga enum as part of a range-based for loop.

函数调用图:

◆ overflowFromString()

YGOverflow facebook::yoga::overflowFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ paddingAndBorderForAxis()

float facebook::yoga::paddingAndBorderForAxis ( const yoga::Node *const node,
const FlexDirection axis,
const Direction direction,
const float widthSize )
inline
这是这个函数的调用关系图:

◆ positionAbsoluteChild()

static void facebook::yoga::positionAbsoluteChild ( const yoga::Node *const containingNode,
const yoga::Node *const parent,
yoga::Node * child,
const Direction direction,
const FlexDirection axis,
const bool isMainAxis,
const float containingBlockWidth,
const float containingBlockHeight )
static
函数调用图:
这是这个函数的调用关系图:

◆ positionTypeFromString()

YGPositionType facebook::yoga::positionTypeFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ printBenchmarkResult()

static void facebook::yoga::printBenchmarkResult ( const std::string & name,
SteadyClockDurations & durations )
static
这是这个函数的调用关系图:

◆ resolveChildAlignment()

Align facebook::yoga::resolveChildAlignment ( const yoga::Node * node,
const yoga::Node * child )
inline
函数调用图:
这是这个函数的调用关系图:

◆ resolveChildJustification()

Justify facebook::yoga::resolveChildJustification ( const yoga::Node * node,
const yoga::Node * child )
inline
这是这个函数的调用关系图:

◆ resolveCrossDirection()

FlexDirection facebook::yoga::resolveCrossDirection ( const FlexDirection flexDirection,
const Direction direction )
inline
函数调用图:
这是这个函数的调用关系图:

◆ resolveDirection()

FlexDirection facebook::yoga::resolveDirection ( const FlexDirection flexDirection,
const Direction direction )
inline
这是这个函数的调用关系图:

◆ resolveFlexibleLength()

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
函数调用图:
这是这个函数的调用关系图:

◆ resolveRef() [1/3]

const Config * facebook::yoga::resolveRef ( const YGConfigRef ref)
inline

◆ resolveRef() [2/3]

const Node * facebook::yoga::resolveRef ( const YGNodeConstRef ref)
inline

◆ resolveRef() [3/3]

Node * facebook::yoga::resolveRef ( const YGNodeRef ref)
inline

◆ roundLayoutResultsToPixelGrid()

void facebook::yoga::roundLayoutResultsToPixelGrid ( yoga::Node *const node,
const double absoluteLeft,
const double absoluteTop )
函数调用图:
这是这个函数的调用关系图:

◆ roundValueToPixelGrid()

float facebook::yoga::roundValueToPixelGrid ( const double value,
const double pointScaleFactor,
const bool forceCeil,
const bool forceFloor )
函数调用图:
这是这个函数的调用关系图:

◆ scopedEnum() [1/19]

constexpr Align facebook::yoga::scopedEnum ( YGAlign unscoped)
constexpr
这是这个函数的调用关系图:

◆ scopedEnum() [2/19]

constexpr BoxSizing facebook::yoga::scopedEnum ( YGBoxSizing unscoped)
constexpr

◆ scopedEnum() [3/19]

constexpr Dimension facebook::yoga::scopedEnum ( YGDimension unscoped)
constexpr

◆ scopedEnum() [4/19]

constexpr Direction facebook::yoga::scopedEnum ( YGDirection unscoped)
constexpr

◆ scopedEnum() [5/19]

constexpr Display facebook::yoga::scopedEnum ( YGDisplay unscoped)
constexpr

◆ scopedEnum() [6/19]

constexpr Edge facebook::yoga::scopedEnum ( YGEdge unscoped)
constexpr

◆ scopedEnum() [7/19]

constexpr Errata facebook::yoga::scopedEnum ( YGErrata unscoped)
constexpr

◆ scopedEnum() [8/19]

constexpr ExperimentalFeature facebook::yoga::scopedEnum ( YGExperimentalFeature unscoped)
constexpr

◆ scopedEnum() [9/19]

constexpr FlexDirection facebook::yoga::scopedEnum ( YGFlexDirection unscoped)
constexpr

◆ scopedEnum() [10/19]

constexpr GridTrackType facebook::yoga::scopedEnum ( YGGridTrackType unscoped)
constexpr

◆ scopedEnum() [11/19]

constexpr Gutter facebook::yoga::scopedEnum ( YGGutter unscoped)
constexpr

◆ scopedEnum() [12/19]

constexpr Justify facebook::yoga::scopedEnum ( YGJustify unscoped)
constexpr

◆ scopedEnum() [13/19]

constexpr LogLevel facebook::yoga::scopedEnum ( YGLogLevel unscoped)
constexpr

◆ scopedEnum() [14/19]

constexpr MeasureMode facebook::yoga::scopedEnum ( YGMeasureMode unscoped)
constexpr

◆ scopedEnum() [15/19]

constexpr NodeType facebook::yoga::scopedEnum ( YGNodeType unscoped)
constexpr

◆ scopedEnum() [16/19]

constexpr Overflow facebook::yoga::scopedEnum ( YGOverflow unscoped)
constexpr

◆ scopedEnum() [17/19]

constexpr PositionType facebook::yoga::scopedEnum ( YGPositionType unscoped)
constexpr

◆ scopedEnum() [18/19]

constexpr Unit facebook::yoga::scopedEnum ( YGUnit unscoped)
constexpr

◆ scopedEnum() [19/19]

constexpr Wrap facebook::yoga::scopedEnum ( YGWrap unscoped)
constexpr

◆ serializedMeasureFuncFromJson()

SerializedMeasureFunc facebook::yoga::serializedMeasureFuncFromJson ( json & j)
函数调用图:
这是这个函数的调用关系图:

◆ serializeLayoutInputs() [1/2]

void facebook::yoga::serializeLayoutInputs ( json & j,
float availableWidth,
float availableHeight,
YGDirection ownerDirection )
函数调用图:
这是这个函数的调用关系图:

◆ serializeLayoutInputs() [2/2]

void facebook::yoga::serializeLayoutInputs ( nlohmann::json & j,
float availableWidth,
float availableHeight,
YGDirection ownerDirection )
函数调用图:
这是这个函数的调用关系图:

◆ serializeMeasureFuncResults()

static void facebook::yoga::serializeMeasureFuncResults ( json & j,
std::vector< SerializedMeasureFunc > & measureFuncs )
static
函数调用图:
这是这个函数的调用关系图:

◆ serializeTree() [1/2]

void facebook::yoga::serializeTree ( json & j,
SerializedMeasureFuncMap & nodesToMeasureFuncs,
YGNodeRef node,
PrintOptions options )
函数调用图:
这是这个函数的调用关系图:

◆ serializeTree() [2/2]

void facebook::yoga::serializeTree ( nlohmann::json & j,
SerializedMeasureFuncMap & nodesToMeasureFuncs,
YGNodeRef node,
PrintOptions options )
函数调用图:
这是这个函数的调用关系图:

◆ serializeTreeImpl()

static void facebook::yoga::serializeTreeImpl ( json & j,
SerializedMeasureFuncMap & nodesToMeasureFuncs,
YGNodeRef node,
PrintOptions options )
static
这是这个函数的调用关系图:

◆ setCenterLayoutPosition()

static void facebook::yoga::setCenterLayoutPosition ( const yoga::Node *const parent,
yoga::Node * child,
const Direction direction,
const FlexDirection axis,
const float containingBlockWidth )
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ setChildTrailingPosition()

void facebook::yoga::setChildTrailingPosition ( const yoga::Node *const node,
yoga::Node *const child,
const FlexDirection axis )
inline
函数调用图:
这是这个函数的调用关系图:

◆ setFlexEndLayoutPosition()

static void facebook::yoga::setFlexEndLayoutPosition ( const yoga::Node *const parent,
yoga::Node * child,
const Direction direction,
const FlexDirection axis,
const float containingBlockWidth )
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ setFlexStartLayoutPosition()

static void facebook::yoga::setFlexStartLayoutPosition ( const yoga::Node *const parent,
yoga::Node * child,
const Direction direction,
const FlexDirection axis,
const float containingBlockWidth )
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ setStylesFromJson()

void facebook::yoga::setStylesFromJson ( const json & j,
YGNodeRef node )
函数调用图:
这是这个函数的调用关系图:

◆ sizeIsExactAndMatchesOldMeasuredSize()

static bool facebook::yoga::sizeIsExactAndMatchesOldMeasuredSize ( SizingMode sizeMode,
float size,
float lastComputedSize )
inlinestatic
函数调用图:
这是这个函数的调用关系图:

◆ sizingMode()

SizingMode facebook::yoga::sizingMode ( MeasureMode mode)
inline
函数调用图:
这是这个函数的调用关系图:

◆ TEST() [1/30]

facebook::yoga::TEST ( Ordinals ,
iteration  )

◆ TEST() [2/30]

facebook::yoga::TEST ( SmallValueBuffer ,
copy_assignment_with_overflow  )
函数调用图:

◆ TEST() [3/30]

facebook::yoga::TEST ( SmallValueBuffer ,
push_32  )
函数调用图:

◆ TEST() [4/30]

facebook::yoga::TEST ( SmallValueBuffer ,
push_32_after_64  )
函数调用图:

◆ TEST() [5/30]

facebook::yoga::TEST ( SmallValueBuffer ,
push_64  )
函数调用图:

◆ TEST() [6/30]

facebook::yoga::TEST ( SmallValueBuffer ,
push_64_after_32  )
函数调用图:

◆ TEST() [7/30]

facebook::yoga::TEST ( SmallValueBuffer ,
push_64_overflow  )
函数调用图:

◆ TEST() [8/30]

facebook::yoga::TEST ( SmallValueBuffer ,
push_overflow  )
函数调用图:

◆ TEST() [9/30]

facebook::yoga::TEST ( SmallValueBuffer ,
replace_32_with_32  )
函数调用图:

◆ TEST() [10/30]

facebook::yoga::TEST ( SmallValueBuffer ,
replace_32_with_64  )
函数调用图:

◆ TEST() [11/30]

facebook::yoga::TEST ( SmallValueBuffer ,
replace_32_with_64_causes_overflow  )
函数调用图:

◆ TEST() [12/30]

facebook::yoga::TEST ( SmallValueBuffer ,
replace_64_with_32  )
函数调用图:

◆ TEST() [13/30]

facebook::yoga::TEST ( SmallValueBuffer ,
replace_64_with_64  )
函数调用图:

◆ TEST() [14/30]

facebook::yoga::TEST ( Style ,
computed_border_is_floored  )
函数调用图:

◆ TEST() [15/30]

facebook::yoga::TEST ( Style ,
computed_gap_is_floored  )
函数调用图:

◆ TEST() [16/30]

facebook::yoga::TEST ( Style ,
computed_margin_is_not_floored  )
函数调用图:

◆ TEST() [17/30]

facebook::yoga::TEST ( Style ,
computed_padding_is_floored  )
函数调用图:

◆ TEST() [18/30]

facebook::yoga::TEST ( StyleValuePool ,
auto_at_init  )
函数调用图:

◆ TEST() [19/30]

facebook::yoga::TEST ( StyleValuePool ,
store_keywords  )
函数调用图:

◆ TEST() [20/30]

facebook::yoga::TEST ( StyleValuePool ,
store_large_int_after_small_int  )
函数调用图:

◆ TEST() [21/30]

facebook::yoga::TEST ( StyleValuePool ,
store_large_int_percent  )
函数调用图:

◆ TEST() [22/30]

facebook::yoga::TEST ( StyleValuePool ,
store_small_int_after_large_int  )
函数调用图:

◆ TEST() [23/30]

facebook::yoga::TEST ( StyleValuePool ,
store_small_int_number  )
函数调用图:

◆ TEST() [24/30]

facebook::yoga::TEST ( StyleValuePool ,
store_small_int_percent  )
函数调用图:

◆ TEST() [25/30]

facebook::yoga::TEST ( StyleValuePool ,
store_small_int_points  )
函数调用图:

◆ TEST() [26/30]

facebook::yoga::TEST ( StyleValuePool ,
store_small_negative_int_points  )
函数调用图:

◆ TEST() [27/30]

facebook::yoga::TEST ( StyleValuePool ,
store_undefined  )
函数调用图:

◆ TEST() [28/30]

facebook::yoga::TEST ( StyleValuePool ,
store_undefined_after_large_int  )
函数调用图:

◆ TEST() [29/30]

facebook::yoga::TEST ( StyleValuePool ,
store_undefined_after_small_int  )
函数调用图:

◆ TEST() [30/30]

facebook::yoga::TEST ( StyleValuePool ,
undefined_at_init  )
函数调用图:

◆ TEST_F() [1/2]

facebook::yoga::TEST_F ( YGPersistentNodeCloningTest ,
changing_sibling_height_does_not_clone_neighbors  )
函数调用图:

◆ TEST_F() [2/2]

facebook::yoga::TEST_F ( YGPersistentNodeCloningTest ,
clone_leaf_display_contents_node  )
函数调用图:

◆ to_underlying()

constexpr auto facebook::yoga::to_underlying ( Enumeration auto e)
constexprnoexcept

Polyfill of C++ 23 to_underlying() https://en.cppreference.com/w/cpp/utility/to_underlying

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

◆ toString() [1/19]

const char * facebook::yoga::toString ( Align e)
inline
函数调用图:

◆ toString() [2/19]

const char * facebook::yoga::toString ( BoxSizing e)
inline
函数调用图:

◆ toString() [3/19]

const char * facebook::yoga::toString ( Dimension e)
inline
函数调用图:

◆ toString() [4/19]

const char * facebook::yoga::toString ( Direction e)
inline
函数调用图:

◆ toString() [5/19]

const char * facebook::yoga::toString ( Display e)
inline
函数调用图:

◆ toString() [6/19]

const char * facebook::yoga::toString ( Edge e)
inline
函数调用图:

◆ toString() [7/19]

const char * facebook::yoga::toString ( Errata e)
inline
函数调用图:

◆ toString() [8/19]

const char * facebook::yoga::toString ( ExperimentalFeature e)
inline
函数调用图:

◆ toString() [9/19]

const char * facebook::yoga::toString ( FlexDirection e)
inline
函数调用图:

◆ toString() [10/19]

const char * facebook::yoga::toString ( GridTrackType e)
inline
函数调用图:

◆ toString() [11/19]

const char * facebook::yoga::toString ( Gutter e)
inline
函数调用图:

◆ toString() [12/19]

const char * facebook::yoga::toString ( Justify e)
inline
函数调用图:

◆ toString() [13/19]

const char * facebook::yoga::toString ( LogLevel e)
inline
函数调用图:

◆ toString() [14/19]

const char * facebook::yoga::toString ( MeasureMode e)
inline
函数调用图:

◆ toString() [15/19]

const char * facebook::yoga::toString ( NodeType e)
inline
函数调用图:

◆ toString() [16/19]

const char * facebook::yoga::toString ( Overflow e)
inline
函数调用图:

◆ toString() [17/19]

const char * facebook::yoga::toString ( PositionType e)
inline
函数调用图:

◆ toString() [18/19]

const char * facebook::yoga::toString ( Unit e)
inline
函数调用图:

◆ toString() [19/19]

const char * facebook::yoga::toString ( Wrap e)
inline
函数调用图:

◆ unitFromJson()

YGUnit facebook::yoga::unitFromJson ( json & j)
函数调用图:
这是这个函数的调用关系图:

◆ unscopedEnum() [1/19]

constexpr YGAlign facebook::yoga::unscopedEnum ( Align scoped)
constexpr
这是这个函数的调用关系图:

◆ unscopedEnum() [2/19]

constexpr YGBoxSizing facebook::yoga::unscopedEnum ( BoxSizing scoped)
constexpr

◆ unscopedEnum() [3/19]

constexpr YGDimension facebook::yoga::unscopedEnum ( Dimension scoped)
constexpr

◆ unscopedEnum() [4/19]

constexpr YGDirection facebook::yoga::unscopedEnum ( Direction scoped)
constexpr

◆ unscopedEnum() [5/19]

constexpr YGDisplay facebook::yoga::unscopedEnum ( Display scoped)
constexpr

◆ unscopedEnum() [6/19]

constexpr YGEdge facebook::yoga::unscopedEnum ( Edge scoped)
constexpr

◆ unscopedEnum() [7/19]

constexpr YGErrata facebook::yoga::unscopedEnum ( Errata scoped)
constexpr

◆ unscopedEnum() [8/19]

constexpr YGExperimentalFeature facebook::yoga::unscopedEnum ( ExperimentalFeature scoped)
constexpr

◆ unscopedEnum() [9/19]

constexpr YGFlexDirection facebook::yoga::unscopedEnum ( FlexDirection scoped)
constexpr

◆ unscopedEnum() [10/19]

constexpr YGGridTrackType facebook::yoga::unscopedEnum ( GridTrackType scoped)
constexpr

◆ unscopedEnum() [11/19]

constexpr YGGutter facebook::yoga::unscopedEnum ( Gutter scoped)
constexpr

◆ unscopedEnum() [12/19]

constexpr YGJustify facebook::yoga::unscopedEnum ( Justify scoped)
constexpr

◆ unscopedEnum() [13/19]

constexpr YGLogLevel facebook::yoga::unscopedEnum ( LogLevel scoped)
constexpr

◆ unscopedEnum() [14/19]

constexpr YGMeasureMode facebook::yoga::unscopedEnum ( MeasureMode scoped)
constexpr

◆ unscopedEnum() [15/19]

constexpr YGNodeType facebook::yoga::unscopedEnum ( NodeType scoped)
constexpr

◆ unscopedEnum() [16/19]

constexpr YGOverflow facebook::yoga::unscopedEnum ( Overflow scoped)
constexpr

◆ unscopedEnum() [17/19]

constexpr YGPositionType facebook::yoga::unscopedEnum ( PositionType scoped)
constexpr

◆ unscopedEnum() [18/19]

constexpr YGUnit facebook::yoga::unscopedEnum ( Unit scoped)
constexpr

◆ unscopedEnum() [19/19]

constexpr YGWrap facebook::yoga::unscopedEnum ( Wrap scoped)
constexpr

◆ wrapFromString()

YGWrap facebook::yoga::wrapFromString ( const std::string & str)
函数调用图:
这是这个函数的调用关系图:

◆ YG_DEFINE_ENUM_FLAG_OPERATORS()

facebook::yoga::YG_DEFINE_ENUM_FLAG_OPERATORS ( PrintOptions )

◆ YGNodeCalculateLayoutWithCapture()

void facebook::yoga::YGNodeCalculateLayoutWithCapture ( YGNodeRef node,
float availableWidth,
float availableHeight,
YGDirection ownerDirection,
const std::filesystem::path & path )
函数调用图:

◆ zeroOutLayoutRecursively()

void facebook::yoga::zeroOutLayoutRecursively ( yoga::Node *const node)
函数调用图:
这是这个函数的调用关系图:

变量说明

◆ kBufferSize

constexpr size_t facebook::yoga::kBufferSize = 4
constexpr

◆ kNumRepetitions

constexpr uint32_t facebook::yoga::kNumRepetitions = 100
constexpr