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

#include <CommandManager.h>

Inheritance diagram for MenuTable::SpecialItem:
Collaboration diagram for MenuTable::SpecialItem:

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
- Public Member Functions inherited from Registry::detail::BaseItem
 BaseItem (const Identifier &internalName)
virtual ~BaseItem ()

Public Attributes

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

Detailed Description

Definition at line 649 of file CommandManager.h.

Member Typedef Documentation

◆ Appender

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

Definition at line 651 of file CommandManager.h.

Constructor & Destructor Documentation

◆ SpecialItem()

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

Definition at line 653 of file CommandManager.h.

654 : SingleItem{ internalName }
655 , fn{ fn_ }
656 {}
Common abstract base class for items that are not groups.
Definition: Registry.h:224

◆ ~SpecialItem()

MenuTable::SpecialItem::~SpecialItem ( )

Definition at line 236 of file Menus.cpp.


Member Data Documentation

◆ fn

Appender MenuTable::SpecialItem::fn

Definition at line 659 of file CommandManager.h.

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