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
18wxWidgetsWindowPlacement::operator bool() const
19{
20 return pWindow != nullptr;
21}
22
24{
25 if (auto *pPlacement =
26 dynamic_cast<const wxWidgetsWindowPlacement*>(&placement))
27 return pPlacement->pWindow;
28 return nullptr;
29}
Subclasses may hold information such as a parent window pointer for a dialog.
Definition: BasicUI.h:30
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.