add frame duplicate
This commit is contained in:
24
src/node.cpp
24
src/node.cpp
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user