Audacity 3.2.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
wxWidgetsWindowPlacement Struct Referencefinal

Window placement information for wxWidgetsBasicUI can be constructed from a wxWindow pointer. More...

#include <wxWidgetsWindowPlacement.h>

Inheritance diagram for wxWidgetsWindowPlacement:
[legend]
Collaboration diagram for wxWidgetsWindowPlacement:
[legend]

Public Member Functions

 wxWidgetsWindowPlacement ()=default
 
 wxWidgetsWindowPlacement (wxWindow *pWindow)
 Construct from a pointer to window which may be null. More...
 
 ~wxWidgetsWindowPlacement () override
 
- Public Member Functions inherited from BasicUI::WindowPlacement
 WindowPlacement ()=default
 
 WindowPlacement (const WindowPlacement &) PROHIBITED
 Don't slice. More...
 
WindowPlacementoperator= (const WindowPlacement &) PROHIBITED
 Don't slice. More...
 
virtual ~WindowPlacement ()
 

Static Public Member Functions

static wxWindow * GetParent (const WindowPlacement &placement)
 Retrieve the pointer to window, if placement is of this type; else null. More...
 

Public Attributes

wxWindow * pWindow {}
 

Detailed Description

Window placement information for wxWidgetsBasicUI can be constructed from a wxWindow pointer.

Definition at line 21 of file wxWidgetsWindowPlacement.h.

Constructor & Destructor Documentation

◆ wxWidgetsWindowPlacement() [1/2]

wxWidgetsWindowPlacement::wxWidgetsWindowPlacement ( )
default

◆ wxWidgetsWindowPlacement() [2/2]

wxWidgetsWindowPlacement::wxWidgetsWindowPlacement ( wxWindow *  pWindow)
inlineexplicit

Construct from a pointer to window which may be null.

Definition at line 29 of file wxWidgetsWindowPlacement.h.

◆ ~wxWidgetsWindowPlacement()

wxWidgetsWindowPlacement::~wxWidgetsWindowPlacement ( )
overridedefault

Member Function Documentation

◆ GetParent()

wxWindow * wxWidgetsWindowPlacement::GetParent ( const WindowPlacement placement)
static

Retrieve the pointer to window, if placement is of this type; else null.

Definition at line 18 of file wxWidgetsWindowPlacement.cpp.

19{
20 if (auto *pPlacement =
21 dynamic_cast<const wxWidgetsWindowPlacement*>(&placement))
22 return pPlacement->pWindow;
23 return nullptr;
24}
Window placement information for wxWidgetsBasicUI can be constructed from a wxWindow pointer.

Referenced by wxWidgetsBasicUI::DoMakeGenericProgress(), wxWidgetsBasicUI::DoMessageBox(), wxWidgetsBasicUI::DoShowErrorDialog(), and BasicMenu::Handle::Popup().

Here is the caller graph for this function:

Member Data Documentation

◆ pWindow

wxWindow* wxWidgetsWindowPlacement::pWindow {}

Definition at line 34 of file wxWidgetsWindowPlacement.h.


The documentation for this struct was generated from the following files: