Canorus 0.0
drawablefunctionmarkcontext.h
Go to the documentation of this file.
1
8#ifndef DRAWABLEFUNCTIONMARKCONTEXT_H_
9#define DRAWABLEFUNCTIONMARKCONTEXT_H_
10
12
14
16 public:
19
20 void draw(QPainter *p, const CADrawSettings s);
22
23 void setNumberOfLines(int number) { _numberOfLines = number; }
24 int numberOfLines() { return _numberOfLines; }
25
27 Upper, // used for function name in tonicization
28 Middle, // used for general function names
29 Lower // used for chord areas, ellipse sign etc.
30 };
31
32 double yPosLine(CAFunctionMarkLine part); // Returns the Y coordinate of the top of the given line
33 void nextLine();
35
36 private:
39 int _numberOfLines; // Number of lines the context can consist. Usually, this number is 2. But when doing research on scores, this could be expanded
41};
42
43#endif /* DRAWABLEFUNCTIONMARKCONTEXT_H_ */
Definition: drawablecontext.h:18
Definition: drawablefunctionmarkcontext.h:15
CADrawableFunctionMarkContext()
Definition: drawablefunctionmarkcontext.h:37
double yPosLine(CAFunctionMarkLine part)
Definition: drawablefunctionmarkcontext.cpp:35
~CADrawableFunctionMarkContext()
Definition: drawablefunctionmarkcontext.cpp:24
void draw(QPainter *p, const CADrawSettings s)
Definition: drawablefunctionmarkcontext.cpp:27
int currentLineIdx()
Definition: drawablefunctionmarkcontext.h:34
CAFunctionMarkLine
Definition: drawablefunctionmarkcontext.h:26
@ Upper
Definition: drawablefunctionmarkcontext.h:27
@ Lower
Definition: drawablefunctionmarkcontext.h:29
@ Middle
Definition: drawablefunctionmarkcontext.h:28
void nextLine()
Definition: drawablefunctionmarkcontext.cpp:48
CADrawableFunctionMarkContext * clone()
Definition: drawablefunctionmarkcontext.cpp:31
int _numberOfLines
Definition: drawablefunctionmarkcontext.h:39
int numberOfLines()
Definition: drawablefunctionmarkcontext.h:24
int _currentLineIdx
Definition: drawablefunctionmarkcontext.h:40
void setNumberOfLines(int number)
Definition: drawablefunctionmarkcontext.h:23
Context for function marks.
Definition: functionmarkcontext.h:19
#define NULL
Definition: glib.h:121
Definition: drawable.h:16