Implement method bindings for gap/row-gap/column-gap
Summary: This adds method bindings for `YGNodeStyleSetGap` and `YGNodeStyleGetGap`. Changelog: [Genral][Added] - Implement method bindings for yoga gap/row-gap/column-gap Reviewed By: yungsters Differential Revision: D39922411 fbshipit-source-id: 6cbb4d352203d2ec92df162c3f2f2efd02bd9568
This commit is contained in:
committed by
Facebook GitHub Bot
parent
582533dbc6
commit
f992e63ac5
@@ -432,6 +432,45 @@ namespace Facebook.Yoga
|
||||
}
|
||||
}
|
||||
|
||||
public float Gap
|
||||
{
|
||||
get
|
||||
{
|
||||
return Native.YGNodeStyleGetGap(_ygNode, YogaGutter.All);
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
Native.YGNodeStyleSetGap(_ygNode, YogaGutter.All, value);
|
||||
}
|
||||
}
|
||||
|
||||
public float ColumnGap
|
||||
{
|
||||
get
|
||||
{
|
||||
return Native.YGNodeStyleGetGap(_ygNode, YogaGutter.Column);
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
Native.YGNodeStyleSetGap(_ygNode, YogaGutter.Column, value);
|
||||
}
|
||||
}
|
||||
|
||||
public float RowGap
|
||||
{
|
||||
get
|
||||
{
|
||||
return Native.YGNodeStyleGetGap(_ygNode, YogaGutter.Row);
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
Native.YGNodeStyleSetGap(_ygNode, YogaGutter.Row, value);
|
||||
}
|
||||
}
|
||||
|
||||
public float LayoutX
|
||||
{
|
||||
get
|
||||
|
Reference in New Issue
Block a user