![]() |
![]() |
![]() |
xmlroff Reference Manual | ![]() |
---|---|---|---|---|
void fo_doc_begin_page (FoDoc *fo_doc, gdouble width, gdouble height, GError **error); void fo_doc_end_page (FoDoc *fo_doc); FoDatatype* fo_doc_get_fill_color (FoDoc *fo_doc); void fo_doc_set_fill_color (FoDoc *fo_doc, FoDatatype *color); FoDatatype* fo_doc_get_stroke_color (FoDoc *fo_doc); void fo_doc_set_stroke_color (FoDoc *fo_doc, FoDatatype *color); FoDocLineCap fo_doc_get_line_cap (FoDoc *fo_doc); void fo_doc_set_line_cap (FoDoc *fo_doc, FoDocLineCap line_cap); FoDocLineJoin fo_doc_get_line_join (FoDoc *fo_doc); void fo_doc_set_line_join (FoDoc *fo_doc, FoDocLineJoin line_join); gdouble fo_doc_get_line_width (FoDoc *fo_doc); void fo_doc_set_line_width (FoDoc *fo_doc, gdouble line_width); void fo_doc_set_dash (FoDoc *fo_doc, gdouble b, gdouble w); void fo_doc_translate (FoDoc *fo_doc, gdouble x, gdouble y); void fo_doc_clip (FoDoc *fo_doc); void fo_doc_save (FoDoc *fo_doc); void fo_doc_restore (FoDoc *fo_doc); void fo_doc_line_to (FoDoc *fo_doc, gdouble x, gdouble y); void fo_doc_move_to (FoDoc *fo_doc, gdouble x, gdouble y); void fo_doc_line_stroked (FoDoc *fo_doc, gdouble x0, gdouble y0, gdouble x1, gdouble y1); void fo_doc_rect_stroked (FoDoc *fo_doc, gdouble x, gdouble y, gdouble width, gdouble height); void fo_doc_rect_filled (FoDoc *fo_doc, gdouble x, gdouble y, gdouble width, gdouble height); void fo_doc_fill (FoDoc *fo_doc); void fo_doc_stroke (FoDoc *fo_doc); void fo_doc_place_image (FoDoc *fo_doc, FoImage *fo_image, gdouble x, gdouble y, gdouble xscale, gdouble yscale); FoFontDesc* fo_doc_get_font_desc (FoDoc *fo_doc); void fo_doc_render_layout_lines (FoDoc *fo_doc, FoArea *area_layout, gdouble x, gdouble y); void fo_doc_render_layout (FoDoc *fo_doc, FoArea *area_layout, gdouble x, gdouble y);
void fo_doc_begin_page (FoDoc *fo_doc, gdouble width, gdouble height, GError **error);
Add a new page to fo_doc
.
This must always be paired with a matching fo_doc_end_page call.
|
FoDoc. |
|
Width of the new page. |
|
Height of the new page. |
|
Indication of any error that occurred. |
void fo_doc_end_page (FoDoc *fo_doc);
Finish the current page of fo_doc
.
|
FoDoc. |
FoDatatype* fo_doc_get_fill_color (FoDoc *fo_doc);
Get the current fill color of fo_doc
.
|
FoDoc. |
Returns : |
FoDatatype for the current fill color. |
void fo_doc_set_fill_color (FoDoc *fo_doc, FoDatatype *color);
Set the fill color of fo_doc
to color
.
|
FoDoc. |
|
FoDatatype for new fill color. |
FoDatatype* fo_doc_get_stroke_color (FoDoc *fo_doc);
Get the current stroke color of fo_doc
.
|
FoDoc. |
Returns : |
FoDatatype for the current stroke color. |
void fo_doc_set_stroke_color (FoDoc *fo_doc, FoDatatype *color);
Set the stroke color of fo_doc
to color
.
|
FoDoc. |
|
FoDatatype for new stroke color. |
FoDocLineCap fo_doc_get_line_cap (FoDoc *fo_doc);
Get the current "linecap" parameter value of fo_doc
.
|
FoDoc. |
Returns : |
Current "linecap" parameter value. |
void fo_doc_set_line_cap (FoDoc *fo_doc, FoDocLineCap line_cap);
Set the "linecap" parameter value of fo_doc
.
|
FoDoc. |
|
New "linecap" parameter value. |
FoDocLineJoin fo_doc_get_line_join (FoDoc *fo_doc);
Get the current "linejoin" parameter value of fo_doc
.
|
FoDoc. |
Returns : |
Current "linejoin" parameter value. |
void fo_doc_set_line_join (FoDoc *fo_doc, FoDocLineJoin line_join);
Set the "linejoin" parameter value of fo_doc
.
|
FoDoc. |
|
New "linejoin" parameter value. |
gdouble fo_doc_get_line_width (FoDoc *fo_doc);
Get the current line width of fo_doc
.
|
FoDoc. |
Returns : |
Current line width. |
void fo_doc_set_line_width (FoDoc *fo_doc, gdouble line_width);
Set the line width of fo_doc
.
|
FoDoc. |
|
New line width value. |
void fo_doc_set_dash (FoDoc *fo_doc, gdouble b, gdouble w);
Set the current dash pattern of fo_doc
.
The dash pattern is the ratio of b
to w
.
Set b
and w
to 0 to produce a solid line.
The dash pattern is set to solid (b
= w
= 0) at the beginning of
each page.
|
FoDoc. |
|
Number of black units. |
|
Number of white units. |
void fo_doc_translate (FoDoc *fo_doc, gdouble x, gdouble y);
Translate the origin of the coordinate system of fo_doc
.
x
and y
are measured in the old coordinate system.
|
FoDoc. |
|
X-coordinate of the new origin of the coordinate system. |
|
Y-coordinate of the new origin of the coordinate system. |
void fo_doc_clip (FoDoc *fo_doc);
Use the current path of fo_doc
as its clipping path.
|
FoDoc. |
void fo_doc_save (FoDoc *fo_doc);
Save the current graphics state of fo_doc
.
|
FoDoc. |
void fo_doc_restore (FoDoc *fo_doc);
Restore the most recently saved graphics state of fo_doc
.
|
FoDoc. |
void fo_doc_line_to (FoDoc *fo_doc, gdouble x, gdouble y);
Draw a line from the current point to another point.
|
FoDoc. |
|
X-coordinate of the new current point. |
|
Y-coordinate of the new current point. |
void fo_doc_move_to (FoDoc *fo_doc, gdouble x, gdouble y);
Set the current point of fo_doc
to (x
, y
).
|
FoDoc. |
|
X-coordinate of the new current point. |
|
Y-coordinate of the new current point. |
void fo_doc_line_stroked (FoDoc *fo_doc, gdouble x0, gdouble y0, gdouble x1, gdouble y1);
Draw a line from (x0
,y0
) to (x1
,y1
).
|
FoDoc. |
|
X-coordinate of the start of the line. |
|
Y-coordinate of the start of the line. |
|
X-coordinate of the end of the line. |
|
Y-coordinate of the end of the line. |
void fo_doc_rect_stroked (FoDoc *fo_doc, gdouble x, gdouble y, gdouble width, gdouble height);
Draw an outline rectangle.
|
FoDoc. |
|
X-coordinate of the lower-left corner of the rectangle. |
|
Y-coordinate of the lower-left corner of the rectangle. |
|
Width of the rectangle. |
|
Height of the rectangle. |
void fo_doc_rect_filled (FoDoc *fo_doc, gdouble x, gdouble y, gdouble width, gdouble height);
Draw a filled rectangle.
|
FoDoc. |
|
X-coordinate of the lower-left corner of the rectangle. |
|
Y-coordinate of the lower-left corner of the rectangle. |
|
Width of the rectangle. |
|
Height of the rectangle. |
void fo_doc_fill (FoDoc *fo_doc);
Fill the interior of the path of fo_doc
with the current fill color.
|
FoDoc. |
void fo_doc_stroke (FoDoc *fo_doc);
Stroke the path of fo_doc
and clear the path.
|
FoDoc. |
void fo_doc_place_image (FoDoc *fo_doc, FoImage *fo_image, gdouble x, gdouble y, gdouble xscale, gdouble yscale);
Places fo_image
in fo_doc
at position given by x
and y
with image
scaled by xscale
and yscale
.
FoFontDesc* fo_doc_get_font_desc (FoDoc *fo_doc);
Get the PangoFontDescription in fo_doc
.
|
FoDoc. |
Returns : |
PangoFontDescription in fo_doc .
|
void fo_doc_render_layout_lines (FoDoc *fo_doc, FoArea *area_layout, gdouble x, gdouble y);
Renders the lines in area_layout
at position (x
, y
) on current
page of fo_doc
.