Audacity 3.2.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
WaveChannelSubViewType Struct Reference

#include <WaveChannelViewConstants.h>

Collaboration diagram for WaveChannelSubViewType:
[legend]

Classes

struct  RegisteredType
 

Public Types

using Display = WaveChannelViewConstants::Display
 

Public Member Functions

bool operator< (const WaveChannelSubViewType &other) const
 
bool operator== (const WaveChannelSubViewType &other) const
 

Static Public Member Functions

static const std::vector< WaveChannelSubViewType > & All ()
 Discover all registered types. More...
 
static Display Default ()
 Return a preferred type. More...
 

Public Attributes

Display id
 
EnumValueSymbol name
 

Detailed Description

Definition at line 88 of file WaveChannelViewConstants.h.

Member Typedef Documentation

◆ Display

Definition at line 89 of file WaveChannelViewConstants.h.

Member Function Documentation

◆ All()

auto WaveChannelSubViewType::All ( )
static

Discover all registered types.

Definition at line 90 of file WaveChannelViewConstants.cpp.

References anonymous_namespace{WaveChannelViewConstants.cpp}::Registry::Get(), and anonymous_namespace{WaveChannelViewConstants.cpp}::GetRegistry().

Referenced by AllTypes(), SetTrackVisualsCommand::ApplyInner(), Default(), DiscoverSubViewTypes(), and ViewModeSetting().

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

◆ Default()

auto WaveChannelSubViewType::Default ( )
static

Return a preferred type.

Definition at line 97 of file WaveChannelViewConstants.cpp.

98{
99 auto &all = All();
100 if (all.empty())
102 return all[0].id;
103}
static const std::vector< WaveChannelSubViewType > & All()
Discover all registered types.

References All(), and WaveChannelViewConstants::Waveform.

Referenced by SetTrackVisualsCommand::ApplyInner(), and WaveChannelView::BuildSubViews().

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

◆ operator<()

bool WaveChannelSubViewType::operator< ( const WaveChannelSubViewType other) const
inline

Definition at line 98 of file WaveChannelViewConstants.h.

99 { return id < other.id; }

References id.

◆ operator==()

bool WaveChannelSubViewType::operator== ( const WaveChannelSubViewType other) const
inline

Definition at line 101 of file WaveChannelViewConstants.h.

102 { return id == other.id; }

References id.

Member Data Documentation

◆ id

Display WaveChannelSubViewType::id

◆ name

EnumValueSymbol WaveChannelSubViewType::name

Definition at line 96 of file WaveChannelViewConstants.h.

Referenced by DiscoverSubViewTypes(), and ViewModeSetting().


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