GUIDOLib  1.7.7
Guido Engine Internal Documentation
ARTitle.h
1 #ifndef ARTitle_H
2 #define ARTitle_H
3 
4 /*
5  GUIDO Library
6  Copyright (C) 2002 Holger Hoos, Juergen Kilian, Kai Renz
7  Copyright (C) 2002-2017 Grame
8 
9  This Source Code Form is subject to the terms of the Mozilla Public
10  License, v. 2.0. If a copy of the MPL was not distributed with this
11  file, You can obtain one at http://mozilla.org/MPL/2.0/.
12 
13  Grame Research Laboratory, 11, cours de Verdun Gensoul 69002 Lyon - France
14  research@grame.fr
15 
16 */
17 
18 #include "ARText.h"
19 
20 /*@mkdoc
21 
22 @group:Text
23 
24 @tagname:\title
25 @tagalias:
26 @tagtype:P
27 @tagnotation:the score title
28 @tagdesc
29 @tagend
30 
31 The piece title is displayed centered on top of the first page.
32 
33 @params:
34 @param:name:string:the title of the piece:*none*:false
35 @param:pageformat:string:a page location:c2:true
36 @fontparams:
37 @paramdesc
38 **pageformat** is a 2 chars string that describes the location of the title on the page: the first char gives the x position, and the secod the y position.
39 This location is relative to the page size and to the page margins (see [\pageFormat](../Layout/#pageformat)).
40 
41 Values for the first char must be in:
42 
43 - **1** or **l**: the x position is set to the left side of the page
44 - **2**: the x position is set to the middle of left margin.
45 - **3**: the x position is set to the left margin.
46 - **4** or **c**: the x position is centered on the page
47 - **5**: the x position is set to the right margin.
48 - **6**: the x position is set to the middle of right margin.
49 - **7** or **r**: the x position is set to the right side of the page
50 
51 Values for the second char must be in:
52 
53 - **1** or **t**: the y position is set to the top side of the page
54 - **2**: the y position is set to the middle of top margin.
55 - **3**: the y position is set to the top margin.
56 - **4** or **c**: the y position is centered on the page
57 - **5**: the y position is set to the bottom margin.
58 - **6**: the y position is set to the middle of bottom margin.
59 - **7** or **b**: the y position is set to the bottom side of the page
60 
61 
62 See the [Mozart](@EXAMPLES/mozart581/) example.<br />
63 See the [Fauré](@EXAMPLES/faure/) example.<br />
64 See the [Jazz](@EXAMPLES/allthethings/) example.
65 @paramend
66 
67 */
68 
71 class ARTitle : public ARText
72 {
73  public:
74  ARTitle();
75  virtual ~ARTitle() {}
76 
77  virtual int getOrder() const { return kTitleOrder; }
78  virtual const char* getParamsStr() const { return kARTitleParams; };
79  virtual const char* getTagName() const { return "ARTitle"; };
80  virtual std::string getGMNName() const { return "\\title"; };
81 
82  const char* getName() const;
83  const char* getPageFormat() const;
84 };
85 
86 #endif
ARTitle::getTagName
virtual const char * getTagName() const
Definition: ARTitle.h:79
ARTitle::getPageFormat
const char * getPageFormat() const
ARTitle::~ARTitle
virtual ~ARTitle()
Definition: ARTitle.h:75
ARMusicalTag::kTitleOrder
Definition: ARMusicalTag.h:40
ARTitle::getGMNName
virtual std::string getGMNName() const
Definition: ARTitle.h:80
ARTitle::ARTitle
ARTitle()
ARTitle::getName
const char * getName() const
ARTitle::getOrder
virtual int getOrder() const
Definition: ARTitle.h:77
ARTitle::getParamsStr
virtual const char * getParamsStr() const
Definition: ARTitle.h:78
ARText
The text tag.
Definition: ARText.h:49
ARTitle
not yet documented
Definition: ARTitle.h:71

Guido Project Copyright © 2019 Grame-CNCM