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

#include <MenuCreator.h>

Inheritance diagram for MenuCreator::SpecialItem:
[legend]
Collaboration diagram for MenuCreator::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 MenuRegistry::SpecialItem
 ~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 23 of file MenuCreator.h.

Member Typedef Documentation

◆ Appender

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

Definition at line 25 of file MenuCreator.h.

Constructor & Destructor Documentation

◆ SpecialItem()

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

Definition at line 27 of file MenuCreator.h.

28 : MenuRegistry::SpecialItem{ internalName }
29 , fn{ fn_ }
30 {}

◆ ~SpecialItem()

MenuCreator::SpecialItem::~SpecialItem ( )
overridedefault

Member Data Documentation

◆ fn

Appender MenuCreator::SpecialItem::fn

Definition at line 33 of file MenuCreator.h.


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