}
-int
-TimelineContentView::y_pos (int t) const
-{
- return t * _timeline.pixels_per_track() + _timeline.tracks_y_offset();
-}
-
-
void
TimelineContentView::content_change (ChangeType type, int p)
{
private:
void do_paint (wxGraphicsContext* gc, std::list<dcpomatic::Rect<int>> overlaps) override;
- int y_pos (int t) const;
void content_change (ChangeType type, int p);
boost::optional<int> _track;
{
return t.seconds() * _timeline.pixels_per_second().get_value_or(0);
}
+
+
+int
+TimelineView::y_pos(int t) const
+{
+ return t * _timeline.pixels_per_track() + _timeline.tracks_y_offset();
+}
+
+
virtual void do_paint (wxGraphicsContext *, std::list<dcpomatic::Rect<int>> overlaps) = 0;
int time_x (dcpomatic::DCPTime t) const;
+ int y_pos(int t) const;
Timeline& _timeline;