Text
Buffer
Class
constructor
parent_
class
name
apply_
tag
begin_
user_
action
changed
delete_
range
end_
user_
action
insert_
child_
anchor
insert_
pixbuf
insert_
text
mark_
deleted
mark_
set
modified_
changed
paste_
done
remove_
tag
GJS API Reference
Gtk-3.0
Gtk
TextBufferClass
Class TextBufferClass
Hierarchy
TextBufferClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
apply_
tag
begin_
user_
action
changed
delete_
range
end_
user_
action
insert_
child_
anchor
insert_
pixbuf
insert_
text
mark_
deleted
mark_
set
modified_
changed
paste_
done
remove_
tag
Constructors
constructor
new
Text
Buffer
Class
(
)
:
Gtk
.
TextBufferClass
Returns
Gtk
.
TextBufferClass
Properties
parent_
class
parent_
class
:
GObject
.
ObjectClass
The object class structure needs to be the first.
field
Static
name
name
:
string
Methods
apply_
tag
apply_
tag
(
buffer
:
Gtk
.
TextBuffer
, tag
:
Gtk
.
TextTag
, start
:
Gtk
.
TextIter
, end
:
Gtk
.
TextIter
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
tag:
Gtk
.
TextTag
start:
Gtk
.
TextIter
end:
Gtk
.
TextIter
Returns
void
begin_
user_
action
begin_
user_
action
(
buffer
:
Gtk
.
TextBuffer
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
Returns
void
changed
changed
(
buffer
:
Gtk
.
TextBuffer
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
Returns
void
delete_
range
delete_
range
(
buffer
:
Gtk
.
TextBuffer
, start
:
Gtk
.
TextIter
, end
:
Gtk
.
TextIter
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
start:
Gtk
.
TextIter
end:
Gtk
.
TextIter
Returns
void
end_
user_
action
end_
user_
action
(
buffer
:
Gtk
.
TextBuffer
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
Returns
void
insert_
child_
anchor
insert_
child_
anchor
(
buffer
:
Gtk
.
TextBuffer
, iter
:
Gtk
.
TextIter
, anchor
:
Gtk
.
TextChildAnchor
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
iter:
Gtk
.
TextIter
anchor:
Gtk
.
TextChildAnchor
Returns
void
insert_
pixbuf
insert_
pixbuf
(
buffer
:
Gtk
.
TextBuffer
, iter
:
Gtk
.
TextIter
, pixbuf
:
Pixbuf
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
iter:
Gtk
.
TextIter
pixbuf:
Pixbuf
Returns
void
insert_
text
insert_
text
(
buffer
:
Gtk
.
TextBuffer
, pos
:
Gtk
.
TextIter
, new_text
:
string
, new_text_length
:
number
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
pos:
Gtk
.
TextIter
new_text:
string
new_text_length:
number
Returns
void
mark_
deleted
mark_
deleted
(
buffer
:
Gtk
.
TextBuffer
, mark
:
Gtk
.
TextMark
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
mark:
Gtk
.
TextMark
Returns
void
mark_
set
mark_
set
(
buffer
:
Gtk
.
TextBuffer
, location
:
Gtk
.
TextIter
, mark
:
Gtk
.
TextMark
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
location:
Gtk
.
TextIter
mark:
Gtk
.
TextMark
Returns
void
modified_
changed
modified_
changed
(
buffer
:
Gtk
.
TextBuffer
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
Returns
void
paste_
done
paste_
done
(
buffer
:
Gtk
.
TextBuffer
, clipboard
:
Gtk
.
Clipboard
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
clipboard:
Gtk
.
Clipboard
Returns
void
remove_
tag
remove_
tag
(
buffer
:
Gtk
.
TextBuffer
, tag
:
Gtk
.
TextTag
, start
:
Gtk
.
TextIter
, end
:
Gtk
.
TextIter
)
:
void
Parameters
buffer:
Gtk
.
TextBuffer
tag:
Gtk
.
TextTag
start:
Gtk
.
TextIter
end:
Gtk
.
TextIter
Returns
void
Text
Buffer
Class
constructor
parent_
class
name
apply_
tag
begin_
user_
action
changed
delete_
range
end_
user_
action
insert_
child_
anchor
insert_
pixbuf
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