Audacity 3.2.0
Public Member Functions | Public Attributes | List of all members
anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl Struct Reference
Inheritance diagram for anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl:
[legend]
Collaboration diagram for anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl:
[legend]

Public Member Functions

 PopupMenuImpl (void *pUserData_)
 
 ~PopupMenuImpl () override
 
void Popup (wxWindow &window, const wxPoint &pos) override
 
void Extend (PopupMenuTable *pTable)
 
- Public Member Functions inherited from PopupMenu
virtual ~PopupMenu ()
 
virtual void Popup (wxWindow &window, const wxPoint &pos)=0
 

Public Attributes

void * pUserData
 

Detailed Description

Definition at line 34 of file PopupMenuTable.cpp.

Constructor & Destructor Documentation

◆ PopupMenuImpl()

anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl::PopupMenuImpl ( void *  pUserData_)
inline

Definition at line 36 of file PopupMenuTable.cpp.

◆ ~PopupMenuImpl()

anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl::~PopupMenuImpl ( )
override

Definition at line 132 of file PopupMenuTable.cpp.

133{
134 // Event connections between the parent window and the singleton table
135 // object must be broken when this menu is destroyed.
136 Disconnect();
137}

Member Function Documentation

◆ Extend()

void anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl::Extend ( PopupMenuTable pTable)

◆ Popup()

void anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl::Popup ( wxWindow &  window,
const wxPoint &  pos 
)
overridevirtual

Implements PopupMenu.

Definition at line 139 of file PopupMenuTable.cpp.

140{
141 BasicMenu::Handle{ this }.Popup(
142 wxWidgetsWindowPlacement{ &window }, { pos.x, pos.y }
143 );
144}
void Popup(const BasicUI::WindowPlacement &window, const Point &pos={})
Display the menu at pos, invoke at most one action, then hide it.
Definition: BasicMenu.cpp:209
Window placement information for wxWidgetsBasicUI can be constructed from a wxWindow pointer.

References BasicMenu::Handle::Popup().

Here is the call graph for this function:

Member Data Documentation

◆ pUserData

void* anonymous_namespace{PopupMenuTable.cpp}::PopupMenuImpl::pUserData

Definition at line 45 of file PopupMenuTable.cpp.


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