Moved setPosition as a method on YGNode
Summary: Moved setPosition as a method on YGNode Reviewed By: emilsjolander Differential Revision: D6683387 fbshipit-source-id: 83f64101faa700933771c69b222056ec2a6b8d1e
This commit is contained in:
committed by
Facebook Github Bot
parent
f2ba14c309
commit
76875af207
@@ -31,6 +31,8 @@ struct YGNode {
|
||||
bool isDirty_;
|
||||
std::array<YGValue, 2> resolvedDimensions_;
|
||||
|
||||
float relativePosition(const YGFlexDirection axis, const float axisSize);
|
||||
|
||||
public:
|
||||
YGNode();
|
||||
~YGNode();
|
||||
@@ -110,6 +112,12 @@ struct YGNode {
|
||||
void setLayoutHadOverflow(bool hadOverflow);
|
||||
void setLayoutDimension(float dimension, int index);
|
||||
|
||||
void setPosition(
|
||||
const YGDirection direction,
|
||||
const float mainSize,
|
||||
const float crossSize,
|
||||
const float parentWidth);
|
||||
|
||||
// Other methods
|
||||
YGValue marginLeadingValue(const YGFlexDirection axis) const;
|
||||
YGValue marginTrailingValue(const YGFlexDirection axis) const;
|
||||
|
Reference in New Issue
Block a user