new content menu (WIP)

This commit is contained in:
MihailRis
2024-05-02 04:07:07 +03:00
parent 690e3f54c9
commit 5915b811f2
27 changed files with 340 additions and 202 deletions
+12 -1
View File
@@ -198,7 +198,18 @@ int UINode::getZIndex() const {
return zindex;
}
void UINode::lock() {
void UINode::moveInto(
std::shared_ptr<UINode> node,
std::shared_ptr<Container> dest
) {
auto parent = node->getParent();
if (auto container = dynamic_cast<Container*>(parent)) {
container->remove(node);
}
if (parent) {
parent->scrolled(0);
}
dest->add(node);
}
vec2supplier UINode::getPositionFunc() const {