minput_set_spot - Set the spot of the input context.
, int x
, int ascent
, int descent
, int fontsize
, int pos
Set the spot of the input context.
The minput_set_spot() function sets the spot of input context ic to coordinate (
, y ) with the height specified by ascent and descent .
semantics of these values depends on the input method driver.
For instance, a driver designed to work in a CUI environment may use x and y as
the column- and row numbers, and may ignore ascent and descent .
driver designed to work in a window system may interpret x and y as the pixel
offsets relative to the origin of the client window, and may interpret ascent
and descent as the ascent- and descent pixels of the line at ( x
. y ).
specifies the fontsize of preedit text in 1/10 point.
and pos are the M-text and the character position at the spot. mt may
be NULL ,
in which case, the input method cannot get information about
the text around the spot.
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2009 National Institute of Advanced Industrial Science and
Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU Free Documentation License