Audacity 3.2.0
BasicMenu.h
Go to the documentation of this file.
1/*!********************************************************************
2
3Audacity: A Digital Audio Editor
4
5@file BasicMenu.h
6@brief Abstractions of menus and their items
7
8Paul Licameli
9
10**********************************************************************/
11
12#ifndef __AUDACITY_BASIC_MENU__
13#define __AUDACITY_BASIC_MENU__
14
15#include "BasicUIPoint.h"
16
17namespace BasicUI{ class WindowPlacement; }
18
19class wxMenu; // To be removed
20
21namespace BasicMenu {
22
24
25class AUDACITY_DLL_API Handle
26{
27public:
28
29 explicit Handle( wxMenu *pMenu ) : mpMenu{ pMenu } {}
30
31 Handle( const Handle &other ) = delete;
32 Handle &operator =( const Handle &other ) = delete;
33
35 void Popup( const BasicUI::WindowPlacement &window,
36 const Point &pos = {} );
37
38private:
39 wxMenu *mpMenu;
40};
41
42}
43
44#endif
45
A pair of screen coordinates for use in toolkit-neutral UI facades.
wxMenu * mpMenu
Definition: BasicMenu.h:39
Handle(const Handle &other)=delete
Handle(wxMenu *pMenu)
Definition: BasicMenu.h:29
Subclasses may hold information such as a parent window pointer for a dialog.
Definition: BasicUI.h:30
BasicUI::Point Point
Definition: BasicMenu.h:23
A pair of screen coordinates, x increasing rightward, y downward.
Definition: BasicUIPoint.h:18