Detailed Description
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.
Function Documentation
Draws one page of score into a graphic device.
- Parameters:
-
desc | informations about what to draw and how to draw. |
- Returns:
- a Guido error code
GuidoErrCode GuidoSVGExport |
( |
const GRHandler |
handle, |
|
|
int |
page, |
|
|
std::ostream & |
out, |
|
|
const char * |
fontfile |
|
) |
| |
Exports one page of score to SVG.
- Parameters:
-
page | the page number. |
out | the output stream. |
fontfile | path of the guido svg font file. |
- Returns:
- a Guido error code
Exports an abstract representation of GUIDO draw commands.
- Parameters:
-
- Returns:
- a Guido error code
Exports an representation of GUIDO draw commands in a data-reduced dsl.
- Parameters:
-
- Returns:
- a Guido error code
void GuidoDrawBoundingBoxes |
( |
int |
bbMap ) |
|
Control bounding boxes drawing.
- Parameters:
-
bbMap | a bits field indicating the set of bounding boxes to draw (default to none). |
int GuidoGetDrawBoundingBoxes |
( |
) |
|
Gives bounding boxes drawing state.
Gives a score page format.
- Parameters:
-
inHandleGR | a Guido opaque handle to a GR structure. |
pageNum | a page number. |
format | on output: the page 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:
- paper size: A4
- left margin: 2cm
- right margin: 2cm
- top margin: 5cm
- bottom margin: 3cm
- Parameters:
-
Gives the default score page format.
- Parameters:
-
format | on output: the page format |
float GuidoUnit2CM |
( |
float |
val ) |
|
Converts internal Guido units into centimeters.
- Parameters:
-
val | the value to be converted |
- Returns:
- the converted value
float GuidoCM2Unit |
( |
float |
val ) |
|
Converts centimeters into internal Guido units.
- Parameters:
-
val | the value to be converted |
- Returns:
- the converted value
float GuidoUnit2Inches |
( |
float |
val ) |
|
Converts internal Guido units into inches.
- Parameters:
-
val | the value to be converted |
- Returns:
- the converted value
float GuidoInches2Unit |
( |
float |
val ) |
|
Converts inches into internal Guido units.
- Parameters:
-
val | the value to be converted |
- Returns:
- the converted value
Resize the page sizes to the music size.
- Parameters:
-
inHandleGR | a Guido opaque handle to a GR structure. |
- Returns:
- a Guido error code.