add frame duplicate

This commit is contained in:
2019-10-20 17:09:44 +02:00
parent 0d575be198
commit ad03c601ad
7 changed files with 63 additions and 0 deletions

View File

@@ -813,6 +813,30 @@ void Node::SetSize(glm::vec2 value)
app_redraw();
}
void Node::SetMinSize(float w, float h)
{
SetMinWidth(w);
SetMinHeight(h);
}
void Node::SetMinSize(glm::vec2 value)
{
SetMinWidth(value.x);
SetMinHeight(value.y);
}
void Node::SetMaxSize(float w, float h)
{
SetMaxWidth(w);
SetMaxHeight(h);
}
void Node::SetMaxSize(glm::vec2 value)
{
SetMaxWidth(value.x);
SetMaxHeight(value.y);
}
void Node::SetMaxWidth(float value)
{
YGNodeStyleSetMaxWidth(y_node, value);