update javascript api
This commit is contained in:
@@ -124,6 +124,11 @@ void Node::setOverflow(int overflow)
|
|||||||
YGNodeStyleSetOverflow(m_node, static_cast<YGOverflow>(overflow));
|
YGNodeStyleSetOverflow(m_node, static_cast<YGOverflow>(overflow));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Node::setDisplay(int display)
|
||||||
|
{
|
||||||
|
YGNodeStyleSetDisplay(m_node, static_cast<YGDisplay>(display));
|
||||||
|
}
|
||||||
|
|
||||||
void Node::setFlex(double flex)
|
void Node::setFlex(double flex)
|
||||||
{
|
{
|
||||||
YGNodeStyleSetFlex(m_node, flex);
|
YGNodeStyleSetFlex(m_node, flex);
|
||||||
@@ -279,6 +284,11 @@ int Node::getOverflow(void) const
|
|||||||
return YGNodeStyleGetOverflow(m_node);
|
return YGNodeStyleGetOverflow(m_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Node::getDisplay(void) const
|
||||||
|
{
|
||||||
|
return YGNodeStyleGetDisplay(m_node);
|
||||||
|
}
|
||||||
|
|
||||||
Value Node::getFlexBasis(void) const
|
Value Node::getFlexBasis(void) const
|
||||||
{
|
{
|
||||||
return Value::fromYGValue(YGNodeStyleGetFlexBasis(m_node));
|
return Value::fromYGValue(YGNodeStyleGetFlexBasis(m_node));
|
||||||
|
@@ -67,6 +67,7 @@ class Node {
|
|||||||
void setMarginPercent(int edge, double margin);
|
void setMarginPercent(int edge, double margin);
|
||||||
|
|
||||||
void setOverflow(int overflow);
|
void setOverflow(int overflow);
|
||||||
|
void setDisplay(int display);
|
||||||
|
|
||||||
void setFlex(double flex);
|
void setFlex(double flex);
|
||||||
void setFlexBasis(double flexBasis);
|
void setFlexBasis(double flexBasis);
|
||||||
@@ -111,6 +112,7 @@ class Node {
|
|||||||
Value getMargin(int edge) const;
|
Value getMargin(int edge) const;
|
||||||
|
|
||||||
int getOverflow(void) const;
|
int getOverflow(void) const;
|
||||||
|
int getDisplay(void) const;
|
||||||
|
|
||||||
Value getFlexBasis(void) const;
|
Value getFlexBasis(void) const;
|
||||||
double getFlexGrow(void) const;
|
double getFlexGrow(void) const;
|
||||||
|
@@ -67,6 +67,7 @@ NBIND_CLASS(Node)
|
|||||||
method(setMarginPercent);
|
method(setMarginPercent);
|
||||||
|
|
||||||
method(setOverflow);
|
method(setOverflow);
|
||||||
|
method(setDisplay);
|
||||||
|
|
||||||
method(setFlex);
|
method(setFlex);
|
||||||
method(setFlexBasis);
|
method(setFlexBasis);
|
||||||
@@ -125,6 +126,9 @@ NBIND_CLASS(Node)
|
|||||||
|
|
||||||
method(getBorder);
|
method(getBorder);
|
||||||
|
|
||||||
|
method(getOverflow);
|
||||||
|
method(getDisplay);
|
||||||
|
|
||||||
method(getPadding);
|
method(getPadding);
|
||||||
|
|
||||||
method(insertChild);
|
method(insertChild);
|
||||||
|
Reference in New Issue
Block a user