summaryrefslogtreecommitdiff
path: root/lily/include/text-item.hh
blob: ba81fce47497de81ae4b8acd3cce6445f587c016 (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
/*
  text.hh -- part of LilyPond

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

#ifndef TEXT_ITEM_HH
#define TEXT_ITEM_HH

#include "text-def.hh"
#include "item.hh"

/**
  print a fixed width text above or below the staff.
 */
class Text_item : public Item {
    void init(Text_def* tdef_l,int staffsize_i); 
    Text_def* tdef_p_;
public:
    Text_def * tdef_l();
    int pos_i_;
    int staffsize_i_;
    int dir_i_;
        
    /* ***************/

    NAME_MEMBERS(Text_item);
    virtual void set_default_index();
    Molecule* brew_molecule_p() const;
    void do_pre_processing();
    Text_item(Text_def*,int);
    Text_item(Text_req*,int);
    ~Text_item();
};


#endif // TEXT_HH