OrcaSlicer latest
OrcaSlicer
Loading...
Searching...
No Matches
PopupWindow.cpp File Reference
#include "PopupWindow.hpp"
#include <wx/popupwin.h>
#include <wx/event.h>
Include dependency graph for PopupWindow.cpp:

Go to the source code of this file.

Functions

static wxWindow * GetTopParent (wxWindow *pWindow)

Function Documentation

◆ GetTopParent()

wxWindow * GetTopParent ( wxWindow * pWindow)
static
11{
12 wxWindow *pWin = pWindow;
13 while (pWin->GetParent()) {
14 pWin = pWin->GetParent();
15 if (auto top = dynamic_cast<wxNonOwnedWindow*>(pWin))
16 return top;
17 }
18 return pWin;
19}

Referenced by PopupWindow::~PopupWindow(), and PopupWindow::Create().

Here is the caller graph for this function: