GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRPageText.h
1 #ifndef GRPageText_H
2 #define GRPageText_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 <string>
19 
20 #include "GRTagARNotationElement.h"
21 #include "GuidoDefs.h" // for LSPACE
22 
23 class ARText;
24 class GRPage;
25 
26 
30 {
31  public:
32  GRPageText (const ARText *ar, GRPage *, const char* text, const char* pageform);
33  virtual ~GRPageText() {}
34 
35  virtual void OnDraw( VGDevice & hdc ) const;
36  void setGRPage(GRPage * page) { fGRPage = page; }
37 
38  virtual void calcPosition();
39  virtual unsigned int getTextAlign() const { return fTextalign; }
40 
41  protected:
43  std::string fPageText;
44  std::string fLocation;
45 
46  unsigned int fTextalign;
47 };
48 
49 #endif
50 
GRPage
Graphical representation of a score page. Contains one or more instances of class GRSystem.
Definition: GRPage.h:40
GRPageText::GRPageText
GRPageText(const ARText *ar, GRPage *, const char *text, const char *pageform)
GRPageText::calcPosition
virtual void calcPosition()
GRPageText::fTextalign
unsigned int fTextalign
Definition: GRPageText.h:46
GRPageText
not yet documented
Definition: GRPageText.h:29
GRPageText::setGRPage
void setGRPage(GRPage *page)
Definition: GRPageText.h:36
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRPageText::OnDraw
virtual void OnDraw(VGDevice &hdc) const
GRPageText::fPageText
std::string fPageText
Definition: GRPageText.h:43
GRTagARNotationElement
GRTagARNotationElement.
Definition: GRTagARNotationElement.h:26
GRPageText::fLocation
std::string fLocation
Definition: GRPageText.h:44
GRPageText::getTextAlign
virtual unsigned int getTextAlign() const
Definition: GRPageText.h:39
GRPageText::fGRPage
GRPage * fGRPage
Definition: GRPageText.h:42
ARText
The text tag.
Definition: ARText.h:49
GRPageText::~GRPageText
virtual ~GRPageText()
Definition: GRPageText.h:33

Guido Project Copyright © 2019 Grame-CNCM