Audacity 3.2.0
Classes | Public Member Functions | Static Public Member Functions | List of all members
LibraryPrefs::RegisteredControls Struct Reference

To be statically constructed, it registers additions to the Library preference page. More...

#include <LibraryPrefs.h>

Inheritance diagram for LibraryPrefs::RegisteredControls:
[legend]
Collaboration diagram for LibraryPrefs::RegisteredControls:
[legend]

Classes

struct  Init
 

Public Member Functions

 RegisteredControls (const Identifier &id, Populator populator, const Registry::Placement &placement={ wxEmptyString, {} })
 
- Public Member Functions inherited from Registry::RegisteredItem< PopulatorItem >
 RegisteredItem (Ptr pItem, const Placement &placement={})
 

Static Public Member Functions

static bool Any ()
 

Detailed Description

To be statically constructed, it registers additions to the Library preference page.

Definition at line 36 of file LibraryPrefs.h.

Constructor & Destructor Documentation

◆ RegisteredControls()

LibraryPrefs::RegisteredControls::RegisteredControls ( const Identifier id,
Populator  populator,
const Registry::Placement placement = { wxEmptyString, {} } 
)

Definition at line 42 of file LibraryPrefs.cpp.

46 std::make_unique< PopulatorItem >( id, move(populator) ),
47 placement
48 }
49{}
Generates classes whose instances register items at construction.
Definition: Registry.h:388

Member Function Documentation

◆ Any()

bool LibraryPrefs::RegisteredControls::Any ( )
static

Definition at line 51 of file LibraryPrefs.cpp.

52{
53 return !PopulatorItem::Registry().empty();
54}
static Registry::GroupItem< Traits > & Registry()

References LibraryPrefs::PopulatorItem::Registry().

Here is the call graph for this function:

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