Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::qquick::TimelinePositionTracker Class Reference

Reactive QML component for warp-aware timeline positions. More...

#include <src/gui/qquick/timeline_position_tracker.h>

Inheritance diagram for zrythm::gui::qquick::TimelinePositionTracker:
Collaboration diagram for zrythm::gui::qquick::TimelinePositionTracker:

Signals

void arrangerObjectChanged ()
void timelineTicksChanged ()
void timelineEndTicksChanged ()

Public Member Functions

 TimelinePositionTracker (QObject *parent=nullptr)
structure::arrangement::ArrangerObjectarrangerObject () const
void setArrangerObject (structure::arrangement::ArrangerObject *obj)
double timelineTicks () const
double timelineEndTicks () const

Properties

QML_ELEMENT zrythm::structure::arrangement::ArrangerObjectarrangerObject
double timelineTicks
double timelineEndTicks

Detailed Description

Reactive QML component for warp-aware timeline positions.

Wrap an ArrangerObject and bind to timelineTicks or timelineEndTicks in QML. The properties auto-update when the object's position, length, parent clip, or parent clip's ContentTimeWarp changes.

For imperative one-shot queries, use ArrangerObjectHelper instead.

TimelinePositionTracker {
id: tracker
arrangerObject: myNote
}
Text { text: tracker.timelineTicks }

Definition at line 34 of file timeline_position_tracker.h.

Member Function Documentation

◆ arrangerObject()

structure::arrangement::ArrangerObject * zrythm::gui::qquick::TimelinePositionTracker::arrangerObject ( ) const
inline

Definition at line 46 of file timeline_position_tracker.h.

Property Documentation

◆ arrangerObject

QML_ELEMENT zrythm::structure::arrangement::ArrangerObject * zrythm::gui::qquick::TimelinePositionTracker::arrangerObject
readwrite

Definition at line 39 of file timeline_position_tracker.h.

◆ timelineEndTicks

double zrythm::gui::qquick::TimelinePositionTracker::timelineEndTicks
read

Definition at line 41 of file timeline_position_tracker.h.

◆ timelineTicks

double zrythm::gui::qquick::TimelinePositionTracker::timelineTicks
read

Definition at line 40 of file timeline_position_tracker.h.


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