DOKK / manpages / debian 11 / m17n-docs / minput_open_im.3m17n.en
minput_open_im(3m17n) The m17n Library minput_open_im(3m17n)

minput_open_im - Open an input method.

MInputMethod* minput_open_im (MSymbol language, MSymbol name, void * arg)

Open an input method. The minput_open_im() function opens an input method whose language and name match language and name, and returns a pointer to the input method object newly allocated.

This function at first decides a driver for the input method as described below.

If language is not Mnil, the driver pointed by the variable minput_driver is used.

If language is Mnil and name has the property Minput_driver, the driver pointed to by the property value is used to open the input method. If name has no such a property, NULL is returned.

Then, the member MInputDriver::open_im() of the driver is called.

arg is set in the member arg of the structure MInputMethod so that the driver can refer to it.

Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.

12 Jan 2011 Version 1.6.2