From b8c2428b310068b9f4f0d23b79922c6090eb65ce Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Mon, 15 Jan 2018 15:35:51 -0800 Subject: [PATCH] Exposing `setDirtiedFunc` as plain C function YGNodeSetDirtiedFunc Summary: @public Trivial. Those lines were lost during rebasing of the original commit. Reviewed By: priteshrnandgaonkar Differential Revision: D6717696 fbshipit-source-id: a5dce25427c8977352b3ae7ea01e546a540e0c13 --- yoga/Yoga.cpp | 8 ++++++++ yoga/Yoga.h | 2 ++ 2 files changed, 10 insertions(+) diff --git a/yoga/Yoga.cpp b/yoga/Yoga.cpp index b4f30dd0..f357eeaf 100644 --- a/yoga/Yoga.cpp +++ b/yoga/Yoga.cpp @@ -175,6 +175,14 @@ void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc) { node->setBaseLineFunc(baselineFunc); } +YGDirtiedFunc YGNodeGetDirtiedFunc(YGNodeRef node) { + return node->getDirtied(); +} + +void YGNodeSetDirtiedFunc(YGNodeRef node, YGDirtiedFunc dirtiedFunc) { + node->setDirtiedFunc(dirtiedFunc); +} + YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node) { return node->getPrintFunc(); } diff --git a/yoga/Yoga.h b/yoga/Yoga.h index 28326019..df16fce4 100644 --- a/yoga/Yoga.h +++ b/yoga/Yoga.h @@ -166,6 +166,8 @@ YGMeasureFunc YGNodeGetMeasureFunc(YGNodeRef node); void YGNodeSetMeasureFunc(YGNodeRef node, YGMeasureFunc measureFunc); YGBaselineFunc YGNodeGetBaselineFunc(YGNodeRef node); void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc); +YGDirtiedFunc YGNodeGetDirtiedFunc(YGNodeRef node); +void YGNodeSetDirtiedFunc(YGNodeRef node, YGDirtiedFunc dirtiedFunc); YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node); void YGNodeSetPrintFunc(YGNodeRef node, YGPrintFunc printFunc); bool YGNodeGetHasNewLayout(YGNodeRef node);