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