| 33 | } |
| 34 | |
| 35 | void 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 | |
| 46 | float YGConfigGetPointScaleFactor(const YGConfigConstRef config) { |
| 47 | return resolveRef(config)->getPointScaleFactor(); |