]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/stream-event.hh
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / include / stream-event.hh
index 0ac1b4712fc91bf53288e9cc714b49b8b27c00c1..13535c73f6ecd1826db46bf0e23eb2b4b5ed9569 100644 (file)
 #include "smobs.hh"
 #include "prob.hh"
 
-class Stream_event : public Prob
+class Stream_event
 {
+  void init ();
+  SCM property_alist_;
+  Input *origin_;
+
 public:
   Stream_event ();
   Input *origin () const;
-  void set_spot (Input *i);
 
   DECLARE_SCHEME_CALLBACK (undump, (SCM));
   DECLARE_SCHEME_CALLBACK (dump, (SCM));
 
-  // todo: remove unneeded constructors
-  Stream_event (SCM event_class, SCM mutable_props);
+  // todo: make Input mandatory.
   Stream_event (SCM property_alist);
-  Stream_event (SCM class_name, Input *);
+  Stream_event (Context *c, SCM class_name);
+  Stream_event (Context *c, Input *);
   Stream_event (Stream_event *ev);
+
+  SCM internal_get_property (SCM) const;
+  void internal_set_property (SCM prop, SCM val);
+
+protected:
+  DECLARE_SMOBS (Stream_event,);
 };
 
-Stream_event *unsmob_stream_event (SCM);
+DECLARE_UNSMOB (Stream_event, stream_event);
 DECLARE_TYPE_P (Stream_event);
 
 #endif /* STREAM_EVENT_HH */