PrintCompositor
Compose a class@Buffer for printing.
The GtkSourcePrintCompositor
object is used to compose a class@Buffer for printing. You can set various configuration options to customize the printed output. GtkSourcePrintCompositor
is designed to be used with the high-level printing API of gtk+, i.e. class@Gtk.PrintOperation.
The margins specified in this object are the layout margins: they define the blank space bordering the printed area of the pages. They must not be confused with the "print margins", i.e. the parts of the page that the printer cannot print on, defined in the class@Gtk.PageSetup objects. If the specified layout margins are smaller than the "print margins", the latter ones are used as a fallback by the GtkSourcePrintCompositor
object, so that the printed area is not clipped.
Skipped during bindings generation
method
footer-font-name
: Property TypeInfo of getter and setter do not matchmethod
header-font-name
: Property TypeInfo of getter and setter do not matchmethod
line-numbers-font-name
: Property TypeInfo of getter and setter do not match
Properties
Name of the font used for the text body.
Whether to print the document with highlighted syntax.
Whether to print a footer in each page.
Whether to print a header in each page.
Interval of printed line numbers.
Functions
Returns the name of the font used to print the text body.
Gets the bottom margin in units of @unit.
Returns the name of the font used to print the page footer.
Returns the name of the font used to print the page header.
Determines whether the printed text will be highlighted according to the buffer rules.
Gets the left margin in units of @unit.
Returns the name of the font used to print line numbers on the left margin.
Returns the current fraction of the document pagination that has been completed.
Determines if a footer is set to be printed for each page.
Determines if a header is set to be printed for each page.
Returns the interval used for line number printing.
Gets the right margin in units of @unit.
Returns the width of tabulation in characters for printed text.
Gets the top margin in units of @unit.
Gets the line wrapping mode for the printed text.
Sets the default font for the printed text.
Sets the bottom margin used by @compositor.
Sets the font for printing the page footer.
See method@PrintCompositor.set_header_format for more information about the parameters.
Sets the font for printing the page header.
Sets strftime like header format strings, to be printed on the left, center and right of the top of each page.
Sets whether the printed text will be highlighted according to the buffer rules. Both color and font style are applied.
Sets the left margin used by @compositor.
Sets the font for printing line numbers on the left margin.
Sets whether you want to print a footer in each page.
Sets whether you want to print a header in each page.
Sets the interval for printed line numbers.
Sets the right margin used by @compositor.
Sets the width of tabulation in characters for printed text.
Sets the top margin used by @compositor.
Sets the line wrapping mode for the printed text.