Audacity 3.2.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
RegisteredToolbarFactory Struct Reference

#include <ToolBar.h>

Public Types

using Function = std::function< ToolBar::Holder(AudacityProject &) >
 
using Functions = std::vector< Function >
 

Public Member Functions

 RegisteredToolbarFactory (int id, const Function &function)
 

Static Public Member Functions

static const FunctionsGetFactories ()
 

Detailed Description

Definition at line 274 of file ToolBar.h.

Member Typedef Documentation

◆ Function

Definition at line 275 of file ToolBar.h.

◆ Functions

Definition at line 276 of file ToolBar.h.

Constructor & Destructor Documentation

◆ RegisteredToolbarFactory()

RegisteredToolbarFactory::RegisteredToolbarFactory ( int  id,
const Function function 
)

Definition at line 1019 of file ToolBar.cpp.

1021{
1022 wxASSERT( id >= 0 && id < ToolBarCount );
1023 GetFunctions()[ id ] = function;
1024}
@ ToolBarCount
Definition: ToolBar.h:88
int id
RegisteredToolbarFactory::Functions & GetFunctions()
Definition: ToolBar.cpp:1011

References anonymous_namespace{ToolBar.cpp}::GetFunctions(), id, and ToolBarCount.

Here is the call graph for this function:

Member Function Documentation

◆ GetFactories()

auto RegisteredToolbarFactory::GetFactories ( )
static

Definition at line 1026 of file ToolBar.cpp.

1027{
1028 return GetFunctions();
1029}

References anonymous_namespace{ToolBar.cpp}::GetFunctions().

Referenced by ToolManager::CreateWindows().

Here is the call graph for this function:
Here is the caller graph for this function:

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