IMContext
Class
constructor
name
commit
delete_
surrounding
filter_
keypress
focus_
in
focus_
out
get_
preedit_
string
get_
surrounding
get_
surrounding_
with_
selection
preedit_
changed
preedit_
end
preedit_
start
reset
retrieve_
surrounding
set_
client_
widget
set_
cursor_
location
set_
surrounding
set_
surrounding_
with_
selection
set_
use_
preedit
GJS API Reference
Gtk-4.0
Gtk
IMContextClass
Class IMContextClass
Hierarchy
IMContextClass
Index
Constructors
constructor
Properties
name
Methods
commit
delete_
surrounding
filter_
keypress
focus_
in
focus_
out
get_
preedit_
string
get_
surrounding
get_
surrounding_
with_
selection
preedit_
changed
preedit_
end
preedit_
start
reset
retrieve_
surrounding
set_
client_
widget
set_
cursor_
location
set_
surrounding
set_
surrounding_
with_
selection
set_
use_
preedit
Constructors
constructor
new IMContext
Class
(
)
:
Gtk
.
IMContextClass
Returns
Gtk
.
IMContextClass
Properties
Static
name
name
:
string
Methods
commit
commit
(
context
:
Gtk
.
IMContext
, str
:
string
)
:
void
Parameters
context:
Gtk
.
IMContext
str:
string
Returns
void
delete_
surrounding
delete_
surrounding
(
context
:
Gtk
.
IMContext
, offset
:
number
, n_chars
:
number
)
:
boolean
Parameters
context:
Gtk
.
IMContext
offset:
number
n_chars:
number
Returns
boolean
filter_
keypress
filter_
keypress
(
context
:
Gtk
.
IMContext
, event
:
Gdk
.
Event
)
:
boolean
Parameters
context:
Gtk
.
IMContext
event:
Gdk
.
Event
Returns
boolean
focus_
in
focus_
in
(
context
:
Gtk
.
IMContext
)
:
void
Parameters
context:
Gtk
.
IMContext
Returns
void
focus_
out
focus_
out
(
context
:
Gtk
.
IMContext
)
:
void
Parameters
context:
Gtk
.
IMContext
Returns
void
get_
preedit_
string
get_
preedit_
string
(
context
:
Gtk
.
IMContext
)
:
[
string
,
Pango
.
AttrList
,
number
]
Parameters
context:
Gtk
.
IMContext
Returns
[
string
,
Pango
.
AttrList
,
number
]
get_
surrounding
get_
surrounding
(
context
:
Gtk
.
IMContext
)
:
[
boolean
,
string
,
number
]
Parameters
context:
Gtk
.
IMContext
Returns
[
boolean
,
string
,
number
]
get_
surrounding_
with_
selection
get_
surrounding_
with_
selection
(
context
:
Gtk
.
IMContext
)
:
[
boolean
,
string
,
number
,
number
]
Parameters
context:
Gtk
.
IMContext
Returns
[
boolean
,
string
,
number
,
number
]
preedit_
changed
preedit_
changed
(
context
:
Gtk
.
IMContext
)
:
void
Parameters
context:
Gtk
.
IMContext
Returns
void
preedit_
end
preedit_
end
(
context
:
Gtk
.
IMContext
)
:
void
Parameters
context:
Gtk
.
IMContext
Returns
void
preedit_
start
preedit_
start
(
context
:
Gtk
.
IMContext
)
:
void
Parameters
context:
Gtk
.
IMContext
Returns
void
reset
reset
(
context
:
Gtk
.
IMContext
)
:
void
Parameters
context:
Gtk
.
IMContext
Returns
void
retrieve_
surrounding
retrieve_
surrounding
(
context
:
Gtk
.
IMContext
)
:
boolean
Parameters
context:
Gtk
.
IMContext
Returns
boolean
set_
client_
widget
set_
client_
widget
(
context
:
Gtk
.
IMContext
, widget
:
Gtk
.
Widget
)
:
void
Parameters
context:
Gtk
.
IMContext
widget:
Gtk
.
Widget
Returns
void
set_
cursor_
location
set_
cursor_
location
(
context
:
Gtk
.
IMContext
, area
:
Gdk
.
Rectangle
)
:
void
Parameters
context:
Gtk
.
IMContext
area:
Gdk
.
Rectangle
Returns
void
set_
surrounding
set_
surrounding
(
context
:
Gtk
.
IMContext
, text
:
string
, len
:
number
, cursor_index
:
number
)
:
void
Parameters
context:
Gtk
.
IMContext
text:
string
len:
number
cursor_index:
number
Returns
void
set_
surrounding_
with_
selection
set_
surrounding_
with_
selection
(
context
:
Gtk
.
IMContext
, text
:
string
, len
:
number
, cursor_index
:
number
, anchor_index
:
number
)
:
void
Parameters
context:
Gtk
.
IMContext
text:
string
len:
number
cursor_index:
number
anchor_index:
number
Returns
void
set_
use_
preedit
set_
use_
preedit
(
context
:
Gtk
.
IMContext
, use_preedit
:
boolean
)
:
void
Parameters
context:
Gtk
.
IMContext
use_preedit:
boolean
Returns
void
IMContext
Class
constructor
name
commit
delete_
surrounding
filter_
keypress
focus_
in
focus_
out
get_
preedit_
string
get_
surrounding
get_
surrounding_
with_
selection
preedit_
changed
preedit_
end
preedit_
start
reset
retrieve_
surrounding
set_
client_
widget
set_
cursor_
location
set_
surrounding
set_
surrounding_
with_
selection
set_
use_
preedit
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHdGtfNF8wLkd0ay5JTUNvbnRleHRDbGFzcy5odG1sI2NvbnN0cnVjdG9yIiwibmFtZSI6ImNvbnN0cnVjdG9yIiwiY2hpbGRyZW4iOltdLCJpc0V4dGVybiI6ZmFsc2UsImlzSW50ZXJuIjp0cnVlfSx7ImNsYXNzTmFtZXMiOiJ0c2Qta2luZC1wcm9wZXJ0eSB0c2QtcGFyZW50LWtpbmQtY2xhc3MgdHNkLWlzLXN0YXRpYyIsImhyZWYiOiJHdGtfNF8wLkd0ay5JTUNvbnRleHRDbGFzcy5odG1sI25hbWUiLCJuYW1lIjoibmFtZSIsImNoaWxkcmVuIjpbXSwiaXNFeHRlcm4iOmZhbHNlLCJpc0ludGVybiI6dHJ1ZX0seyJjbGFzc05hbWVzIjoidHNkLWtpbmQtbWV0aG9kIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHdGtfNF8wLkd0ay5JTUNvbnRleHRDbGFzcy5odG1sI2NvbW1pdCIsIm5hbWUiOiJjb21taXQiLCJjaGlsZHJlbiI6W10sImlzRXh0ZXJuIjpmYWxzZSwiaXNJbnRlcm4iOnRydWV9LHsiY2xhc3NOYW1lcyI6InRzZC1raW5kLW1ldGhvZCB0c2QtcGFyZW50LWtpbmQtY2xhc3MiLCJocmVmIjoiR3RrXzRfMC5HdGsuSU1Db250ZXh0Q2xhc3MuaHRtbCNkZWxldGVfc3Vycm91bmRpbm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