1Gtk2::SourceView2::BuffUesre(r3)Contributed Perl DocumenGttakt2i:o:nSourceView2::Buffer(3)
2
3
4

NAME

6       Gtk2::SourceView2::Buffer
7

HIERARCHY

9         Glib::Object
10         +----Gtk2::TextBuffer
11              +----Gtk2::SourceView2::Buffer
12

METHODS

14   buffer = Gtk2::SourceView2::Buffer->new ($table)
15       •   $table (Gtk2::TextTagTable or undef)
16
17   buffer = Gtk2::SourceView2::Buffer->new_with_language ($language)
18       •   $language (Gtk2::SourceView2::Language)
19
20   boolean = $buffer->backward_iter_to_source_mark ($iter, $category)
21       •   $iter (Gtk2::TextIter)
22
23       •   $category (string or undef)
24
25   $buffer->begin_not_undoable_action
26   boolean = $buffer->can_redo
27   boolean = $buffer->can_undo
28   mark = $buffer->create_source_mark ($name, $category, $where)
29       •   $name (string or undef)
30
31       •   $category (string)
32
33       •   $where (Gtk2::TextIter)
34
35   $buffer->end_not_undoable_action
36   $buffer->ensure_highlight ($start, $end)
37       •   $start (Gtk2::TextIter)
38
39       •   $end (Gtk2::TextIter)
40
41   boolean = $buffer->forward_iter_to_source_mark ($iter, $category)
42       •   $iter (Gtk2::TextIter)
43
44       •   $category (string or undef)
45
46   boolean = $buffer->get_highlight_matching_brackets
47   $buffer->set_highlight_matching_brackets ($highlight)
48       •   $highlight (boolean)
49
50   boolean = $buffer->get_highlight_syntax
51   $buffer->set_highlight_syntax ($highlight)
52       •   $highlight (boolean)
53
54   language or undef = $buffer->get_language
55   $buffer->set_language ($language)
56       •   $language (Gtk2::SourceView2::Language or undef)
57
58   integer = $buffer->get_max_undo_levels
59   $buffer->set_max_undo_levels ($max_undo_levels)
60       •   $max_undo_levels (integer)
61
62   $buffer->redo
63   $buffer->remove_source_marks ($start, $end, $category)
64       •   $start (Gtk2::TextIter)
65
66       •   $end (Gtk2::TextIter)
67
68       •   $category (string or undef)
69
70   $buffer->get_source_marks_at_iter ($iter, $category)
71       •   $iter (Gtk2::TextIter)
72
73       •   $category (string or undef)
74
75   $buffer->get_source_marks_at_line ($line, $category)
76       •   $line (integer)
77
78       •   $category (string or undef)
79
80   stylescheme or undef = $buffer->get_style_scheme
81   $buffer->set_style_scheme ($scheme)
82       •   $scheme (Gtk2::SourceView2::StyleScheme)
83
84   $buffer->undo

PROPERTIES

86       'can-redo' (boolean : default false : readable)
87           Whether Redo operation is possible
88
89       'can-undo' (boolean : default false : readable)
90           Whether Undo operation is possible
91
92       'highlight-matching-brackets' (boolean : default true : readable /
93       writable)
94           Whether to highlight matching brackets
95
96       'highlight-syntax' (boolean : default true : readable / writable)
97           Whether to highlight syntax in the buffer
98
99       'language' (Gtk2::SourceView2::Language : default undef : readable /
100       writable)
101           Language object to get highlighting patterns from
102
103       'max-undo-levels' (integer : default 1000 : readable / writable)
104           Number of undo levels for the buffer
105
106       'style-scheme' (Gtk2::SourceView2::StyleScheme : default undef :
107       readable / writable)
108           Style scheme
109
110       'undo-manager' (Glib::Object::_Unregistered::GtkSourceUndoManager :
111       default undef : readable / writable / construct)
112           The buffer undo manager
113

SIGNALS

115       bracket-matched (Gtk2::SourceView2::Buffer, Gtk2::TextIter,
116       GtkSourceBracketMatchType)
117       highlight-updated (Gtk2::SourceView2::Buffer, Gtk2::TextIter,
118       Gtk2::TextIter)
119       redo (Gtk2::SourceView2::Buffer)
120       source-mark-updated (Gtk2::SourceView2::Buffer, Gtk2::TextMark)
121       undo (Gtk2::SourceView2::Buffer)
122

ENUMS AND FLAGS

124   enum GtkSourceBracketMatchType
125       •   'none' / 'GTK_SOURCE_BRACKET_MATCH_NONE'
126
127       •   'out-of-range' / 'GTK_SOURCE_BRACKET_MATCH_OUT_OF_RANGE'
128
129       •   'not-found' / 'GTK_SOURCE_BRACKET_MATCH_NOT_FOUND'
130
131       •   'found' / 'GTK_SOURCE_BRACKET_MATCH_FOUND'
132

SEE ALSO

134       Gtk2::SourceView2, Glib::Object, Gtk2::TextBuffer
135
137       Copyright (C) 2009 by Emmanuel Rodriguez
138
139
140
141perl v5.36.0                      2022-07-22      Gtk2::SourceView2::Buffer(3)
Impressum