SourcePrintCompositor.from_view


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.2" ) ]
public SourcePrintCompositor.from_view (SourceView 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 tab_width, highlight_syntax, wrap_mode, body_font_name and print_line_numbers.

Parameters:

view

a SourceView to get configuration from.

Returns:

a new print compositor object.