Exposing `setDirtiedFunc` as plain C function YGNodeSetDirtiedFunc
Summary: Trivial. Those lines were lost during rebasing of the original commit. Reviewed By: priteshrnandgaonkar Differential Revision: D6717696 fbshipit-source-id: a5dce25427c8977352b3ae7ea01e546a540e0c13
This commit is contained in:
parent
ce3146a6f3
commit
6bb8617f3a
|
@ -233,8 +233,20 @@ exports.examples = [
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<Text>
|
<Text>
|
||||||
|
The text
|
||||||
|
<View style={{borderColor: 'red', borderWidth: 1}}>
|
||||||
|
<Text style={{borderColor: 'blue', borderWidth: 1}}>Text Inside</Text>
|
||||||
|
<Text style={{borderColor: 'green', borderWidth: 1}}>Another text Inside</Text>
|
||||||
|
<Text style={{borderColor: 'yellow', borderWidth: 1}}>
|
||||||
|
Total inseption
|
||||||
|
<View style={{borderColor: 'red', borderWidth: 1}}>
|
||||||
|
<Text style={{borderColor: 'blue', borderWidth: 1}}>Insepted Text Inside</Text>
|
||||||
|
</View>
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
The text should wrap if it goes on multiple lines. See, this is going
|
The text should wrap if it goes on multiple lines. See, this is going
|
||||||
to the next line.
|
to the next line.
|
||||||
|
The text after.
|
||||||
</Text>
|
</Text>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
@ -175,6 +175,14 @@ void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc) {
|
||||||
node->setBaseLineFunc(baselineFunc);
|
node->setBaseLineFunc(baselineFunc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
YGDirtiedFunc YGNodeGetDirtiedFunc(YGNodeRef node) {
|
||||||
|
return node->getDirtied();
|
||||||
|
}
|
||||||
|
|
||||||
|
void YGNodeSetDirtiedFunc(YGNodeRef node, YGDirtiedFunc dirtiedFunc) {
|
||||||
|
node->setDirtiedFunc(dirtiedFunc);
|
||||||
|
}
|
||||||
|
|
||||||
YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node) {
|
YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node) {
|
||||||
return node->getPrintFunc();
|
return node->getPrintFunc();
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,6 +166,8 @@ YGMeasureFunc YGNodeGetMeasureFunc(YGNodeRef node);
|
||||||
void YGNodeSetMeasureFunc(YGNodeRef node, YGMeasureFunc measureFunc);
|
void YGNodeSetMeasureFunc(YGNodeRef node, YGMeasureFunc measureFunc);
|
||||||
YGBaselineFunc YGNodeGetBaselineFunc(YGNodeRef node);
|
YGBaselineFunc YGNodeGetBaselineFunc(YGNodeRef node);
|
||||||
void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc);
|
void YGNodeSetBaselineFunc(YGNodeRef node, YGBaselineFunc baselineFunc);
|
||||||
|
YGDirtiedFunc YGNodeGetDirtiedFunc(YGNodeRef node);
|
||||||
|
void YGNodeSetDirtiedFunc(YGNodeRef node, YGDirtiedFunc dirtiedFunc);
|
||||||
YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node);
|
YGPrintFunc YGNodeGetPrintFunc(YGNodeRef node);
|
||||||
void YGNodeSetPrintFunc(YGNodeRef node, YGPrintFunc printFunc);
|
void YGNodeSetPrintFunc(YGNodeRef node, YGPrintFunc printFunc);
|
||||||
bool YGNodeGetHasNewLayout(YGNodeRef node);
|
bool YGNodeGetHasNewLayout(YGNodeRef node);
|
||||||
|
|
Loading…
Reference in New Issue