GUIDOLib  1.7.7
Guido Engine Internal Documentation
GRGlue.h
1 #ifndef GRGlue_H
2 #define GRGlue_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 "GRNotationElement.h"
19 
20 class GRStaff;
21 
22 
25 class GRGlue : public GRNotationElement
26 {
27  public:
28  GRGlue( GRStaff * grstf, int isstart = true );
29  virtual ~GRGlue();
30 
31  virtual void OnDraw(VGDevice &) const { }
32 
33  void tellPosition( GObject *, const NVPoint & );
34 
35  float getSConst() const { return mSConst; }
36 
37  virtual void setHPosition( float nx ) { GRNotationElement::setHPosition(nx); }
38  virtual void print(std::ostream& os) const;
39 
41  int mIsStart; // (JB) sometimes = -1 should be a bool...
42 
43  virtual const GRGlue * isGRGlue() const { return this; }
44 
45  protected:
46 
47  float mSConst;
48 };
49 
50 #endif
GObject
The base class for all graphic objects.
Definition: GObject.h:54
GRGlue::mPartner
GRGlue * mPartner
Definition: GRGlue.h:40
GRNotationElement
parent class for all notation elements.
Definition: GRNotationElement.h:54
GRGlue::mSConst
float mSConst
Definition: GRGlue.h:47
NVPoint
Definition: NVPoint.h:20
GRStaff
A GRStaff represents a single line of music.
Definition: GRStaff.h:181
GRGlue::GRGlue
GRGlue(GRStaff *grstf, int isstart=true)
GRGlue::getSConst
float getSConst() const
Definition: GRGlue.h:35
GRGlue::isGRGlue
virtual const GRGlue * isGRGlue() const
Definition: GRGlue.h:43
GRGlue::~GRGlue
virtual ~GRGlue()
GRGlue::OnDraw
virtual void OnDraw(VGDevice &) const
Definition: GRGlue.h:31
GRGlue::mIsStart
int mIsStart
Definition: GRGlue.h:41
VGDevice
Generic platform independant drawing device.
Definition: VGDevice.h:68
GRGlue::setHPosition
virtual void setHPosition(float nx)
Definition: GRGlue.h:37
GRGlue
not yet documented
Definition: GRGlue.h:25
GRGlue::print
virtual void print(std::ostream &os) const
GRGlue::tellPosition
void tellPosition(GObject *, const NVPoint &)
GRNotationElement::setHPosition
virtual void setHPosition(float nx)

Guido Project Copyright © 2019 Grame-CNCM