Canorus  0.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
drawabletuplet.h
Go to the documentation of this file.
1 
8 #ifndef DRAWABLETUPLET_H_
9 #define DRAWABLETUPLET_H_
10 
12 #include "core/tuplet.h"
13 
15 public:
16  CADrawableTuplet( CATuplet *tuplet, CADrawableContext *c, double x1, double y1, double x2, double y2 );
17  virtual ~CADrawableTuplet();
18 
19  CATuplet *tuplet() { return static_cast<CATuplet*>(_musElement); }
20 
21  void draw(QPainter *p, const CADrawSettings s);
22  CADrawableTuplet *clone(CADrawableContext* newContext = 0);
23 
24  inline double x1() { return _x1; }
25  inline double y1() { return _y1; }
26  inline double x2() { return _x2; }
27  inline double y2() { return _y2; }
28  inline void setX1( double x1 ) { _x1 = x1; }
29  inline void setY1( double y1 ) { _y1 = y1; }
30  inline void setX2( double x2 ) { _x2 = x2; }
31  inline void setY2( double y2 ) { _y2 = y2; }
32 
33 private:
34  double _x1;
35  double _x2;
36  double _y1;
37  double _y2;
38 };
39 
40 #endif /* DRAWABLETUPLET_H_ */