Moved leading padding function as a method on YGNode
Summary: Moved leading padding function as a method on YGNode Reviewed By: emilsjolander Differential Revision: D6711830 fbshipit-source-id: d2f6f55ec23b007bb51f8a91385e02236f46dc7b
This commit is contained in:
committed by
Facebook Github Bot
parent
0a04bd7f2f
commit
adb2e0fdd6
@@ -79,6 +79,7 @@ struct YGNode {
|
||||
std::array<YGValue, 2> getResolvedDimensions() const;
|
||||
YGValue getResolvedDimension(int index);
|
||||
|
||||
// Methods related to positions, margin, padding and border
|
||||
float getLeadingPosition(const YGFlexDirection axis, const float axisSize);
|
||||
bool isLeadingPositionDefined(const YGFlexDirection axis);
|
||||
bool isTrailingPosDefined(const YGFlexDirection axis);
|
||||
@@ -87,6 +88,7 @@ struct YGNode {
|
||||
float getTrailingMargin(const YGFlexDirection axis, const float widthSize);
|
||||
float getLeadingBorder(const YGFlexDirection flexDirection);
|
||||
float getTrailingBorder(const YGFlexDirection flexDirection);
|
||||
float getLeadingPadding(const YGFlexDirection axis, const float widthSize);
|
||||
// Setters
|
||||
|
||||
void setContext(void* context);
|
||||
|
Reference in New Issue
Block a user