update javascript api
This commit is contained in:
@@ -124,6 +124,11 @@ void Node::setOverflow(int 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)
|
||||
{
|
||||
YGNodeStyleSetFlex(m_node, flex);
|
||||
@@ -279,6 +284,11 @@ int Node::getOverflow(void) const
|
||||
return YGNodeStyleGetOverflow(m_node);
|
||||
}
|
||||
|
||||
int Node::getDisplay(void) const
|
||||
{
|
||||
return YGNodeStyleGetDisplay(m_node);
|
||||
}
|
||||
|
||||
Value Node::getFlexBasis(void) const
|
||||
{
|
||||
return Value::fromYGValue(YGNodeStyleGetFlexBasis(m_node));
|
||||
|
Reference in New Issue
Block a user