1Gtk2::SourceView2::PrinUtsCeormpCoosnittroirb(u3t)ed PerGltkD2o:c:uSmoeunrtcaetViioenw2::PrintCompositor(3)
2
3
4

NAME

6       Gtk2::SourceView2::PrintCompositor
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::SourceView2::PrintCompositor
11

METHODS

13   printcompositor = Gtk2::SourceView2::PrintCompositor->new ($buffer)
14       ·   $buffer (Gtk2::SourceView2::Buffer)
15
16   printcompositor = Gtk2::SourceView2::PrintCompositor->new_from_view ($view)
17       ·   $view (Gtk2::SourceView2::View)
18
19   string = $compositor->get_body_font_name
20   $compositor->set_body_font_name ($font_name)
21       ·   $font_name (string)
22
23   double = $compositor->get_bottom_margin ($unit)
24       ·   $unit (Gtk2::Unit)
25
26   $compositor->set_bottom_margin ($margin, $unit)
27       ·   $margin (double)
28
29       ·   $unit (Gtk2::Unit)
30
31   buffer = $compositor->get_buffer
32   $compositor->draw_page ($context, $page_nr)
33       ·   $context (Gtk2::PrintContext)
34
35       ·   $page_nr (integer)
36
37   string = $compositor->get_footer_font_name
38   $compositor->set_footer_font_name ($font_name)
39       ·   $font_name (string or undef)
40
41   $compositor->set_footer_format ($separator, $left, $center, $right)
42       ·   $separator (boolean)
43
44       ·   $left (string or undef)
45
46       ·   $center (string or undef)
47
48       ·   $right (string or undef)
49
50   string = $compositor->get_header_font_name
51   $compositor->set_header_font_name ($font_name)
52       ·   $font_name (string or undef)
53
54   $compositor->set_header_format ($separator, $left, $center, $right)
55       ·   $separator (boolean)
56
57       ·   $left (string or undef)
58
59       ·   $center (string or undef)
60
61       ·   $right (string or undef)
62
63   boolean = $compositor->get_highlight_syntax
64   $compositor->set_highlight_syntax ($highlight)
65       ·   $highlight (boolean)
66
67   double = $compositor->get_left_margin ($unit)
68       ·   $unit (Gtk2::Unit)
69
70   $compositor->set_left_margin ($margin, $unit)
71       ·   $margin (double)
72
73       ·   $unit (Gtk2::Unit)
74
75   string = $compositor->get_line_numbers_font_name
76   $compositor->set_line_numbers_font_name ($font_name)
77       ·   $font_name (string or undef)
78
79   integer = $compositor->get_n_pages
80   boolean = $compositor->paginate ($context)
81       ·   $context (Gtk2::PrintContext)
82
83   double = $compositor->get_pagination_progress
84   boolean = $compositor->get_print_footer
85   $compositor->set_print_footer ($print)
86       ·   $print (boolean)
87
88   boolean = $compositor->get_print_header
89   $compositor->set_print_header ($print)
90       ·   $print (boolean)
91
92   integer = $compositor->get_print_line_numbers
93   $compositor->set_print_line_numbers ($interval)
94       ·   $interval (integer)
95
96   double = $compositor->get_right_margin ($unit)
97       ·   $unit (Gtk2::Unit)
98
99   $compositor->set_right_margin ($margin, $unit)
100       ·   $margin (double)
101
102       ·   $unit (Gtk2::Unit)
103
104   integer = $compositor->get_tab_width
105   $compositor->set_tab_width ($width)
106       ·   $width (integer)
107
108   double = $compositor->get_top_margin ($unit)
109       ·   $unit (Gtk2::Unit)
110
111   $compositor->set_top_margin ($margin, $unit)
112       ·   $margin (double)
113
114       ·   $unit (Gtk2::Unit)
115
116   wrapmode = $compositor->get_wrap_mode
117   $compositor->set_wrap_mode ($wrap_mode)
118       ·   $wrap_mode (Gtk2::WrapMode)
119

PROPERTIES

121       'body-font-name' (string : default undef : readable / writable)
122           Name of the font to use for the text body (e.g. "Monospace 10")
123
124       'buffer' (Gtk2::SourceView2::Buffer : default undef : readable /
125       writable / construct-only)
126           The GtkSourceBuffer object to print
127
128       'footer-font-name' (string : default undef : readable / writable)
129           Name of the font to use for the page footer (e.g. "Monospace 10")
130
131       'header-font-name' (string : default undef : readable / writable)
132           Name of the font to use for the page header (e.g. "Monospace 10")
133
134       'highlight-syntax' (boolean : default true : readable / writable)
135           Whether to print the document with highlighted syntax
136
137       'line-numbers-font-name' (string : default undef : readable / writable)
138           Name of the font to use for the line numbers (e.g. "Monospace 10")
139
140       'n-pages' (integer : default -1 : readable)
141           The number of pages in the document (-1 means the document has not
142           been completely paginated).
143
144       'print-footer' (boolean : default false : readable / writable)
145           Whether to print a footer in each page
146
147       'print-header' (boolean : default false : readable / writable)
148           Whether to print a header in each page
149
150       'print-line-numbers' (Glib::UInt : default 1 : readable / writable)
151           Interval of printed line numbers (0 means no numbers)
152
153       'tab-width' (Glib::UInt : default 8 : readable / writable)
154           Width of a tab character expressed in spaces
155
156       'wrap-mode' (Gtk2::WrapMode : default "none" : readable / writable)
157           Whether to wrap lines never, at word boundaries, or at character
158           boundaries.
159

ENUMS AND FLAGS

161   enum Gtk2::Unit
162       ·   'pixel' / 'GTK_UNIT_PIXEL'
163
164       ·   'points' / 'GTK_UNIT_POINTS'
165
166       ·   'inch' / 'GTK_UNIT_INCH'
167
168       ·   'mm' / 'GTK_UNIT_MM'
169
170   enum Gtk2::WrapMode
171       ·   'none' / 'GTK_WRAP_NONE'
172
173       ·   'char' / 'GTK_WRAP_CHAR'
174
175       ·   'word' / 'GTK_WRAP_WORD'
176
177       ·   'word-char' / 'GTK_WRAP_WORD_CHAR'
178

SEE ALSO

180       Gtk2::SourceView2, Glib::Object
181
183       Copyright (C) 2009 by Emmanuel Rodriguez
184
185
186
187perl v5.32.0                      2020-07-G2t8k2::SourceView2::PrintCompositor(3)
Impressum