1 #ifndef LIBR2C2_TRACKATTACHMENT_H_
2 #define LIBR2C2_TRACKATTACHMENT_H_
10 class TrackAttachment: public Object, public sigc::trackable
16 TrackAttachment(Layout &);
18 virtual ~TrackAttachment();
20 const TrackIter &get_track_iter() const { return track; }
21 Track *get_track() const { return track.track(); }
22 unsigned get_entry() const { return track.entry(); }
23 float get_offset() const { return offset; }
24 float get_offset_from_endpoint(unsigned) const;
26 void attach_to(const TrackIter &, float);
27 void attach_to_closest(float);
28 float find_offset(const TrackIter &, const Vector &);
31 virtual Track *get_parent() const { return track.track(); }
34 void object_removed(Object &);