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

Function YGConfigSetPointScaleFactor

third-party/yoga/src/yoga/YGConfig.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35void YGConfigSetPointScaleFactor(
36 const YGConfigRef config,
37 const float pixelsInPoint) {
38 yoga::assertFatalWithConfig(
39 resolveRef(config),
40 pixelsInPoint >= 0.0f,
41 "Scale factor should not be less than zero");
42
43 resolveRef(config)->setPointScaleFactor(pixelsInPoint);
44}
45
46float YGConfigGetPointScaleFactor(const YGConfigConstRef config) {
47 return resolveRef(config)->getPointScaleFactor();

Callers 7

createConfigMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85
SetUpMethod · 0.85

Calls 3

assertFatalWithConfigFunction · 0.85
resolveRefFunction · 0.50
setPointScaleFactorMethod · 0.45

Tested by 6

SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68