Add YGLayoutGetMargin
Summary: Fix #326. I'll open another PR once this one gets accepted to add support for `YGLayoutGetBorder` 👌 Closes https://github.com/facebook/yoga/pull/335 Reviewed By: gkassabli Differential Revision: D4409399 Pulled By: emilsjolander fbshipit-source-id: 8153f6701cab60b55a485f6d2e0b9f7767481090
This commit is contained in:
committed by
Facebook Github Bot
parent
498a5980e8
commit
d70f289e73
@@ -199,6 +199,7 @@ YG_NODE_LAYOUT_PROPERTY(YGDirection, Direction);
|
||||
// pixel values then the returned value will be the same as YGNodeStyleGetPadding. However if
|
||||
// padding was set using a percentage value then the returned value is the computed value used
|
||||
// during layout.
|
||||
WIN_EXPORT float YGNodeLayoutGetMargin(const YGNodeRef node, const YGEdge edge);
|
||||
WIN_EXPORT float YGNodeLayoutGetPadding(const YGNodeRef node, const YGEdge edge);
|
||||
|
||||
WIN_EXPORT void YGSetLogger(YGLogger logger);
|
||||
|
Reference in New Issue
Block a user