Audacity  3.0.3
Public Types | Public Member Functions | Public Attributes | List of all members
MenuTable::SpecialItem Struct Referencefinal

#include <CommandManager.h>

Inheritance diagram for MenuTable::SpecialItem:
[legend]
Collaboration diagram for MenuTable::SpecialItem:
[legend]

Public Types

using Appender = std::function< void(AudacityProject &, wxMenu &) >
 

Public Member Functions

 SpecialItem (const Identifier &internalName, const Appender &fn_)
 
 ~SpecialItem () override
 
- Public Member Functions inherited from Registry::SingleItem
 ~SingleItem () override=0
 
 BaseItem (const Identifier &internalName)
 
- Public Member Functions inherited from Registry::BaseItem
 BaseItem (const Identifier &internalName)
 
virtual ~BaseItem ()
 

Public Attributes

Appender fn
 
- Public Attributes inherited from Registry::BaseItem
const Identifier name
 
OrderingHint orderingHint
 

Detailed Description

Definition at line 565 of file CommandManager.h.

Member Typedef Documentation

◆ Appender

using MenuTable::SpecialItem::Appender = std::function< void( AudacityProject&, wxMenu& ) >

Definition at line 567 of file CommandManager.h.

Constructor & Destructor Documentation

◆ SpecialItem()

MenuTable::SpecialItem::SpecialItem ( const Identifier internalName,
const Appender fn_ 
)
inlineexplicit

Definition at line 569 of file CommandManager.h.

570  : SingleItem{ internalName }
571  , fn{ fn_ }
572  {}

◆ ~SpecialItem()

MenuTable::SpecialItem::~SpecialItem ( )
override

Definition at line 232 of file Menus.cpp.

232 {}

Member Data Documentation

◆ fn

Appender MenuTable::SpecialItem::fn

Definition at line 575 of file CommandManager.h.


The documentation for this struct was generated from the following files:
Registry::SingleItem
Definition: Registry.h:120
MenuTable::SpecialItem::fn
Appender fn
Definition: CommandManager.h:575