Text
View
Class
constructor
parent_
class
name
backspace
copy_
clipboard
cut_
clipboard
delete_
from_
cursor
draw_
layer
extend_
selection
insert_
at_
cursor
insert_
emoji
move_
cursor
paste_
clipboard
populate_
popup
set_
anchor
toggle_
overwrite
GJS API Reference
Gtk-3.0
Gtk
TextViewClass
Class TextViewClass
Hierarchy
TextViewClass
Index
Constructors
constructor
Properties
parent_
class
name
Methods
backspace
copy_
clipboard
cut_
clipboard
delete_
from_
cursor
draw_
layer
extend_
selection
insert_
at_
cursor
insert_
emoji
move_
cursor
paste_
clipboard
populate_
popup
set_
anchor
toggle_
overwrite
Constructors
constructor
new
Text
View
Class
(
)
:
Gtk
.
TextViewClass
Returns
Gtk
.
TextViewClass
Properties
parent_
class
parent_
class
:
Gtk
.
ContainerClass
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
draw_
layer
draw_
layer
(
text_view
:
Gtk
.
TextView
, layer
:
Gtk
.
TextViewLayer
, cr
:
cairo
.
Context
)
:
void
Parameters
text_view:
Gtk
.
TextView
layer:
Gtk
.
TextViewLayer
cr:
cairo
.
Context
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
populate_
popup
populate_
popup
(
text_view
:
Gtk
.
TextView
, popup
:
Gtk
.
Widget
)
:
void
Parameters
text_view:
Gtk
.
TextView
popup:
Gtk
.
Widget
Returns
void
set_
anchor
set_
anchor
(
text_view
:
Gtk
.
TextView
)
:
void
Parameters
text_view:
Gtk
.
TextView
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
draw_
layer
extend_
selection
insert_
at_
cursor
insert_
emoji
move_
cursor
paste_
clipboard
populate_
popup
set_
anchor
toggle_
overwrite
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHdGtfM18wLkd0ay5UZXh0Vmlld0NsYXNzLmh0bWwjY29uc3RydWN0b3IiLCJuYW1lIjoiY29uc3RydWN0b3IiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZ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