X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fprob.hh;h=5d4a50029f251454a743fbf25cfb2b7e92d3467b;hb=3c6c00c08ff31f57ec8d88450b4e4e7917bc4f3e;hp=839edd4abacdff4c1be17a8cabd93267d66ef271;hpb=91f01637f31c7d904fd8016b49184e935bf1c8ab;p=lilypond.git diff --git a/lily/include/prob.hh b/lily/include/prob.hh index 839edd4aba..5d4a50029f 100644 --- a/lily/include/prob.hh +++ b/lily/include/prob.hh @@ -1,9 +1,20 @@ /* - property-object.hh -- declare Property_object + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2004--2011 Jan Nieuwenhuizen - (c) 2004--2007 Jan Nieuwenhuizen + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #ifndef PROPERTY_OBJECT_HH @@ -20,6 +31,7 @@ formatted content of the grob is put into a Property_object. Page-breaking handles Property_object objects. */ + class Prob { DECLARE_SMOBS (Prob); @@ -40,12 +52,17 @@ public: Prob (Prob const &); virtual string name () const; SCM type () const { return type_; } - SCM get_property_alist (bool mutble) const; + SCM get_property_alist (bool _mutable) const; SCM internal_get_property (SCM sym) const; + void instrumented_set_property (SCM, SCM, const char*, int, const char*); void internal_set_property (SCM sym, SCM val); }; + DECLARE_UNSMOB(Prob,prob); + SCM ly_prob_set_property_x (SCM system, SCM sym, SCM value); -SCM ly_prob_property (SCM system, SCM sym, SCM dfault); +SCM ly_prob_property (SCM prob, SCM sym, SCM val); +SCM ly_prob_type_p (SCM obj, SCM sym); + #endif /* PROPERTY_OBJECT_HH */