PrintCompositor

constructor(buffer: Buffer)

Creates a new print compositor that can be used to print @buffer.

Return

a new print compositor object.

Parameters

buffer

the #GtkSourceBuffer to print.


constructor(view: View)

Creates a new print compositor that can be used to print the buffer associated with @view.

This constructor sets some configuration properties to make the printed output match @view as much as possible. The properties set are property@PrintCompositor:tab-width, property@PrintCompositor:highlight-syntax, property@PrintCompositor:wrap-mode, property@PrintCompositor:body-font-name and property@PrintCompositor:print-line-numbers.

Return

a new print compositor object.

Parameters

view

a #GtkSourceView to get configuration from.


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)