Audacity 3.2.0
wxWidgetsWindowPlacement.cpp
Go to the documentation of this file.
1/*!********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file wxWidgetsWindowPlacement.cpp
6
7split from wxWidgetsBasicUI.cpp
8
9Paul Licameli
10
11**********************************************************************/
13
14using namespace BasicUI;
15
17
19{
20 if (auto *pPlacement =
21 dynamic_cast<const wxWidgetsWindowPlacement*>(&placement))
22 return pPlacement->pWindow;
23 return nullptr;
24}
Subclasses may hold information such as a parent window pointer for a dialog.
Definition: BasicUI.h:29
Window placement information for wxWidgetsBasicUI can be constructed from a wxWindow pointer.
~wxWidgetsWindowPlacement() override
static wxWindow * GetParent(const WindowPlacement &placement)
Retrieve the pointer to window, if placement is of this type; else null.