1Gtk2::SourceView2::ViewU(s3e)r Contributed Perl DocumentaGttiko2n::SourceView2::View(3)
2
3
4

NAME

6       Gtk2::SourceView2::View
7

HIERARCHY

9         Glib::Object
10         +----Glib::InitiallyUnowned
11              +----Gtk2::Object
12                   +----Gtk2::Widget
13                        +----Gtk2::Container
14                             +----Gtk2::TextView
15                                  +----Gtk2::SourceView2::View
16

INTERFACES

18         Glib::Object::_Unregistered::AtkImplementorIface
19         Gtk2::Buildable
20

METHODS

22   widget = Gtk2::SourceView2::View->new
23   widget = Gtk2::SourceView2::View->new_with_buffer ($buffer)
24       ·   $buffer (Gtk2::SourceView2::Buffer)
25
26   boolean = $view->get_auto_indent
27   $view->set_auto_indent ($enable)
28       ·   $enable (boolean)
29
30   drawspacesflags = $view->get_draw_spaces
31   $view->set_draw_spaces ($flags)
32       ·   $flags (Gtk2::SourceView2::DrawSpacesFlags)
33
34   boolean = $view->get_highlight_current_line
35   $view->set_highlight_current_line ($show)
36       ·   $show (boolean)
37
38   boolean = $view->get_indent_on_tab
39   $view->set_indent_on_tab ($enable)
40       ·   $enable (boolean)
41
42   integer = $view->get_indent_width
43   $view->set_indent_width ($width)
44       ·   $width (integer)
45
46   boolean = $view->get_insert_spaces_instead_of_tabs
47   $view->set_insert_spaces_instead_of_tabs ($enable)
48       ·   $enable (boolean)
49
50   color = $view->get_mark_category_background ($category)
51       ·   $category (string)
52
53   $view->set_mark_category_background ($category, $color)
54       ·   $category (string)
55
56       ·   $color (Gtk2::Gdk::Color or undef)
57
58   pixbuf or undef = $view->get_mark_category_pixbuf ($category)
59       ·   $category (string)
60
61   $view->set_mark_category_pixbuf ($category, $pixbuf)
62       ·   $category (string)
63
64       ·   $pixbuf (Gtk2::Gdk::Pixbuf or undef)
65
66   integer = $view->get_mark_category_priority ($category)
67       ·   $category (string)
68
69   $view->set_mark_category_priority ($category, $priority)
70       ·   $category (string)
71
72       ·   $priority (integer)
73
74   integer = $view->get_right_margin_position
75   $view->set_right_margin_position ($pos)
76       ·   $pos (integer)
77
78   boolean = $view->get_show_line_marks
79   $view->set_show_line_marks ($show)
80       ·   $show (boolean)
81
82   boolean = $view->get_show_line_numbers
83   $view->set_show_line_numbers ($show)
84       ·   $show (boolean)
85
86   boolean = $view->get_show_right_margin
87   $view->set_show_right_margin ($show)
88       ·   $show (boolean)
89
90   smarthomeendtype = $view->get_smart_home_end
91   $view->set_smart_home_end ($smart_he)
92       ·   $smart_he (Gtk2::SourceView2::SmartHomeEndType)
93
94   integer = $view->get_tab_width
95   $view->set_tab_width ($width)
96       ·   $width (integer)
97

PROPERTIES

99       'auto-indent' (boolean : default false : readable / writable)
100           Whether to enable auto indentation
101
102       'completion' (Glib::Object::_Unregistered::GtkSourceCompletion :
103       default undef : readable)
104           The completion object associated with the view
105
106       'draw-spaces' (Gtk2::SourceView2::DrawSpacesFlags : default  : readable
107       / writable)
108           Set if and how the spaces should be visualized
109
110       'highlight-current-line' (boolean : default false : readable /
111       writable)
112           Whether to highlight the current line
113
114       'indent-on-tab' (boolean : default true : readable / writable)
115           Whether to indent the selected text when the tab key is pressed
116
117       'indent-width' (integer : default -1 : readable / writable)
118           Number of spaces to use for each step of indent
119
120       'insert-spaces-instead-of-tabs' (boolean : default false : readable /
121       writable)
122           Whether to insert spaces instead of tabs
123
124       'right-margin-position' (Glib::UInt : default 80 : readable / writable)
125           Position of the right margin
126
127       'show-line-marks' (boolean : default false : readable / writable)
128           Whether to display line mark pixbufs
129
130       'show-line-numbers' (boolean : default false : readable / writable)
131           Whether to display line numbers
132
133       'show-right-margin' (boolean : default false : readable / writable)
134           Whether to display the right margin
135
136       'smart-home-end' (Gtk2::SourceView2::SmartHomeEndType : default
137       "disabled" : readable / writable)
138           HOME and END keys move to first/last non whitespace characters on
139           line before going to the start/end of the line
140
141       'tab-width' (Glib::UInt : default 8 : readable / writable)
142           Width of a tab character expressed in spaces
143

SIGNALS

145       line-mark-activated (Gtk2::SourceView2::View, Gtk2::TextIter,
146       Gtk2::Gdk::Event)
147       move-lines (Gtk2::SourceView2::View, boolean, integer)
148       move-words (Gtk2::SourceView2::View, integer)
149       redo (Gtk2::SourceView2::View)
150       show-completion (Gtk2::SourceView2::View)
151       smart-home-end (Gtk2::SourceView2::View, Gtk2::TextIter, integer)
152       undo (Gtk2::SourceView2::View)
153

ENUMS AND FLAGS

155   flags Gtk2::SourceView2::DrawSpacesFlags
156       ·   'space' / 'GTK_SOURCE_DRAW_SPACES_SPACE'
157
158       ·   'tab' / 'GTK_SOURCE_DRAW_SPACES_TAB'
159
160       ·   'newline' / 'GTK_SOURCE_DRAW_SPACES_NEWLINE'
161
162       ·   'nbsp' / 'GTK_SOURCE_DRAW_SPACES_NBSP'
163
164       ·   'leading' / 'GTK_SOURCE_DRAW_SPACES_LEADING'
165
166       ·   'text' / 'GTK_SOURCE_DRAW_SPACES_TEXT'
167
168       ·   'trailing' / 'GTK_SOURCE_DRAW_SPACES_TRAILING'
169
170       ·   'all' / 'GTK_SOURCE_DRAW_SPACES_ALL'
171
172   enum Gtk2::SourceView2::SmartHomeEndType
173       ·   'disabled' / 'GTK_SOURCE_SMART_HOME_END_DISABLED'
174
175       ·   'before' / 'GTK_SOURCE_SMART_HOME_END_BEFORE'
176
177       ·   'after' / 'GTK_SOURCE_SMART_HOME_END_AFTER'
178
179       ·   'always' / 'GTK_SOURCE_SMART_HOME_END_ALWAYS'
180

SEE ALSO

182       Gtk2::SourceView2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object,
183       Gtk2::Widget, Gtk2::Container, Gtk2::TextView
184
186       Copyright (C) 2009 by Emmanuel Rodriguez
187
188
189
190perl v5.32.0                      2020-07-28        Gtk2::SourceView2::View(3)
Impressum