blob: 2cda59018242a5edf0483b4712370d1549cce2c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/* drawstemdir.cpp
*
* Functions for drawing stemming directives
*
* for Denemo, a gtk+ frontend to GNU Lilypond
* (c) 1999, 2000, 2001, 2002 Matthew Hiller
*/
#include "utils.h" /* Includes <gdk.h> */
#include <denemo/denemo.h>
/**
* Draw stemming directive
*
*/
void
draw_stem_directive (cairo_t *cr,
gint xx, gint y, DenemoObject * theobj)
{
gchar *text = NULL;
switch (((stemdirective *) theobj->object)->type)
{
case DENEMO_STEMUP:
text = _("stem\nup");
break;
case DENEMO_STEMBOTH:
text = _("auto\nstems");
break;
case DENEMO_STEMDOWN:
text = _("stem\ndown");
break;
}
if(((stemdirective *) theobj->object)->directives)
draw_for_directives(cr, ((stemdirective *) theobj->object)->directives, xx, y-4);
else
drawnormaltext_cr( cr, text, xx, y - 4);
}
|