mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-26 23:53:35 +03:00
feat(ui): add unregister frame call to CSimpleFrame dtor
This commit is contained in:
3 files changed
+9
No files matched your search
@@ -68,6 +68,8 @@ CSimpleFrame::~CSimpleFrame() {
|
|||||||
|
|
||||||
this->m_intAC = 3;
|
this->m_intAC = 3;
|
||||||
|
|
||||||
|
this->m_top->UnregisterFrame(this);
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -576,3 +576,9 @@ void CSimpleTop::UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CSimpleTop::UnregisterFrame(CSimpleFrame* frame) {
|
||||||
|
this->HideFrame(frame, 0);
|
||||||
|
|
||||||
|
// TODO strata
|
||||||
|
}
|
||||||
@@ -79,6 +79,7 @@ class CSimpleTop : public CLayoutFrame {
|
|||||||
int32_t StartMoveOrResizeFrame(CSimpleFrame* frame, MOVERESIZE_REASON reason, float startx, float starty, int32_t a6);
|
int32_t StartMoveOrResizeFrame(CSimpleFrame* frame, MOVERESIZE_REASON reason, float startx, float starty, int32_t a6);
|
||||||
int32_t StartMoveOrResizeFrame(CSimpleFrame* frame, MOVERESIZE_REASON reason, float startx, float starty, FRAMEPOINT a6);
|
int32_t StartMoveOrResizeFrame(CSimpleFrame* frame, MOVERESIZE_REASON reason, float startx, float starty, FRAMEPOINT a6);
|
||||||
void UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event, int32_t a4);
|
void UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event, int32_t a4);
|
||||||
|
void UnregisterFrame(CSimpleFrame* frame);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in new issue
Block a user