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
 
 operator bool () const override
 Whether null; default in the base class returns false. More...
 
- Public Member Functions inherited from BasicUI::WindowPlacement
 WindowPlacement ()=default
 
 WindowPlacement (const WindowPlacement &)=delete
 Don't slice. More...
 
WindowPlacementoperator= (const WindowPlacement &)=delete
 Don't slice. More...
 
virtual operator bool () const
 Whether null; default in the base class returns false. 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 23 of file wxWidgetsWindowPlacement.cpp.

24{
25 if (auto *pPlacement =
26 dynamic_cast<const wxWidgetsWindowPlacement*>(&placement))
27 return pPlacement->pWindow;
28 return nullptr;
29}
Window placement information for wxWidgetsBasicUI can be constructed from a wxWindow pointer.

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

Here is the caller graph for this function:

◆ operator bool()

wxWidgetsWindowPlacement::operator bool ( ) const
explicitoverridevirtual

Whether null; default in the base class returns false.

Reimplemented from BasicUI::WindowPlacement.

Definition at line 18 of file wxWidgetsWindowPlacement.cpp.

19{
20 return pWindow != nullptr;
21}

Member Data Documentation

◆ pWindow

wxWindow* wxWidgetsWindowPlacement::pWindow {}

Definition at line 37 of file wxWidgetsWindowPlacement.h.


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