]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/stream-event.hh
Added new system for how translators listen to events.
[lilypond.git] / lily / include / stream-event.hh
1 /*
2   stream-event.hh -- declare Stream_event
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 2005-2006 Erik Sandberg <mandolaerik@gmail.com>
7 */
8
9 #ifndef STREAM_EVENT_HH
10 #define STREAM_EVENT_HH
11
12 #include "lily-proto.hh"
13 #include "smobs.hh"
14 #include "prob.hh"
15
16 class Stream_event : public Prob
17 {
18 public:
19   Stream_event ();
20   Input *origin () const;
21   void set_spot (Input *i);
22
23   DECLARE_SCHEME_CALLBACK (undump, (SCM));
24   DECLARE_SCHEME_CALLBACK (dump, (SCM));
25
26   // todo: remove unneeded constructors
27   Stream_event (SCM event_class, SCM mutable_props);
28   Stream_event (SCM property_alist);
29   Stream_event (SCM class_name, Input *);
30   Stream_event (Stream_event *ev);
31 };
32
33 Stream_event *unsmob_stream_event (SCM);
34 DECLARE_TYPE_P (Stream_event);
35
36 #endif /* STREAM_EVENT_HH */