Expose layout paddding in csharp api
Summary: Expose layout padding api from D4376572 Reviewed By: splhack Differential Revision: D4377070 fbshipit-source-id: 501628612675e3fdce9a8e77f929cb9c6eddc209
This commit is contained in:
committed by
Facebook Github Bot
parent
e539ecc9aa
commit
6d48307c8d
@@ -315,9 +315,12 @@ namespace Facebook.Yoga
|
||||
[DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern float YGNodeLayoutGetHeight(YGNodeHandle node);
|
||||
|
||||
[DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern float YGNodeLayoutGetPadding(YGNodeHandle node, YogaEdge edge);
|
||||
|
||||
[DllImport(DllName, ExactSpelling = true, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern YogaDirection YGNodeLayoutGetDirection(YGNodeHandle node);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -308,6 +308,11 @@ namespace Facebook.Yoga
|
||||
}
|
||||
}
|
||||
|
||||
public float GetLayoutPadding(YogaEdge edge)
|
||||
{
|
||||
return Native.YGNodeLayoutGetPadding(_ygNode, edge);
|
||||
}
|
||||
|
||||
public YogaValue Width
|
||||
{
|
||||
get
|
||||
|
Reference in New Issue
Block a user