add updatefunc to slot, which will be emited every interaction with it

This commit is contained in:
Sergwest
2024-03-09 00:05:02 +03:00
parent 212c30c866
commit 3ac32b6696
3 changed files with 24 additions and 5 deletions
+2
View File
@@ -43,6 +43,7 @@ struct SlotLayout {
glm::vec2 position;
bool background;
bool itemSource;
slotcallback updateFunc;
slotcallback shareFunc;
slotcallback rightClick;
int padding = 0;
@@ -51,6 +52,7 @@ struct SlotLayout {
glm::vec2 position,
bool background,
bool itemSource,
slotcallback updateFunc,
slotcallback shareFunc,
slotcallback rightClick);
};