Text
View
Class
constructor
parent_
class
name
backspace
copy_
clipboard
cut_
clipboard
delete_
from_
cursor
extend_
selection
insert_
at_
cursor
insert_
emoji
move_
cursor
paste_
clipboard
set_
anchor
snapshot_
layer
toggle_
overwrite
GJS API Reference
Gtk-4.0
Gtk
TextViewClass
Class TextViewClass
Hierarchy
TextViewClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
backspace
copy_
clipboard
cut_
clipboard
delete_
from_
cursor
extend_
selection
insert_
at_
cursor
insert_
emoji
move_
cursor
paste_
clipboard
set_
anchor
snapshot_
layer
toggle_
overwrite
Constructors
constructor
new
Text
View
Class
(
)
:
Gtk
.
TextViewClass
Returns
Gtk
.
TextViewClass
Properties
parent_
class
parent_
class
:
Gtk
.
WidgetClass
The object class structure needs to be the first
field
Static
name
name
:
string
Methods
backspace
backspace
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
copy_
clipboard
copy_
clipboard
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
cut_
clipboard
cut_
clipboard
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
delete_
from_
cursor
delete_
from_
cursor
(
text_view
:
Gtk
.
TextView
, type
:
Gtk
.
DeleteType
, count
:
number
)
:
void
Parameters
text_view:
Gtk
.
TextView
type:
Gtk
.
DeleteType
count:
number
Returns
void
extend_
selection
extend_
selection
(
text_view
:
Gtk
.
TextView
, granularity
:
Gtk
.
TextExtendSelection
, location
:
Gtk
.
TextIter
, start
:
Gtk
.
TextIter
, end
:
Gtk
.
TextIter
)
:
boolean
Parameters
text_view:
Gtk
.
TextView
granularity:
Gtk
.
TextExtendSelection
location:
Gtk
.
TextIter
start:
Gtk
.
TextIter
end:
Gtk
.
TextIter
Returns
boolean
insert_
at_
cursor
insert_
at_
cursor
(
text_view
:
Gtk
.
TextView
, str
:
string
)
:
void
Parameters
text_view:
Gtk
.
TextView
str:
string
Returns
void
insert_
emoji
insert_
emoji
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
move_
cursor
move_
cursor
(
text_view
:
Gtk
.
TextView
, step
:
Gtk
.
MovementStep
, count
:
number
, extend_selection
:
boolean
)
:
void
Parameters
text_view:
Gtk
.
TextView
step:
Gtk
.
MovementStep
count:
number
extend_selection:
boolean
Returns
void
paste_
clipboard
paste_
clipboard
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
set_
anchor
set_
anchor
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
snapshot_
layer
snapshot_
layer
(
text_view
:
Gtk
.
TextView
, layer
:
Gtk
.
TextViewLayer
, snapshot
:
Gtk
.
Snapshot
)
:
void
Parameters
text_view:
Gtk
.
TextView
layer:
Gtk
.
TextViewLayer
snapshot:
Gtk
.
Snapshot
Returns
void
toggle_
overwrite
toggle_
overwrite
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
Returns
void
Text
View
Class
constructor
parent_
class
name
backspace
copy_
clipboard
cut_
clipboard
delete_
from_
cursor
extend_
selection
insert_
at_
cursor
insert_
emoji
move_
cursor
paste_
clipboard
set_
anchor
snapshot_
layer
toggle_
overwrite
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHdGtfNF8wLkd0ay5UZXh0Vmlld0NsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLXByb3BlcnR5IHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhy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