CommonHostInterface: Add a method to get top-level window handle

This commit is contained in:
Connor McLaughlin
2020-12-29 16:29:14 +10:00
parent a894b295b6
commit a3e4c61a0b
7 changed files with 35 additions and 9 deletions

View File

@ -619,6 +619,11 @@ bool QtHostInterface::RequestRenderWindowSize(s32 new_window_width, s32 new_wind
return true;
}
void* QtHostInterface::GetTopLevelWindowHandle() const
{
return reinterpret_cast<void*>(m_main_window->winId());
}
void QtHostInterface::PollAndUpdate()
{
CommonHostInterface::PollAndUpdate();