Audacity 3.2.0
Public Member Functions | List of all members
anonymous_namespace{LyricsWindow.cpp}::Handler Struct Reference
Inheritance diagram for anonymous_namespace{LyricsWindow.cpp}::Handler:
[legend]
Collaboration diagram for anonymous_namespace{LyricsWindow.cpp}::Handler:
[legend]

Public Member Functions

void OnKaraoke (const CommandContext &context)
 

Detailed Description

Definition at line 212 of file LyricsWindow.cpp.

Member Function Documentation

◆ OnKaraoke()

void anonymous_namespace{LyricsWindow.cpp}::Handler::OnKaraoke ( const CommandContext context)
inline

Definition at line 213 of file LyricsWindow.cpp.

214 {
215 auto &project = context.project;
216
217 auto lyricsWindow = &GetAttachedWindows(project).Get(sLyricsWindowKey);
218 lyricsWindow->Show();
219 lyricsWindow->Raise();
220 }
AUDACITY_DLL_API AttachedWindows & GetAttachedWindows(AudacityProject &project)
Subclass & Get(const RegisteredFactory &key)
Get reference to an attachment, creating on demand if not present, down-cast it to Subclass.
Definition: ClientData.h:309
AudacityProject & project
AttachedWindows::RegisteredFactory sLyricsWindowKey

References ClientData::Site< Host, ClientData, ObjectCopyingPolicy, Pointer, ObjectLockingPolicy, RegistryLockingPolicy >::Get(), GetAttachedWindows(), CommandContext::project, and anonymous_namespace{LyricsWindow.cpp}::sLyricsWindowKey.

Here is the call graph for this function:

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