feat(ui): add unregister frame call to CSimpleFrame dtor

This commit is contained in:
fallenoak 2023-02-19 11:13:38 -06:00
parent 82be126eee
commit 9afd844d5a
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
3 changed files with 9 additions and 0 deletions

View File

@ -68,6 +68,8 @@ CSimpleFrame::~CSimpleFrame() {
this->m_intAC = 3;
this->m_top->UnregisterFrame(this);
// TODO
}

View File

@ -576,3 +576,9 @@ void CSimpleTop::UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event,
}
}
}
void CSimpleTop::UnregisterFrame(CSimpleFrame* frame) {
this->HideFrame(frame, 0);
// TODO strata
}

View File

@ -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, FRAMEPOINT a6);
void UnregisterForEvent(CSimpleFrame* frame, CSimpleEventType event, int32_t a4);
void UnregisterFrame(CSimpleFrame* frame);
};
#endif