Functions | |
GuidoErrCode | GuidoOnDraw (GuidoOnDrawDesc *desc) |
Draws one page of score into a graphic device. | |
GuidoErrCode | GuidoGR2SVG (const GRHandler handle, int page, std::ostream &out, bool embedFont, const char *font, const int mappingMode=0) |
Exports one page of score to SVG. | |
GuidoErrCode | GuidoSVGExport (const GRHandler handle, int page, std::ostream &out, const char *fontfile, const int mappingMode=0) __attribute__((deprecated)) |
Exports one page of score to SVG. | |
GuidoErrCode | GuidoSVGExportWithFontSpec (const GRHandler handle, int page, std::ostream &out, const char *fontfile, const char *fontspec, const int mappingMode=0) __attribute__((deprecated)) |
Exports one page of score to SVG. If fontfile or fontspec are set, the font is added to svg. The fontfile has priority over the fontspec. | |
GuidoErrCode | GuidoAbstractExport (const GRHandler handle, int page, std::ostream &out) |
Exports an abstract representation of GUIDO draw commands. | |
GuidoErrCode | GuidoBinaryExport (const GRHandler handle, int page, std::ostream &out) |
Exports an representation of GUIDO draw commands in a data-reduced dsl. | |
void | GuidoDrawBoundingBoxes (int bbMap) |
Control bounding boxes drawing. | |
int | GuidoGetDrawBoundingBoxes () |
Gives bounding boxes drawing state. | |
void | GuidoGetPageFormat (CGRHandler inHandleGR, int pageNum, GuidoPageFormat *format) |
Gives a score page format. | |
void | GuidoSetDefaultPageFormat (const GuidoPageFormat *format) |
Sets the default score page format. | |
void | GuidoGetDefaultPageFormat (GuidoPageFormat *format) |
Gives the default score page format. | |
float | GuidoUnit2CM (float val) |
Converts internal Guido units into centimeters. | |
float | GuidoCM2Unit (float val) |
Converts centimeters into internal Guido units. | |
float | GuidoUnit2Inches (float val) |
Converts internal Guido units into inches. | |
float | GuidoInches2Unit (float val) |
Converts inches into internal Guido units. | |
GuidoErrCode | GuidoResizePageToMusic (GRHandler inHandleGR) |
Resize the page sizes to the music size. |
The GuidoEngine makes use of internal units for graphic operations. The functions that query or set graphic dimensions always makes use of this internal unit. Conversion functions are provided to convert to standard units.
GuidoErrCode GuidoOnDraw | ( | GuidoOnDrawDesc * | desc ) |
Draws one page of score into a graphic device.
desc | informations about what to draw and how to draw. |
GuidoErrCode GuidoGR2SVG | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
bool | embedFont, | ||
const char * | font, | ||
const int | mappingMode = 0 |
||
) |
Exports one page of score to SVG.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
embedFont | if true, it use a embbed guido font and add it to the SVG. |
font | path of the guido svg font file or an svg font in text representation. Can be use if embedFont is set to false else it is unnecessary. If the library is compiled with INDEPENDENTSVG option, don't use a font file. The library cannot calculate font metric. You have better to use embedded font. |
mappingMode | the mapping mode (see mapping mode enum). |
GuidoErrCode GuidoSVGExport | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
const char * | fontfile, | ||
const int | mappingMode = 0 |
||
) |
Exports one page of score to SVG.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
fontfile | path of the guido svg font file. |
mappingMode | the mapping mode (see mapping mode enum). |
GuidoErrCode GuidoSVGExportWithFontSpec | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out, | ||
const char * | fontfile, | ||
const char * | fontspec, | ||
const int | mappingMode = 0 |
||
) |
Exports one page of score to SVG. If fontfile or fontspec are set, the font is added to svg. The fontfile has priority over the fontspec.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
fontfile | path of the guido svg font file. |
fontspec | an svg font in text representation. |
mappingMode | the mapping mode (see mapping mode enum). |
GuidoErrCode GuidoAbstractExport | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out | ||
) |
Exports an abstract representation of GUIDO draw commands.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
GuidoErrCode GuidoBinaryExport | ( | const GRHandler | handle, |
int | page, | ||
std::ostream & | out | ||
) |
Exports an representation of GUIDO draw commands in a data-reduced dsl.
handle | a graphic representation. |
page | the page number. |
out | the output stream. |
void GuidoDrawBoundingBoxes | ( | int | bbMap ) |
Control bounding boxes drawing.
bbMap | a bits field indicating the set of bounding boxes to draw (default to none). |
int GuidoGetDrawBoundingBoxes | ( | ) |
Gives bounding boxes drawing state.
void GuidoGetPageFormat | ( | CGRHandler | inHandleGR, |
int | pageNum, | ||
GuidoPageFormat * | format | ||
) |
Gives a score page format.
inHandleGR | a Guido opaque handle to a GR structure. |
pageNum | a page number. |
format | on output: the page format |
void GuidoSetDefaultPageFormat | ( | const GuidoPageFormat * | format ) |
Sets the default score page format.
The default page format is used when no \pageFormat
tag is present. Parameters are Guido internal units. Default values for the default page format are:
format | the page format |
void GuidoGetDefaultPageFormat | ( | GuidoPageFormat * | format ) |
Gives the default score page format.
format | on output: the page format |
float GuidoUnit2CM | ( | float | val ) |
Converts internal Guido units into centimeters.
val | the value to be converted |
float GuidoCM2Unit | ( | float | val ) |
Converts centimeters into internal Guido units.
val | the value to be converted |
float GuidoUnit2Inches | ( | float | val ) |
Converts internal Guido units into inches.
val | the value to be converted |
float GuidoInches2Unit | ( | float | val ) |
Converts inches into internal Guido units.
val | the value to be converted |
GuidoErrCode GuidoResizePageToMusic | ( | GRHandler | inHandleGR ) |
Resize the page sizes to the music size.
inHandleGR | a Guido opaque handle to a GR structure. |