Audacity 3.2.0
|
#include <ProjectWindow.h>
Public Types | |
enum class | Mode { Off , Refresh , Pinned , Right } |
Public Types inherited from Observer::Publisher< PlaybackScrollerMessage > | |
using | message_type = PlaybackScrollerMessage |
using | CallbackReturn = std::conditional_t< true, void, bool > |
using | Callback = std::function< CallbackReturn(const PlaybackScrollerMessage &) > |
Type of functions that can be connected to the Publisher. More... | |
Public Member Functions | |
PlaybackScroller (AudacityProject *project) | |
Mode | GetMode () const |
void | Activate (Mode mode) |
double | GetRecentStreamTime () const |
void | OnTimer () |
Public Member Functions inherited from Observer::Publisher< PlaybackScrollerMessage > | |
Publisher (ExceptionPolicy *pPolicy=nullptr, Alloc a={}) | |
Constructor supporting type-erased custom allocation/deletion. More... | |
Publisher (Publisher &&)=default | |
Publisher & | operator= (Publisher &&)=default |
Subscription | Subscribe (Callback callback) |
Connect a callback to the Publisher; later-connected are called earlier. More... | |
Subscription | Subscribe (Object &obj, Return(Object::*callback)(Args...)) |
Overload of Subscribe takes an object and pointer-to-member-function. More... | |
Private Attributes | |
AudacityProject * | mProject |
Mode | mMode { Mode::Off } |
double | mRecentStreamTime { -1.0 } |
Additional Inherited Members | |
Static Public Attributes inherited from Observer::Publisher< PlaybackScrollerMessage > | |
static constexpr bool | notifies_all |
Protected Member Functions inherited from Observer::Publisher< PlaybackScrollerMessage > | |
CallbackReturn | Publish (const PlaybackScrollerMessage &message) |
Send a message to connected callbacks. More... | |
Definition at line 80 of file ProjectWindow.h.
|
strong |
Enumerator | |
---|---|
Off | |
Refresh | |
Pinned | |
Right |
Definition at line 86 of file ProjectWindow.h.
|
explicit |
Definition at line 1239 of file ProjectWindow.cpp.
|
inline |
Definition at line 94 of file ProjectWindow.h.
Referenced by ControlToolBar::StartScrolling(), ControlToolBar::StartScrollingIfPreferred(), and ControlToolBar::StopScrolling().
|
inline |
Definition at line 93 of file ProjectWindow.h.
|
inline |
Definition at line 99 of file ProjectWindow.h.
void ProjectWindow::PlaybackScroller::OnTimer | ( | ) |
Definition at line 1244 of file ProjectWindow.cpp.
References AudioIO::Get(), ProjectAudioIO::Get(), ViewInfo::Get(), TracksPrefs::GetPinnedHeadPositionPreference(), GetProjectPanel(), ProjectAudioIO::IsAudioActive(), and Observer::Publisher< ProjectWindowDestroyedMessage >::Publish().
Definition at line 105 of file ProjectWindow.h.
|
private |
Definition at line 104 of file ProjectWindow.h.
|
private |
Definition at line 109 of file ProjectWindow.h.