Handbook
Glossary
on-retrieve-surrounding ( im-context win -- ? )
Gtk-based UI backend
Prev:
on-delete-surrounding ( im-context offset n win -- ? )
Next:
on-key-press/release ( win event user-data -- ? )
Vocabulary
ui
.
backend
.
gtk2
Inputs
im-context
an
object
win
an
object
Outputs
?
an
object
Definition
USING:
alien.strings
gtk2.ffi
io.encodings.utf8
kernel
ui.backend.gtk2.input-methods
ui.gestures
ui.private
;
IN:
ui.backend.gtk2
:
on-retrieve-surrounding
( im-context win -- ? )
window
world-focus
dup
support-input-methods?
[
cursor-surrounding
[
utf8
string>alien
-1
]
dip
gtk_im_context_set_surrounding
t
]
[
2drop
f
]
if
;