MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isFixedSize

Function isFixedSize

third-party/yoga/src/yoga/algorithm/CalculateLayout.cpp:452–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

450}
451
452inline bool isFixedSize(float dim, SizingMode sizingMode) {
453 return sizingMode == SizingMode::StretchFit ||
454 (yoga::isDefined(dim) && sizingMode == SizingMode::FitContent &&
455 dim <= 0.0);
456}
457
458static bool measureNodeWithFixedSize(
459 yoga::Node* const node,

Callers 1

measureNodeWithFixedSizeFunction · 0.85

Calls 1

isDefinedFunction · 0.50

Tested by

no test coverage detected