Audacity 3.2.0
wxWidgetsWindowPlacement.h
Go to the documentation of this file.
1/*!********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file wxWidgetsBasicUI.h
6@brief Implementation of BasicUI::WindowPlacement using wxWidgets
7
8split from wxWidgetsBasicUI.h
9
10Paul Licameli
11
12**********************************************************************/
13#ifndef __WXWIDGETS_WINDOW_PLACEMENT__
14#define __WXWIDGETS_WINDOW_PLACEMENT__
15
16#include "BasicUI.h"
17
18class wxWindow;
19
21struct WX_INIT_API wxWidgetsWindowPlacement final
24 static wxWindow *GetParent(const WindowPlacement &placement);
25
27
29 explicit wxWidgetsWindowPlacement( wxWindow *pWindow )
30 : pWindow{ pWindow }
31 {}
32
34
35 explicit operator bool() const override;
36
37 wxWindow *pWindow{};
38};
39
40#endif
Toolkit-neutral facade for basic user interface services.
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()=default
~wxWidgetsWindowPlacement() override
wxWidgetsWindowPlacement(wxWindow *pWindow)
Construct from a pointer to window which may be null.