IMContext
Class
constructor
name
commit
delete_
surrounding
filter_
keypress
focus_
in
focus_
out
get_
preedit_
string
get_
surrounding
preedit_
changed
preedit_
end
preedit_
start
reset
retrieve_
surrounding
set_
client_
window
set_
cursor_
location
set_
surrounding
set_
use_
preedit
GJS API Reference
Gtk-3.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
preedit_
changed
preedit_
end
preedit_
start
reset
retrieve_
surrounding
set_
client_
window
set_
cursor_
location
set_
surrounding
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
.
EventKey
)
:
boolean
Parameters
context:
Gtk
.
IMContext
event:
Gdk
.
EventKey
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
]
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_
window
set_
client_
window
(
context
:
Gtk
.
IMContext
, window
:
Gdk
.
Window
)
:
void
Parameters
context:
Gtk
.
IMContext
window:
Gdk
.
Window
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_
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
preedit_
changed
preedit_
end
preedit_
start
reset
retrieve_
surrounding
set_
client_
window
set_
cursor_
location
set_
surrounding
set_
use_
preedit
base64:eyJwYWdlTmF2aWdhdGlvbiI6W3siY2xhc3NOYW1lcyI6InRzZC1raW5kLWNvbnN0cnVjdG9yIHRzZC1wYXJlbnQta2luZC1jbGFzcyIsImhyZWYiOiJHdGtfM18wLkd0ay5JTUNvbnRleHRDbGFzcy5odG1sI2NvbnN0cnVjdG9yIiwibmFt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