![]() |
![]() |
![]() |
xmlroff Reference Manual | ![]() |
---|---|---|---|---|
FoLayout; FoLayoutClass; #define FO_LAYOUT_ERROR GQuark fo_layout_error_quark (void); enum FoLayoutError; FoRectangle; FoLayout* fo_layout_new (void); FoLayout* fo_layout_new_from_fo_doc (FoDoc *fo_doc); FoLayout* fo_layout_copy (FoLayout *src); void fo_layout_set_attributes (FoLayout *fo_layout, GList *attr_glist); void fo_layout_set_text (FoLayout *fo_layout, GString *text); void fo_layout_set_width (FoLayout *fo_layout, gfloat width); void fo_layout_set_font_desc (FoLayout *fo_layout, const FoFontDesc *desc); void fo_layout_set_alignment (FoLayout *fo_layout, FoEnumAreaDirection alignment); void fo_layout_set_indent (FoLayout *fo_layout, gfloat indent); void fo_layout_set_justify (FoLayout *fo_layout, gboolean justify); gint fo_layout_get_line_count (FoLayout *fo_layout); void fo_layout_get_extents (FoLayout *fo_layout, FoRectangle *logical_rect); void fo_layout_get_line_extents (FoLayout *fo_layout, gint line_index, FoRectangle *logical_rect); void fo_layout_set_line_height (FoLayout *fo_layout, gfloat line_height); void fo_layout_set_line_stacking_strategy (FoLayout *fo_layout, FoEnumEnum line_stacking_strategy);
GQuark fo_layout_error_quark (void);
Get the error quark for FoLayout.
If the quark does not yet exist, create it.
FoLayout* fo_layout_new (void);
Creates a new FoLayout.
Returns : |
the newly created FoLayout. |
FoLayout* fo_layout_new_from_fo_doc (FoDoc *fo_doc);
Creates a new FoLayout.
void fo_layout_set_attributes (FoLayout *fo_layout, GList *attr_glist);
Sets the attributes of fo_layout
to attr_glist
.
|
FoLayout for which to set attributes. |
|
Attributes to apply to fo_layout .
|
void fo_layout_set_text (FoLayout *fo_layout, GString *text);
Sets the text of fo_layout
to text
.
|
FoLayout for which to set text. |
|
New text of fo_layout .
|
void fo_layout_set_width (FoLayout *fo_layout, gfloat width);
Sets the width of fo_layout
to width
.
|
FoLayout for which to set width. |
|
New width, in points, of fo_layout .
|
void fo_layout_set_font_desc (FoLayout *fo_layout, const FoFontDesc *desc);
Sets the FoFontDesc of fo_layout
to desc
.
|
FoLayout for which to set font desc. |
|
New FoFontDesc of fo_layout .
|
void fo_layout_set_alignment (FoLayout *fo_layout, FoEnumAreaDirection alignment);
Sets the alignment of fo_layout
.
|
FoLayout to have alignment set. |
|
FoEnumAreaDirection value indicating new alignment. |
void fo_layout_set_indent (FoLayout *fo_layout, gfloat indent);
Sets the indent of fo_layout
to indent
.
|
FoLayout for which to set indent. |
|
New indent, in points, of fo_layout .
|
void fo_layout_set_justify (FoLayout *fo_layout, gboolean justify);
Sets whether or not to justify fo_layout
.
|
FoLayout for which to set justify. |
|
Sets whether or not to justify fo_layout .
|
gint fo_layout_get_line_count (FoLayout *fo_layout);
Gets the number of lines in fo_layout
.
|
FoLayout for which to get line count. |
Returns : |
Number of lines in fo_layout .
|
void fo_layout_get_extents (FoLayout *fo_layout, FoRectangle *logical_rect);
Gets the extents of fo_layout
and puts them in logical_rect
.
|
FoLayout for which to get extents |
|
FoRectangle to hold extents |
void fo_layout_get_line_extents (FoLayout *fo_layout, gint line_index, FoRectangle *logical_rect);
Puts the extents of the line of fo_layout
given by line_index
in
logical_rect
.
The first line has line_index
value of 0.
|
FoLayout for which to get line extents. |
|
Number of line for which to get extents. |
|
Holds result. |
void fo_layout_set_line_height (FoLayout *fo_layout, gfloat line_height);
Set the 'line-height' of fo_layout
to line_height
.
|
FoLayout. |
|
'line-height' in points. |
void fo_layout_set_line_stacking_strategy (FoLayout *fo_layout, FoEnumEnum line_stacking_strategy);
Set the 'line-stacking-strategy' property of fo_layout
to
line_stacking_strategy
.
|
FoLayout. |
|
Line stacking strategy to use. |