summaryrefslogtreecommitdiff
path: root/lily/include/script.hh
blob: df408f04354b54c9b0550792a8882da0419f5b0b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
  script.hh -- part of LilyPond

  (c) 1996,97 Han-Wen Nienhuys
*/

#ifndef SCRIPT_HH
#define SCRIPT_HH

#include "script-def.hh"
#include "item.hh"
  
struct Script : Item {
    int dir;
    int symdir;
    int pos;
    int staffsize;
    Script_def *specs_l_;
    Stem *stem_l_;
    Array<Item *> support;

    /* *************** */
    NAME_MEMBERS(Script);
    Molecule *brew_molecule_p()const;
    virtual void do_post_processing();
    virtual void do_pre_processing();
    Script(Script_req*, int staffsize);
    void set_support(Item*);
    void set_stem(Stem*);
    Interval support_height()const;
    virtual Interval width() const;
private:
    void set_symdir();
    void set_default_dir();
    void set_default_index();
    Symbol symbol()const;
};


#endif // SCRIPT_HH