File: group__m17nInputMethod.html

package info (click to toggle)
m17n-docs 1.6.2-2.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 22,492 kB
  • sloc: sh: 1,032; javascript: 635; makefile: 406; ansic: 206; perl: 108
file content (1504 lines) | stat: -rw-r--r-- 123,179 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>The m17n Library: Input Method (basic)</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Input Method (basic)<br/>
<small>
[<a class="el" href="group__m17nShell.html">SHELL API</a>]</small>
</h1>
<p>API for Input method.  
<a href="#_details">More...</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMInputDriver.html">MInputDriver</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Structure of input method driver.  <a href="structMInputDriver.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMInputMethod.html">MInputMethod</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Structure of input method.  <a href="structMInputMethod.html#_details">More...</a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structMInputContext.html">MInputContext</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Structure of input context.  <a href="structMInputContext.html#_details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga93a20c4a45f229e921bc4a3e1aa85312">MInputCallbackFunc</a> )(<a class="el" href="structMInputContext.html">MInputContext</a> *ic, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> command)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Type of input method callback functions.  <a href="#ga93a20c4a45f229e921bc4a3e1aa85312"></a><br/></td></tr>
<tr><td colspan="2"><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga55fdd3ec1e7a1ebcf84468c0637f4e42">MInputCandidatesChanged</a> { <br/>
&nbsp;&nbsp;<a class="el" href="group__m17nInputMethod.html#gga55fdd3ec1e7a1ebcf84468c0637f4e42a175a5183c1e25d8c885f0896200738fa">MINPUT_CANDIDATES_LIST_CHANGED</a> =  1, 
<br/>
&nbsp;&nbsp;<a class="el" href="group__m17nInputMethod.html#gga55fdd3ec1e7a1ebcf84468c0637f4e42a59599bf8a86a08077f83d2451493d1ab">MINPUT_CANDIDATES_INDEX_CHANGED</a> =  2, 
<br/>
&nbsp;&nbsp;<a class="el" href="group__m17nInputMethod.html#gga55fdd3ec1e7a1ebcf84468c0637f4e42a3bb5a55a5ccf58331afe4ef07f18dd58">MINPUT_CANDIDATES_SHOW_CHANGED</a> =  4, 
<br/>
&nbsp;&nbsp;<a class="el" href="group__m17nInputMethod.html#gga55fdd3ec1e7a1ebcf84468c0637f4e42a7a525f8a61edaae9febe3884e496ab27">MINPUT_CANDIDATES_CHANGED_MAX</a>
<br/>
 }</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight"><p>Bit-masks to specify how candidates of input method is changed. </p>
 <a href="group__m17nInputMethod.html#ga55fdd3ec1e7a1ebcf84468c0637f4e42">More...</a><br/></td></tr>
<tr><td colspan="2"><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga4f2d5dc3e6c637d18e2ecf24edfff456">Minput_method</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Symbol whose name is "input-method".  <a href="#ga4f2d5dc3e6c637d18e2ecf24edfff456"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMInputDriver.html">MInputDriver</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gadb0ff8e5e616a810ed27113b17ad363b">minput_default_driver</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The default driver for internal input methods.  <a href="#gadb0ff8e5e616a810ed27113b17ad363b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMInputDriver.html">MInputDriver</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga0e4d7a69ac0861d4b9b58990a0f03702">minput_driver</a></td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The driver for internal input methods.  <a href="#ga0e4d7a69ac0861d4b9b58990a0f03702"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gaf03ec92f0d20d9bff8b9031461270d41">Minput_driver</a></td></tr>
<tr><td colspan="2"><h2>Variables: Predefined symbols for callback commands.</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrp166ee6d4a07099967f73843ae890d3cf"></a> These are the predefined symbols that are used as the <code>COMMAND</code> argument of callback functions of an input method driver (see <a class="el" href="structMInputDriver.html#a159fe7401cd0913dc8c480a18efeff64" title="List of callback functions.">MInputDriver::callback_list</a>).</p>
<p>Most of them do not require extra argument nor return any value; exceptions are these:</p>
<p><b>Minput_get_surrounding_text:</b> When a callback function assigned for this command is called, the first element of <a class="el" href="structMInputContext.html#a12f494b6550e5ec675c187766fb9e461">MInputContext::plist</a> has key <a class="el" href="group__m17nPlist.html#ga0ce08eb57aa339db4d4745e75e80fdd8" title="Symbol whose name is &quot;integer&quot;.">Minteger</a> and the value specifies which portion of the surrounding text should be retrieved. If the value is positive, it specifies the number of characters following the current cursor position. If the value is negative, the absolute value specifies the number of characters preceding the current cursor position. If the value is zero, it means that the caller just wants to know if the surrounding text is currently supported or not.</p>
<p>If the surrounding text is currently supported, the callback function must set the key of this element to <a class="el" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &quot;mtext&quot;.">Mtext</a> and the value to the retrieved M-text. The length of the M-text may be shorter than the requested number of characters, if the available text is not that long. The length can be zero in the worst case. Or, the length may be longer if an application thinks it is more efficient to return that length.</p>
<p>If the surrounding text is not currently supported, the callback function should return without changing the first element of <a class="el" href="structMInputContext.html#a12f494b6550e5ec675c187766fb9e461">MInputContext::plist</a>.</p>
<p><b>Minput_delete_surrounding_text:</b> When a callback function assigned for this command is called, the first element of <a class="el" href="structMInputContext.html#a12f494b6550e5ec675c187766fb9e461">MInputContext::plist</a> has key <a class="el" href="group__m17nPlist.html#ga0ce08eb57aa339db4d4745e75e80fdd8" title="Symbol whose name is &quot;integer&quot;.">Minteger</a> and the value specifies which portion of the surrounding text should be deleted in the same way as the case of Minput_get_surrounding_text. The callback function must delete the specified text. It should not alter <a class="el" href="structMInputContext.html#a12f494b6550e5ec675c187766fb9e461">MInputContext::plist</a>. </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga5516535b28981c4b02b33368f3d56d56">Minput_preedit_start</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga3f96ecb6d7f7f82bc1ba5e47f8da0b92">Minput_preedit_done</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gacb0619c67c071d453dd2920ffc26d0ed">Minput_preedit_draw</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gad3739f8097f1c52f10a8581828b7bb95">Minput_status_start</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga49febb92bb4320bc27f20043517f3169">Minput_status_done</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gae75d45c1dbe0483768e9364af4d282f9">Minput_status_draw</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga6bb355b1b5521571056b96a854f3c6c8">Minput_candidates_start</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga6ff3deabad4489cef99fff428b2628e2">Minput_candidates_done</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga6bf782d7824557ec10e3988f6fcf4834">Minput_candidates_draw</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gaf19d77434bb1a12bdcb50f46448f1402">Minput_set_spot</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gafa306a028998a972bf3a05c8609fe65e">Minput_toggle</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga5f07520efe1e533af2b2322fca2bc9a2">Minput_reset</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga1ca3d6e04f44fada82ed3c81069be23c">Minput_get_surrounding_text</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gab1bfef46ab8e9daa6f3cf53b912b7da8">Minput_delete_surrounding_text</a></td></tr>
<tr><td colspan="2"><h2>Variables: Predefined symbols for special input events.</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrpc0c39849c0524dad7976cd7838b37822"></a> These are the predefined symbols that are used as the <code>KEY</code> argument of <a class="el" href="group__m17nInputMethod.html#ga6d9c3c97524114496fd8b7f70af92457" title="Filter an input key.">minput_filter()</a>. </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga3edb37986f3bcdd15d73884c0d9b239b">Minput_focus_out</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga0d721c64e73c1e362f3cc44716b6c6ab">Minput_focus_in</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga2b2dd61bcb633e89865ebeda1cd9f466">Minput_focus_move</a></td></tr>
<tr><td colspan="2"><h2>Variables: Predefined symbols used in input method information.</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrp38f97959bd3288443b767410964595f4"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gaf84d56e3015c4b26802debcbd9352806">Minherited</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga07679cd0d5bf8e137d5dc554a30aa106">Mcustomized</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gae01597fe66dfef937b4c5c47e54abbd0">Mconfigured</a></td></tr>
<tr><td colspan="2"><h2>Functions</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrpe93acb146e114b5dfa6ce2d12dcb96e4"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMInputMethod.html">MInputMethod</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga34d3e527bfd705d2b7f2b749199c1e11">minput_open_im</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, void *arg)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Open an input method.  <a href="#ga34d3e527bfd705d2b7f2b749199c1e11"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga373b415d157c2507f4ca4a864836e905">minput_close_im</a> (<a class="el" href="structMInputMethod.html">MInputMethod</a> *im)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Close an input method.  <a href="#ga373b415d157c2507f4ca4a864836e905"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga8b32df84c645f73ed65e20a1d51c1859">minput_create_ic</a> (<a class="el" href="structMInputMethod.html">MInputMethod</a> *im, void *arg)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create an input context.  <a href="#ga8b32df84c645f73ed65e20a1d51c1859"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga80e4b330fb112883f2183d54b4e9c5bb">minput_destroy_ic</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroy an input context.  <a href="#ga80e4b330fb112883f2183d54b4e9c5bb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga6d9c3c97524114496fd8b7f70af92457">minput_filter</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> key, void *arg)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Filter an input key.  <a href="#ga6d9c3c97524114496fd8b7f70af92457"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gafe533480c705b877189938a0eecb1b57">minput_lookup</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> key, void *arg, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Look up a text produced in the input context.  <a href="#gafe533480c705b877189938a0eecb1b57"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gac12030bd2d5c265a7327a9487f9c1376">minput_set_spot</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic, int x, int y, int ascent, int descent, int fontsize, <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *mt, int pos)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the spot of the input context.  <a href="#gac12030bd2d5c265a7327a9487f9c1376"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga065a8f8e5a28180fd0fa6d160e07481b">minput_toggle</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Toggle input method.  <a href="#ga065a8f8e5a28180fd0fa6d160e07481b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga1c3c2263d2bb2d250b1f926f4b4c1db5">minput_reset_ic</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Reset an input context.  <a href="#ga1c3c2263d2bb2d250b1f926f4b4c1db5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gaa6ca1639d1d2cc56908cc6972d237f3a">minput_get_title_icon</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get title and icon filename of an input method.  <a href="#gaa6ca1639d1d2cc56908cc6972d237f3a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga4a80b81791850c2445992e6e4fd7fa1b">minput_get_description</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get description text of an input method.  <a href="#ga4a80b81791850c2445992e6e4fd7fa1b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga4472e21e6a1e65056f5815c3ce36e41b">minput_get_command</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> command)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about input method command(s).  <a href="#ga4472e21e6a1e65056f5815c3ce36e41b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gaa5de29f63f6eb770059c2f55ce8237ed">minput_config_command</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> command, <a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *keyseqlist)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configure the key sequence of an input method command.  <a href="#gaa5de29f63f6eb770059c2f55ce8237ed"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga09c8aea172323731cd3e946b3ef43a50">minput_get_variable</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> variable)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about input method variable(s).  <a href="#ga09c8aea172323731cd3e946b3ef43a50"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga15f7939874de15330d3d9aa0c450e424">minput_config_variable</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> variable, <a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Configure the value of an input method variable.  <a href="#ga15f7939874de15330d3d9aa0c450e424"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga5bf6821ca0d9bb5a738aba60225e247d">minput_config_file</a> ()</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get the name of per-user customization file.  <a href="#ga5bf6821ca0d9bb5a738aba60225e247d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6">minput_save_config</a> (void)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Save configurations in per-user customization file.  <a href="#ga08b59a97ca5194abfb04dc4cc96919d6"></a><br/></td></tr>
<tr><td colspan="2"><h2>Obsolete functions</h2></td></tr>
<tr><td colspan="2"><p><a class="anchor" id="amgrpd7b632d1b5e66b7ba59ee87b8e389297"></a> </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gab6d3ebaf43705f994aebb990feada7aa">minput_get_variables</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get a list of variables of an input method (obsolete).  <a href="#gab6d3ebaf43705f994aebb990feada7aa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#gaec5679f07f92df8aba39e49fc90341bd">minput_set_variable</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> variable, void *value)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the initial value of an input method variable.  <a href="#gaec5679f07f92df8aba39e49fc90341bd"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga63f6d2d105b01b7721f732b2433ea78e">minput_get_commands</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Get information about input method commands.  <a href="#ga63f6d2d105b01b7721f732b2433ea78e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga617c6a8028c05381f4f8a0ec781f1855">minput_assign_command_keys</a> (<a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> language, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> name, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> command, <a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *keyseq)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assign a key sequence to an input method command (obsolete).  <a href="#ga617c6a8028c05381f4f8a0ec781f1855"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__m17nInputMethod.html#ga955cd9e0b9fd8cf426aed3f3584337ff">minput_callback</a> (<a class="el" href="structMInputContext.html">MInputContext</a> *ic, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> command)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Call a callback function.  <a href="#ga955cd9e0b9fd8cf426aed3f3584337ff"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>API for Input method. </p>
<p>An input method is an object to enable inputting various characters. An input method is identified by a pair of symbols, LANGUAGE and NAME. This pair decides an input method driver of the input method. An input method driver is a set of functions for handling the input method. There are two kinds of input methods; internal one and foreign one.</p>
<ul>
<li>
<p class="startli">Internal Input Method</p>
<p>An internal input method has non <code>Mnil</code> LANGUAGE, and its body is defined in the m17n database by the tag &lt;Minput_method, LANGUAGE, NAME&gt;. For this kind of input methods, the m17n library uses two predefined input method drivers, one for CUI use and the other for GUI use. Those drivers utilize the input processing engine provided by the m17n library itself. The m17n database may provide input methods that are not limited to a specific language. The database uses <code>Mt</code> as LANGUAGE of those input methods.</p>
<p>An internal input method accepts an input key which is a symbol associated with an input event. As there is no way for the <code>m17n</code> <code>library</code> to know how input events are represented in an application program, an application programmer has to convert an input event to an input key by himself. See the documentation of the function <a class="el" href="group__m17nInputMethodWin.html#ga58715c630a04fd33f12394e9c93f1bad" title="Convert an event to an input key.">minput_event_to_key()</a> for the detail.</p>
<p class="endli"></p>
</li>
<li>
<p class="startli">Foreign Input Method <a class="anchor" id="foreign-input-method"></a></p>
<p>A foreign input method has <code>Mnil</code> LANGUAGE, and its body is defined in an external resource (e.g. XIM of X Window System). For this kind of input methods, the symbol NAME must have a property of key <a class="el" href="group__m17nInputMethod.html#gaf03ec92f0d20d9bff8b9031461270d41">Minput_driver</a>, and the value must be a pointer to an input method driver. Therefore, by preparing a proper driver, any kind of input method can be treated in the framework of the <code>m17n</code> <code>library</code>.</p>
<p>For convenience, the m17n-X library provides an input method driver that enables the input style of OverTheSpot for XIM, and stores <a class="el" href="group__m17nInputMethod.html#gaf03ec92f0d20d9bff8b9031461270d41">Minput_driver</a> property of the symbol <code>Mxim</code> with a pointer to the driver. See the documentation of m17n GUI API for the detail.</p>
<p class="endli"></p>
</li>
</ul>
<p>PROCESSING FLOW</p>
<p>The typical processing flow of handling an input method is:</p>
<ul>
<li>open an input method </li>
<li>create an input context for the input method </li>
<li>filter an input key </li>
<li>look up a produced text in the input context </li>
</ul>
<hr/><h2>Typedef Documentation</h2>
<a class="anchor" id="ga93a20c4a45f229e921bc4a3e1aa85312"></a><!-- doxytag: member="m17n.h::MInputCallbackFunc" ref="ga93a20c4a45f229e921bc4a3e1aa85312" args=")(MInputContext *ic, MSymbol command)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef void(* <a class="el" href="group__m17nInputMethod.html#ga93a20c4a45f229e921bc4a3e1aa85312">MInputCallbackFunc</a>)(<a class="el" href="structMInputContext.html">MInputContext</a> *ic, <a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> command)</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Type of input method callback functions. </p>
<p>This is the type of callback functions called from input method drivers. <b>ic</b> is a pointer to an input context, <b>command</b> is a name of callback for which the function is called. </p>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="ga55fdd3ec1e7a1ebcf84468c0637f4e42"></a><!-- doxytag: member="m17n.h::MInputCandidatesChanged" ref="ga55fdd3ec1e7a1ebcf84468c0637f4e42" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="group__m17nInputMethod.html#ga55fdd3ec1e7a1ebcf84468c0637f4e42">MInputCandidatesChanged</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Bit-masks to specify how candidates of input method is changed. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="gga55fdd3ec1e7a1ebcf84468c0637f4e42a175a5183c1e25d8c885f0896200738fa"></a><!-- doxytag: member="MINPUT_CANDIDATES_LIST_CHANGED" ref="gga55fdd3ec1e7a1ebcf84468c0637f4e42a175a5183c1e25d8c885f0896200738fa" args="" -->MINPUT_CANDIDATES_LIST_CHANGED</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga55fdd3ec1e7a1ebcf84468c0637f4e42a59599bf8a86a08077f83d2451493d1ab"></a><!-- doxytag: member="MINPUT_CANDIDATES_INDEX_CHANGED" ref="gga55fdd3ec1e7a1ebcf84468c0637f4e42a59599bf8a86a08077f83d2451493d1ab" args="" -->MINPUT_CANDIDATES_INDEX_CHANGED</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga55fdd3ec1e7a1ebcf84468c0637f4e42a3bb5a55a5ccf58331afe4ef07f18dd58"></a><!-- doxytag: member="MINPUT_CANDIDATES_SHOW_CHANGED" ref="gga55fdd3ec1e7a1ebcf84468c0637f4e42a3bb5a55a5ccf58331afe4ef07f18dd58" args="" -->MINPUT_CANDIDATES_SHOW_CHANGED</em>&nbsp;</td><td>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="gga55fdd3ec1e7a1ebcf84468c0637f4e42a7a525f8a61edaae9febe3884e496ab27"></a><!-- doxytag: member="MINPUT_CANDIDATES_CHANGED_MAX" ref="gga55fdd3ec1e7a1ebcf84468c0637f4e42a7a525f8a61edaae9febe3884e496ab27" args="" -->MINPUT_CANDIDATES_CHANGED_MAX</em>&nbsp;</td><td>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="ga34d3e527bfd705d2b7f2b749199c1e11"></a><!-- doxytag: member="input.c::minput_open_im" ref="ga34d3e527bfd705d2b7f2b749199c1e11" args="(MSymbol language, MSymbol name, void *arg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMInputMethod.html">MInputMethod</a>* minput_open_im </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>arg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Open an input method. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga34d3e527bfd705d2b7f2b749199c1e11" title="Open an input method.">minput_open_im()</a> function opens an input method whose language and name match <b>language</b> and <b>name</b>, and returns a pointer to the input method object newly allocated.</p>
<p>This function at first decides a driver for the input method as described below.</p>
<p>If <b>language</b> is not <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, the driver pointed by the variable <a class="el" href="group__m17nInputMethod.html#ga0e4d7a69ac0861d4b9b58990a0f03702" title="The driver for internal input methods.">minput_driver</a> is used.</p>
<p>If <b>language</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> and <b>name</b> has the property <a class="el" href="group__m17nInputMethod.html#gaf03ec92f0d20d9bff8b9031461270d41">Minput_driver</a>, the driver pointed to by the property value is used to open the input method. If <b>name</b> has no such a property, <code>NULL</code> is returned.</p>
<p>Then, the member <a class="el" href="structMInputDriver.html#a6de5d7d05acec89bf7e41b2f234082f7" title="Open an input method.">MInputDriver::open_im()</a> of the driver is called.</p>
<p><b>arg</b> is set in the member <code>arg</code> of the structure <a class="el" href="structMInputMethod.html" title="Structure of input method.">MInputMethod</a> so that the driver can refer to it. </p>

</div>
</div>
<a class="anchor" id="ga373b415d157c2507f4ca4a864836e905"></a><!-- doxytag: member="input.c::minput_close_im" ref="ga373b415d157c2507f4ca4a864836e905" args="(MInputMethod *im)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void minput_close_im </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputMethod.html">MInputMethod</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Close an input method. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga373b415d157c2507f4ca4a864836e905" title="Close an input method.">minput_close_im()</a> function closes the input method <b>im</b>, which must have been created by <a class="el" href="group__m17nInputMethod.html#ga34d3e527bfd705d2b7f2b749199c1e11" title="Open an input method.">minput_open_im()</a>. </p>

</div>
</div>
<a class="anchor" id="ga8b32df84c645f73ed65e20a1d51c1859"></a><!-- doxytag: member="input.c::minput_create_ic" ref="ga8b32df84c645f73ed65e20a1d51c1859" args="(MInputMethod *im, void *arg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMInputContext.html">MInputContext</a>* minput_create_ic </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputMethod.html">MInputMethod</a> *&nbsp;</td>
          <td class="paramname"> <em>im</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>arg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Create an input context. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga8b32df84c645f73ed65e20a1d51c1859" title="Create an input context.">minput_create_ic()</a> function creates an input context object associated with input method <b>im</b>, and calls callback functions corresponding to <b>Minput_preedit_start</b>, <b>Minput_status_start</b>, and <b>Minput_status_draw</b> in this order.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If an input context is successfully created, <a class="el" href="group__m17nInputMethod.html#ga8b32df84c645f73ed65e20a1d51c1859" title="Create an input context.">minput_create_ic()</a> returns a pointer to it. Otherwise it returns <code>NULL</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga80e4b330fb112883f2183d54b4e9c5bb"></a><!-- doxytag: member="input.c::minput_destroy_ic" ref="ga80e4b330fb112883f2183d54b4e9c5bb" args="(MInputContext *ic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void minput_destroy_ic </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destroy an input context. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga80e4b330fb112883f2183d54b4e9c5bb" title="Destroy an input context.">minput_destroy_ic()</a> function destroys the input context <b>ic</b>, which must have been created by <a class="el" href="group__m17nInputMethod.html#ga8b32df84c645f73ed65e20a1d51c1859" title="Create an input context.">minput_create_ic()</a>. It calls callback functions corresponding to <b>Minput_preedit_done</b>, <b>Minput_status_done</b>, and <b>Minput_candidates_done</b> in this order. </p>

</div>
</div>
<a class="anchor" id="ga6d9c3c97524114496fd8b7f70af92457"></a><!-- doxytag: member="input.c::minput_filter" ref="ga6d9c3c97524114496fd8b7f70af92457" args="(MInputContext *ic, MSymbol key, void *arg)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_filter </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>arg</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Filter an input key. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga6d9c3c97524114496fd8b7f70af92457" title="Filter an input key.">minput_filter()</a> function filters input key <b>key</b> according to input context <b>ic</b>, and calls callback functions corresponding to <b>Minput_preedit_draw</b>, <b>Minput_status_draw</b>, and <b>Minput_candidates_draw</b> if the preedit text, the status, and the current candidate are changed respectively.</p>
<p>To make the input method commit the current preedit text (if any) and shift to the initial state, call this function with <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> as <b>key</b>.</p>
<p>To inform the input method about the focus-out event, call this function with <b>Minput_focus_out</b> as <b>key</b>.</p>
<p>To inform the input method about the focus-in event, call this function with <b>Minput_focus_in</b> as <b>key</b>.</p>
<p>To inform the input method about the focus-move event (i.e. input spot change within the same input context), call this function with <b>Minput_focus_move</b> as <b>key</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>key</b> is filtered out, this function returns 1. In that case, the caller should discard the key. Otherwise, it returns 0, and the caller should handle the key, for instance, by calling the function <a class="el" href="group__m17nInputMethod.html#gafe533480c705b877189938a0eecb1b57" title="Look up a text produced in the input context.">minput_lookup()</a> with the same key. </dd></dl>

</div>
</div>
<a class="anchor" id="gafe533480c705b877189938a0eecb1b57"></a><!-- doxytag: member="input.c::minput_lookup" ref="gafe533480c705b877189938a0eecb1b57" args="(MInputContext *ic, MSymbol key, void *arg, MText *mt)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_lookup </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>arg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *&nbsp;</td>
          <td class="paramname"> <em>mt</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Look up a text produced in the input context. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#gafe533480c705b877189938a0eecb1b57" title="Look up a text produced in the input context.">minput_lookup()</a> function looks up a text in the input context <b>ic</b>. <b>key</b> must be identical to the one that was used in the previous call of <a class="el" href="group__m17nInputMethod.html#ga6d9c3c97524114496fd8b7f70af92457" title="Filter an input key.">minput_filter()</a>.</p>
<p>If a text was produced by the input method, it is concatenated to M-text <b>mt</b>.</p>
<p>This function calls <a class="el" href="structMInputDriver.html#a8b206e6ce988f1aeafac41efadf493af" title="Lookup a produced text in an input context.">MInputDriver::lookup</a> .</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If <b>key</b> was correctly handled by the input method, this function returns 0. Otherwise, it returns -1, even though some text might be produced in <b>mt</b>. </dd></dl>

</div>
</div>
<a class="anchor" id="gac12030bd2d5c265a7327a9487f9c1376"></a><!-- doxytag: member="input.c::minput_set_spot" ref="gac12030bd2d5c265a7327a9487f9c1376" args="(MInputContext *ic, int x, int y, int ascent, int descent, int fontsize, MText *mt, int pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void minput_set_spot </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>ascent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>descent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>fontsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a> *&nbsp;</td>
          <td class="paramname"> <em>mt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>pos</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the spot of the input context. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#gac12030bd2d5c265a7327a9487f9c1376" title="Set the spot of the input context.">minput_set_spot()</a> function sets the spot of input context <b>ic</b> to coordinate (<b>x</b>, <b>y</b> ) with the height specified by <b>ascent</b> and <b>descent</b> . The semantics of these values depends on the input method driver.</p>
<p>For instance, a driver designed to work in a CUI environment may use <b>x</b> and <b>y</b> as the column- and row numbers, and may ignore <b>ascent</b> and <b>descent</b> . A driver designed to work in a window system may interpret <b>x</b> and <b>y</b> as the pixel offsets relative to the origin of the client window, and may interpret <b>ascent</b> and <b>descent</b> as the ascent- and descent pixels of the line at (<b>x</b> . <b>y</b> ).</p>
<p><b>fontsize</b> specifies the fontsize of preedit text in 1/10 point.</p>
<p><b>mt</b> and <b>pos</b> are the M-text and the character position at the spot. <b>mt</b> may be <code>NULL</code>, in which case, the input method cannot get information about the text around the spot. </p>

</div>
</div>
<a class="anchor" id="ga065a8f8e5a28180fd0fa6d160e07481b"></a><!-- doxytag: member="input.c::minput_toggle" ref="ga065a8f8e5a28180fd0fa6d160e07481b" args="(MInputContext *ic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void minput_toggle </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Toggle input method. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga065a8f8e5a28180fd0fa6d160e07481b" title="Toggle input method.">minput_toggle()</a> function toggles the input method associated with input context <b>ic</b>. </p>

</div>
</div>
<a class="anchor" id="ga1c3c2263d2bb2d250b1f926f4b4c1db5"></a><!-- doxytag: member="input.c::minput_reset_ic" ref="ga1c3c2263d2bb2d250b1f926f4b4c1db5" args="(MInputContext *ic)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void minput_reset_ic </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reset an input context. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga1c3c2263d2bb2d250b1f926f4b4c1db5" title="Reset an input context.">minput_reset_ic()</a> function resets input context <b>ic</b> by calling a callback function corresponding to <b>Minput_reset</b>. It resets the status of <b>ic</b> to its initial one. As the current preedit text is deleted without commitment, if necessary, call <a class="el" href="group__m17nInputMethod.html#ga6d9c3c97524114496fd8b7f70af92457" title="Filter an input key.">minput_filter()</a> with the arg <b>key</b> <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> to force the input method to commit the preedit in advance. </p>

</div>
</div>
<a class="anchor" id="gaa6ca1639d1d2cc56908cc6972d237f3a"></a><!-- doxytag: member="input.c::minput_get_title_icon" ref="gaa6ca1639d1d2cc56908cc6972d237f3a" args="(MSymbol language, MSymbol name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a>* minput_get_title_icon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get title and icon filename of an input method. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#gaa6ca1639d1d2cc56908cc6972d237f3a" title="Get title and icon filename of an input method.">minput_get_title_icon()</a> function returns a plist containing a title and icon filename (if any) of an input method specified by <b>language</b> and <b>name</b>.</p>
<p>The first element of the plist has key <a class="el" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &quot;mtext&quot;.">Mtext</a> and the value is an M-text of the title for identifying the input method. The second element (if any) has key <a class="el" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &quot;mtext&quot;.">Mtext</a> and the value is an M-text of the icon image (absolute) filename for the same purpose.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If there exists a specified input method and it defines an title, a plist is returned. Otherwise, NULL is returned. The caller must free the plist by <a class="el" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4a80b81791850c2445992e6e4fd7fa1b"></a><!-- doxytag: member="input.c::minput_get_description" ref="ga4a80b81791850c2445992e6e4fd7fa1b" args="(MSymbol language, MSymbol name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec">MText</a>* minput_get_description </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get description text of an input method. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga4a80b81791850c2445992e6e4fd7fa1b" title="Get description text of an input method.">minput_get_description()</a> function returns an M-text that describes the input method specified by <b>language</b> and <b>name</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the specified input method has a description text, a pointer to <a class="el" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec" title="Type of M-texts.">MText</a> is returned. The caller has to free it by <a class="el" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref()</a>. If the input method does not have a description text, <code>NULL</code> is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="ga4472e21e6a1e65056f5815c3ce36e41b"></a><!-- doxytag: member="input.c::minput_get_command" ref="ga4472e21e6a1e65056f5815c3ce36e41b" args="(MSymbol language, MSymbol name, MSymbol command)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a>* minput_get_command </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>command</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about input method command(s). </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga4472e21e6a1e65056f5815c3ce36e41b" title="Get information about input method command(s).">minput_get_command()</a> function returns information about the command <b>command</b> of the input method specified by <b>language</b> and <b>name</b>. An input method command is a pseudo key event to which one or more actual input key sequences are assigned.</p>
<p>There are two kinds of commands, global and local. A global command has a global definition, and the description and the key assignment may be inherited by a local command. Each input method defines a local command which has a local key assignment. It may also declare a local command that inherits the definition of a global command of the same name.</p>
<p>If <b>language</b> is <a class="el" href="group__m17nSymbol.html#ga8769a573efbb023b4d77f9d03babc09f" title="Symbol whose name is &quot;t&quot;.">Mt</a> and <b>name</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, this function returns information about a global command. Otherwise information about a local command is returned.</p>
<p>If <b>command</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, information about all commands is returned.</p>
<p>The return value is a <em>well-formed</em> plist (<a class="el" href="group__m17nPlist.html">Property List</a>) of this format: </p>
<div class="fragment"><pre class="fragment">
  ((NAME DESCRIPTION STATUS [KEYSEQ ...]) ...)
</pre></div><p> <code>NAME</code> is a symbol representing the command name.</p>
<p><code>DESCRIPTION</code> is an M-text describing the command, or <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> if the command has no description.</p>
<p><code>STATUS</code> is a symbol representing how the key assignment is decided. The value is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> (the default key assignment), <b>Mcustomized</b> (the key assignment is customized by per-user customization file), or <b>Mconfigured</b> (the key assignment is set by the call of <a class="el" href="group__m17nInputMethod.html#gaa5de29f63f6eb770059c2f55ce8237ed" title="Configure the key sequence of an input method command.">minput_config_command()</a>). For a local command only, it may also be <b>Minherited</b> (the key assignment is inherited from the corresponding global command).</p>
<p><code>KEYSEQ</code> is a plist of one or more symbols representing a key sequence assigned to the command. If there's no KEYSEQ, the command is currently disabled (i.e. no key sequence can trigger actions of the command).</p>
<p>If <b>command</b> is not <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, the first element of the returned plist contains the information about <b>command</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd></dd></dl>
<p>If the requested information was found, a pointer to a non-empty plist is returned. As the plist is kept in the library, the caller must not modify nor free it.</p>
<p>Otherwise (the specified input method or the specified command does not exist), <code>NULL</code> is returned.</p>
<dl class="user"><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"><a class="code" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec" title="Type of M-texts.">MText</a> *
get_im_command_description (<a class="code" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d" title="Type of symbols.">MSymbol</a> language, <a class="code" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d" title="Type of symbols.">MSymbol</a> name, <a class="code" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d" title="Type of symbols.">MSymbol</a> command)
{
  <span class="comment">/* Return a description of the command COMMAND of the input method</span>
<span class="comment">     specified by LANGUAGE and NAME.  */</span>
  <a class="code" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2" title="Type of property list objects.">MPlist</a> *cmd = <a class="code" href="group__m17nInputMethod.html#ga4472e21e6a1e65056f5815c3ce36e41b" title="Get information about input method command(s).">minput_get_command</a> (langauge, name, command);
  <a class="code" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2" title="Type of property list objects.">MPlist</a> *plist;

  <span class="keywordflow">if</span> (! cmds)
    <span class="keywordflow">return</span> NULL;
  plist = <a class="code" href="group__m17nPlist.html#ga855f3010b216bcf5f0914553fc034295" title="Return the value of the first property in a property list.">mplist_value</a> (cmds);  <span class="comment">/* (NAME DESCRIPTION STATUS KEY-SEQ ...) */</span>
  plist = <a class="code" href="group__m17nPlist.html#ga5c7598c133f6a177a2ad5781fc712f6e" title="Return the next sublist of a property list.">mplist_next</a> (plist);  <span class="comment">/* (DESCRIPTION STATUS KEY-SEQ ...) */</span>
  <span class="keywordflow">return</span>  (<a class="code" href="group__m17nPlist.html#ga79d757b26382412e7ea69e914bc06a07" title="Return the key of the first property in a property list.">mplist_key</a> (plist) == <a class="code" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &amp;quot;mtext&amp;quot;.">Mtext</a>
           ? (<a class="code" href="group__m17nMtext.html#gae8bba45315c15c8f79ec4a73ebc52aec" title="Type of M-texts.">MText</a> *) <a class="code" href="group__m17nPlist.html#ga855f3010b216bcf5f0914553fc034295" title="Return the value of the first property in a property list.">mplist_value</a> (plist)
           : NULL);
}
</pre></div> </dd></dl>

</div>
</div>
<a class="anchor" id="gaa5de29f63f6eb770059c2f55ce8237ed"></a><!-- doxytag: member="input.c::minput_config_command" ref="gaa5de29f63f6eb770059c2f55ce8237ed" args="(MSymbol language, MSymbol name, MSymbol command, MPlist *keyseqlist)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_config_command </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td>
          <td class="paramname"> <em>keyseqlist</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configure the key sequence of an input method command. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#gaa5de29f63f6eb770059c2f55ce8237ed" title="Configure the key sequence of an input method command.">minput_config_command()</a> function assigns a list of key sequences <b>keyseqlist</b> to the command <b>command</b> of the input method specified by <b>language</b> and <b>name</b>.</p>
<p>If <b>keyseqlist</b> is a non-empty plist, it must be a list of key sequences, and each key sequence must be a plist of symbols.</p>
<p>If <b>keyseqlist</b> is an empty plist, any configuration and customization of the command are cancelled, and default key sequences become effective.</p>
<p>If <b>keyseqlist</b> is NULL, the configuration of the command is canceled, and the original key sequences (what saved in per-user customization file, or the default one) become effective.</p>
<p>In the latter two cases, <b>command</b> can be <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> to make all the commands of the input method the target of the operation.</p>
<p>If <b>name</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, this function configures the key assignment of a global command, not that of a specific input method.</p>
<p>The configuration takes effect for input methods opened or re-opened later in the current session. In order to make the configuration take effect for the future session, it must be saved in a per-user customization file by the function <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, this function returns 0, otherwise returns -1. The operation fails in these cases: <ul>
<li>
<b>keyseqlist</b> is not in a valid form. </li>
<li>
<b>command</b> is not available for the input method. </li>
<li>
<b>language</b> and <b>name</b> do not specify an existing input method. </li>
</ul>
</dd></dl>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nInputMethod.html#ga63f6d2d105b01b7721f732b2433ea78e" title="Get information about input method commands.">minput_get_commands()</a>, <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a>.</dd></dl>
<dl class="user"><dt><b>Example:</b></dt><dd><div class="fragment"><pre class="fragment"><span class="comment">/* Add &quot;C-x u&quot; to the &quot;start&quot; command of Unicode input method.  */</span>
{
  <a class="code" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d" title="Type of symbols.">MSymbol</a> start_command = <a class="code" href="group__m17nSymbol.html#ga0f19d07c2dd83d37705ca628caaf8cd1" title="Get a symbol.">msymbol</a> (<span class="stringliteral">&quot;start&quot;</span>);
  <a class="code" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d" title="Type of symbols.">MSymbol</a> unicode = <a class="code" href="group__m17nSymbol.html#ga0f19d07c2dd83d37705ca628caaf8cd1" title="Get a symbol.">msymbol</a> (<span class="stringliteral">&quot;unicode&quot;</span>);
  <a class="code" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2" title="Type of property list objects.">MPlist</a> *cmd, *plist, *key_seq_list, *key_seq;

  <span class="comment">/* At first get the current key-sequence assignment.  */</span>
  cmd = <a class="code" href="group__m17nInputMethod.html#ga4472e21e6a1e65056f5815c3ce36e41b" title="Get information about input method command(s).">minput_get_command</a> (<a class="code" href="group__m17nSymbol.html#ga8769a573efbb023b4d77f9d03babc09f" title="Symbol whose name is &amp;quot;t&amp;quot;.">Mt</a>, unicode, start_command);
  <span class="keywordflow">if</span> (! cmd)
    {
      <span class="comment">/* The input method does not have the command &quot;start&quot;.  Here</span>
<span class="comment">         should come some error handling code.  */</span>
    }
  <span class="comment">/* Now CMD == ((start DESCRIPTION STATUS KEY-SEQUENCE ...) ...).</span>
<span class="comment">     Extract the part (KEY-SEQUENCE ...).  */</span>
  plist = <a class="code" href="group__m17nPlist.html#ga5c7598c133f6a177a2ad5781fc712f6e" title="Return the next sublist of a property list.">mplist_next</a> (<a class="code" href="group__m17nPlist.html#ga5c7598c133f6a177a2ad5781fc712f6e" title="Return the next sublist of a property list.">mplist_next</a> (<a class="code" href="group__m17nPlist.html#ga5c7598c133f6a177a2ad5781fc712f6e" title="Return the next sublist of a property list.">mplist_next</a> (<a class="code" href="group__m17nPlist.html#ga855f3010b216bcf5f0914553fc034295" title="Return the value of the first property in a property list.">mplist_value</a> (cmd))));
  <span class="comment">/* Copy it because we should not modify it directly.  */</span>
  key_seq_list = <a class="code" href="group__m17nPlist.html#ga03cb2253e439ec15d0bbbac6f86f0e37" title="Copy a property list.">mplist_copy</a> (plist);
  
  key_seq = <a class="code" href="group__m17nPlist.html#ga86cff73047b6462271d086f7365782ff" title="Create a property list object.">mplist</a>();
  <a class="code" href="group__m17nPlist.html#gaf5d13d2df5af9260356aa415e3965def" title="Add a property at the end of a property list.">mplist_add</a> (key_seq, <a class="code" href="group__m17nSymbol.html#ga6592d4eb3c46fe7fb8993c252b8fedeb" title="Symbol whose name is &amp;quot;symbol&amp;quot;.">Msymbol</a>, <a class="code" href="group__m17nSymbol.html#ga0f19d07c2dd83d37705ca628caaf8cd1" title="Get a symbol.">msymbol</a> (<span class="stringliteral">&quot;C-x&quot;</span>));
  <a class="code" href="group__m17nPlist.html#gaf5d13d2df5af9260356aa415e3965def" title="Add a property at the end of a property list.">mplist_add</a> (key_seq, <a class="code" href="group__m17nSymbol.html#ga6592d4eb3c46fe7fb8993c252b8fedeb" title="Symbol whose name is &amp;quot;symbol&amp;quot;.">Msymbol</a>, <a class="code" href="group__m17nSymbol.html#ga0f19d07c2dd83d37705ca628caaf8cd1" title="Get a symbol.">msymbol</a> (<span class="stringliteral">&quot;u&quot;</span>));
  <a class="code" href="group__m17nPlist.html#gaf5d13d2df5af9260356aa415e3965def" title="Add a property at the end of a property list.">mplist_add</a> (key_seq_list, <a class="code" href="group__m17nPlist.html#ga933000e154873f9bfcaa56d976bd259b" title="Symbol whose name is &amp;quot;plist&amp;quot;.">Mplist</a>, key_seq);
  <a class="code" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref</a> (key_seq);

  <a class="code" href="group__m17nInputMethod.html#gaa5de29f63f6eb770059c2f55ce8237ed" title="Configure the key sequence of an input method command.">minput_config_command</a> (<a class="code" href="group__m17nSymbol.html#ga8769a573efbb023b4d77f9d03babc09f" title="Symbol whose name is &amp;quot;t&amp;quot;.">Mt</a>, unicode, start_command, key_seq_list);
  <a class="code" href="group__m17nObject.html#ga248ba287a615a2cf3cdb99c13275453b" title="Decrement the reference count of a managed object.">m17n_object_unref</a> (key_seq_list);
}
</pre></div> </dd></dl>

</div>
</div>
<a class="anchor" id="ga09c8aea172323731cd3e946b3ef43a50"></a><!-- doxytag: member="input.c::minput_get_variable" ref="ga09c8aea172323731cd3e946b3ef43a50" args="(MSymbol language, MSymbol name, MSymbol variable)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a>* minput_get_variable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>variable</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about input method variable(s). </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga09c8aea172323731cd3e946b3ef43a50" title="Get information about input method variable(s).">minput_get_variable()</a> function returns information about variable <b>variable</b> of the input method specified by <b>language</b> and <b>name</b>. An input method variable controls behavior of an input method.</p>
<p>There are two kinds of variables, global and local. A global variable has a global definition, and the description and the value may be inherited by a local variable. Each input method defines a local variable which has local value. It may also declare a local variable that inherits definition of a global variable of the same name.</p>
<p>If <b>language</b> is <a class="el" href="group__m17nSymbol.html#ga8769a573efbb023b4d77f9d03babc09f" title="Symbol whose name is &quot;t&quot;.">Mt</a> and <b>name</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, information about a global variable is returned. Otherwise information about a local variable is returned.</p>
<p>If <b>variable</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, information about all variables is returned.</p>
<p>The return value is a <em>well-formed</em> plist (<a class="el" href="group__m17nPlist.html">Property List</a>) of this format: </p>
<div class="fragment"><pre class="fragment">
  ((NAME DESCRIPTION STATUS VALUE [VALID-VALUE ...]) ...)
</pre></div><p> <code>NAME</code> is a symbol representing the variable name.</p>
<p><code>DESCRIPTION</code> is an M-text describing the variable, or <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> if the variable has no description.</p>
<p><code>STATUS</code> is a symbol representing how the value is decided. The value is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> (the default value), <b>Mcustomized</b> (the value is customized by per-user customization file), or <b>Mconfigured</b> (the value is set by the call of <a class="el" href="group__m17nInputMethod.html#ga15f7939874de15330d3d9aa0c450e424" title="Configure the value of an input method variable.">minput_config_variable()</a>). For a local variable only, it may also be <b>Minherited</b> (the value is inherited from the corresponding global variable).</p>
<p><code>VALUE</code> is the initial value of the variable. If the key of this element is <a class="el" href="group__m17nSymbol.html#ga8769a573efbb023b4d77f9d03babc09f" title="Symbol whose name is &quot;t&quot;.">Mt</a>, the variable has no initial value. Otherwise, the key is <a class="el" href="group__m17nPlist.html#ga0ce08eb57aa339db4d4745e75e80fdd8" title="Symbol whose name is &quot;integer&quot;.">Minteger</a>, <a class="el" href="group__m17nSymbol.html#ga6592d4eb3c46fe7fb8993c252b8fedeb" title="Symbol whose name is &quot;symbol&quot;.">Msymbol</a>, or <a class="el" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &quot;mtext&quot;.">Mtext</a> and the value is of the corresponding type.</p>
<p><code>VALID-VALUEs</code> (if any) specify which values the variable can have. They have the same type (i.e. having the same key) as <code>VALUE</code> except for the case that VALUE is an integer. In that case, <code>VALID-VALUE</code> may be a plist of two integers specifying the range of possible values.</p>
<p>If there no <code>VALID-VALUE</code>, the variable can have any value as long as the type is the same as <code>VALUE</code>.</p>
<p>If <b>variable</b> is not <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, the first element of the returned plist contains the information about <b>variable</b>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd></dd></dl>
<p>If the requested information was found, a pointer to a non-empty plist is returned. As the plist is kept in the library, the caller must not modify nor free it.</p>
<p>Otherwise (the specified input method or the specified variable does not exist), <code>NULL</code> is returned. </p>

</div>
</div>
<a class="anchor" id="ga15f7939874de15330d3d9aa0c450e424"></a><!-- doxytag: member="input.c::minput_config_variable" ref="ga15f7939874de15330d3d9aa0c450e424" args="(MSymbol language, MSymbol name, MSymbol variable, MPlist *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_config_variable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>variable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Configure the value of an input method variable. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga15f7939874de15330d3d9aa0c450e424" title="Configure the value of an input method variable.">minput_config_variable()</a> function assigns <b>value</b> to the variable <b>variable</b> of the input method specified by <b>language</b> and <b>name</b>.</p>
<p>If <b>value</b> is a non-empty plist, it must be a plist of one element whose key is <a class="el" href="group__m17nPlist.html#ga0ce08eb57aa339db4d4745e75e80fdd8" title="Symbol whose name is &quot;integer&quot;.">Minteger</a>, <a class="el" href="group__m17nSymbol.html#ga6592d4eb3c46fe7fb8993c252b8fedeb" title="Symbol whose name is &quot;symbol&quot;.">Msymbol</a>, or <a class="el" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &quot;mtext&quot;.">Mtext</a>, and the value is of the corresponding type. That value is assigned to the variable.</p>
<p>If <b>value</b> is an empty plist, any configuration and customization of the variable are canceled, and the default value is assigned to the variable.</p>
<p>If <b>value</b> is NULL, the configuration of the variable is canceled, and the original value (what saved in per-user customization file, or the default value) is assigned to the variable.</p>
<p>In the latter two cases, <b>variable</b> can be <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a> to make all the variables of the input method the target of the operation.</p>
<p>If <b>name</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, this function configures the value of global variable, not that of a specific input method.</p>
<p>The configuration takes effect for input methods opened or re-opened later in the current session. To make the configuration take effect for the future session, it must be saved in a per-user customization file by the function <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a>.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd></dd></dl>
<p>If the operation was successful, this function returns 0, otherwise returns -1. The operation fails in these cases: </p>
<ul>
<li>
<b>value</b> is not in a valid form, the type does not match the definition, or the value is our of range. </li>
<li>
<b>variable</b> is not available for the input method. </li>
<li>
<b>language</b> and <b>name</b> do not specify an existing input method. </li>
</ul>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nInputMethod.html#ga09c8aea172323731cd3e946b3ef43a50" title="Get information about input method variable(s).">minput_get_variable()</a>, <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga5bf6821ca0d9bb5a738aba60225e247d"></a><!-- doxytag: member="input.c::minput_config_file" ref="ga5bf6821ca0d9bb5a738aba60225e247d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* minput_config_file </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the name of per-user customization file. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga5bf6821ca0d9bb5a738aba60225e247d" title="Get the name of per-user customization file.">minput_config_file()</a> function returns the absolute path name of per-user customization file into which <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a> save configurations. It is usually <code>config.mic</code> under the directory <code>${HOME}/.m17n.d</code> (${HOME} is user's home directory). It is not assured that the file of the returned name exists nor is readable/writable. If <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a> fails and returns -1, an application program might check the file, make it writable (if possible), and try <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a> again.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd></dd></dl>
<p>This function returns a string. As the string is kept in the library, the caller must not modify nor free it.</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="ga08b59a97ca5194abfb04dc4cc96919d6"></a><!-- doxytag: member="input.c::minput_save_config" ref="ga08b59a97ca5194abfb04dc4cc96919d6" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_save_config </td>
          <td>(</td>
          <td class="paramtype">void&nbsp;</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Save configurations in per-user customization file. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga08b59a97ca5194abfb04dc4cc96919d6" title="Save configurations in per-user customization file.">minput_save_config()</a> function saves the configurations done so far in the current session into the per-user customization file.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd></dd></dl>
<p>If the operation was successful, 1 is returned. If the per-user customization file is currently locked, 0 is returned. In that case, the caller may wait for a while and try again. If the configuration file is not writable, -1 is returned. In that case, the caller may check the name of the file by calling <a class="el" href="group__m17nInputMethod.html#ga5bf6821ca0d9bb5a738aba60225e247d" title="Get the name of per-user customization file.">minput_config_file()</a>, make it writable if possible, and try again.</p>
<dl class="user"><dt><b>See Also:</b></dt><dd><a class="el" href="group__m17nInputMethod.html#ga5bf6821ca0d9bb5a738aba60225e247d" title="Get the name of per-user customization file.">minput_config_file()</a> </dd></dl>

</div>
</div>
<a class="anchor" id="gab6d3ebaf43705f994aebb990feada7aa"></a><!-- doxytag: member="input.c::minput_get_variables" ref="gab6d3ebaf43705f994aebb990feada7aa" args="(MSymbol language, MSymbol name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a>* minput_get_variables </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get a list of variables of an input method (obsolete). </p>
<p>This function is obsolete. Use <a class="el" href="group__m17nInputMethod.html#ga09c8aea172323731cd3e946b3ef43a50" title="Get information about input method variable(s).">minput_get_variable()</a> instead.</p>
<p>The <a class="el" href="group__m17nInputMethod.html#gab6d3ebaf43705f994aebb990feada7aa" title="Get a list of variables of an input method (obsolete).">minput_get_variables()</a> function returns a plist (<a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2" title="Type of property list objects.">MPlist</a>) of variables used to control the behavior of the input method specified by <b>language</b> and <b>name</b>. The plist is <em>well-formed</em> (<a class="el" href="group__m17nPlist.html">Property List</a>) of the following format:</p>
<div class="fragment"><pre class="fragment">
    (VARNAME (DOC-MTEXT DEFAULT-VALUE [ VALUE ... ] )
     VARNAME (DOC-MTEXT DEFAULT-VALUE [ VALUE ... ] )
     ...)
</pre></div><p><code>VARNAME</code> is a symbol representing the variable name.</p>
<p><code>DOC-MTEXT</code> is an M-text describing the variable.</p>
<p><code>DEFAULT-VALUE</code> is the default value of the variable. It is a symbol, integer, or M-text.</p>
<p><code>VALUEs</code> (if any) specifies the possible values of the variable. If <code>DEFAULT-VALUE</code> is an integer, <code>VALUE</code> may be a plist (<code>FROM</code> <code>TO</code>), where <code>FROM</code> and <code>TO</code> specifies a range of possible values.</p>
<p>For instance, suppose an input method has the variables:</p>
<ul>
<li>name:intvar, description:"value is an integer", initial value:0, value-range:0..3,10,20</li>
</ul>
<ul>
<li>name:symvar, description:"value is a symbol", initial value:nil, value-range:a, b, c, nil</li>
</ul>
<ul>
<li>name:txtvar, description:"value is an M-text", initial value:empty text, no value-range (i.e. any text)</li>
</ul>
<p>Then, the returned plist is as follows.</p>
<div class="fragment"><pre class="fragment">
    (intvar ("value is an integer" 0 (0 3) 10 20)
     symvar ("value is a symbol" nil a b c nil)
     txtvar ("value is an M-text" ""))
</pre></div><dl class="user"><dt><b>Return value:</b></dt><dd>If the input method uses any variables, a pointer to <a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2" title="Type of property list objects.">MPlist</a> is returned. As the plist is kept in the library, the caller must not modify nor free it. If the input method does not use any variable, <code>NULL</code> is returned. </dd></dl>

</div>
</div>
<a class="anchor" id="gaec5679f07f92df8aba39e49fc90341bd"></a><!-- doxytag: member="input.c::minput_set_variable" ref="gaec5679f07f92df8aba39e49fc90341bd" args="(MSymbol language, MSymbol name, MSymbol variable, void *value)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_set_variable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>variable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&nbsp;</td>
          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set the initial value of an input method variable. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#gaec5679f07f92df8aba39e49fc90341bd" title="Set the initial value of an input method variable.">minput_set_variable()</a> function sets the initial value of input method variable <b>variable</b> to <b>value</b> for the input method specified by <b>language</b> and <b>name</b>.</p>
<p>By default, the initial value is 0.</p>
<p>This setting gets effective in a newly opened input method.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, 0 is returned. Otherwise -1 is returned, and <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a> is set to <code>MERROR_IM</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga63f6d2d105b01b7721f732b2433ea78e"></a><!-- doxytag: member="input.c::minput_get_commands" ref="ga63f6d2d105b01b7721f732b2433ea78e" args="(MSymbol language, MSymbol name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a>* minput_get_commands </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get information about input method commands. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga63f6d2d105b01b7721f732b2433ea78e" title="Get information about input method commands.">minput_get_commands()</a> function returns information about input method commands of the input method specified by <b>language</b> and <b>name</b>. An input method command is a pseudo key event to which one or more actual input key sequences are assigned.</p>
<p>There are two kinds of commands, global and local. Global commands are used by multiple input methods for the same purpose, and have global key assignments. Local commands are used only by a specific input method, and have only local key assignments.</p>
<p>Each input method may locally change key assignments for global commands. The global key assignment for a global command is effective only when the current input method does not have local key assignments for that command.</p>
<p>If <b>name</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, information about global commands is returned. In this case <b>language</b> is ignored.</p>
<p>If <b>name</b> is not <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, information about those commands that have local key assignments in the input method specified by <b>language</b> and <b>name</b> is returned.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If no input method commands are found, this function returns <code>NULL</code>.</dd></dl>
<p>Otherwise, a pointer to a plist is returned. The key of each element in the plist is a symbol representing a command, and the value is a plist of the form COMMAND-INFO described below.</p>
<p>The first element of COMMAND-INFO has the key <a class="el" href="group__m17nPlist.html#ga1a22859374071a0ca66f12452afee8bd" title="Symbol whose name is &quot;mtext&quot;.">Mtext</a>, and the value is an M-text describing the command.</p>
<p>If there are no more elements, that means no key sequences are assigned to the command. Otherwise, each of the remaining elements has the key <a class="el" href="group__m17nPlist.html#ga933000e154873f9bfcaa56d976bd259b" title="Symbol whose name is &quot;plist&quot;.">Mplist</a>, and the value is a plist whose keys are <a class="el" href="group__m17nSymbol.html#ga6592d4eb3c46fe7fb8993c252b8fedeb" title="Symbol whose name is &quot;symbol&quot;.">Msymbol</a> and values are symbols representing input keys, which are currently assigned to the command.</p>
<p>As the returned plist is kept in the library, the caller must not modify nor free it. </p>

</div>
</div>
<a class="anchor" id="ga617c6a8028c05381f4f8a0ec781f1855"></a><!-- doxytag: member="input.c::minput_assign_command_keys" ref="ga617c6a8028c05381f4f8a0ec781f1855" args="(MSymbol language, MSymbol name, MSymbol command, MPlist *keyseq)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_assign_command_keys </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>language</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>command</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nPlist.html#gac8b2ac3c9a8f0a6afb7f189b694035e2">MPlist</a> *&nbsp;</td>
          <td class="paramname"> <em>keyseq</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Assign a key sequence to an input method command (obsolete). </p>
<p>This function is obsolete. Use <a class="el" href="group__m17nInputMethod.html#gaa5de29f63f6eb770059c2f55ce8237ed" title="Configure the key sequence of an input method command.">minput_config_command()</a> instead.</p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga617c6a8028c05381f4f8a0ec781f1855" title="Assign a key sequence to an input method command (obsolete).">minput_assign_command_keys()</a> function assigns input key sequence <b>keyseq</b> to input method command <b>command</b> for the input method specified by <b>language</b> and <b>name</b>. If <b>name</b> is <a class="el" href="group__m17nSymbol.html#ga0346fc05efcccc8f11271b51c0fe3eeb" title="Symbol whose name is &quot;nil&quot;.">Mnil</a>, the key sequence is assigned globally no matter what <b>language</b> is. Otherwise the key sequence is assigned locally.</p>
<p>Each element of <b>keyseq</b> must have the key <b>msymbol</b> and the value must be a symbol representing an input key.</p>
<p><b>keyseq</b> may be <code>NULL</code>, in which case, all assignments are deleted globally or locally.</p>
<p>This assignment gets effective in a newly opened input method.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If the operation was successful, 0 is returned. Otherwise -1 is returned, and <a class="el" href="group__m17nError.html#ga995a2e373cfd6a8e5eaca8686b5b0a73" title="External variable to hold error code of the m17n library.">merror_code</a> is set to <code>MERROR_IM</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ga955cd9e0b9fd8cf426aed3f3584337ff"></a><!-- doxytag: member="input.c::minput_callback" ref="ga955cd9e0b9fd8cf426aed3f3584337ff" args="(MInputContext *ic, MSymbol command)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int minput_callback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structMInputContext.html">MInputContext</a> *&nbsp;</td>
          <td class="paramname"> <em>ic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a>&nbsp;</td>
          <td class="paramname"> <em>command</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Call a callback function. </p>
<p>The <a class="el" href="group__m17nInputMethod.html#ga955cd9e0b9fd8cf426aed3f3584337ff" title="Call a callback function.">minput_callback()</a> functions calls a callback function <b>command</b> assigned for the input context <b>ic</b>. The caller must set specific elements in <b>ic-&gt;plist</b> if the callback function requires.</p>
<dl class="user"><dt><b>Return value:</b></dt><dd>If there exists a specified callback function, 0 is returned. Otherwise -1 is returned. By side effects, <b>ic-&gt;plist</b> may be modified. </dd></dl>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="ga4f2d5dc3e6c637d18e2ecf24edfff456"></a><!-- doxytag: member="input.c::Minput_method" ref="ga4f2d5dc3e6c637d18e2ecf24edfff456" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga4f2d5dc3e6c637d18e2ecf24edfff456">Minput_method</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Symbol whose name is "input-method". </p>

</div>
</div>
<a class="anchor" id="ga5516535b28981c4b02b33368f3d56d56"></a><!-- doxytag: member="input.c::Minput_preedit_start" ref="ga5516535b28981c4b02b33368f3d56d56" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga5516535b28981c4b02b33368f3d56d56">Minput_preedit_start</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga3f96ecb6d7f7f82bc1ba5e47f8da0b92"></a><!-- doxytag: member="input.c::Minput_preedit_done" ref="ga3f96ecb6d7f7f82bc1ba5e47f8da0b92" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga3f96ecb6d7f7f82bc1ba5e47f8da0b92">Minput_preedit_done</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gacb0619c67c071d453dd2920ffc26d0ed"></a><!-- doxytag: member="input.c::Minput_preedit_draw" ref="gacb0619c67c071d453dd2920ffc26d0ed" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gacb0619c67c071d453dd2920ffc26d0ed">Minput_preedit_draw</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gad3739f8097f1c52f10a8581828b7bb95"></a><!-- doxytag: member="input.c::Minput_status_start" ref="gad3739f8097f1c52f10a8581828b7bb95" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gad3739f8097f1c52f10a8581828b7bb95">Minput_status_start</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga49febb92bb4320bc27f20043517f3169"></a><!-- doxytag: member="input.c::Minput_status_done" ref="ga49febb92bb4320bc27f20043517f3169" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga49febb92bb4320bc27f20043517f3169">Minput_status_done</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gae75d45c1dbe0483768e9364af4d282f9"></a><!-- doxytag: member="input.c::Minput_status_draw" ref="gae75d45c1dbe0483768e9364af4d282f9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gae75d45c1dbe0483768e9364af4d282f9">Minput_status_draw</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga6bb355b1b5521571056b96a854f3c6c8"></a><!-- doxytag: member="input.c::Minput_candidates_start" ref="ga6bb355b1b5521571056b96a854f3c6c8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga6bb355b1b5521571056b96a854f3c6c8">Minput_candidates_start</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga6ff3deabad4489cef99fff428b2628e2"></a><!-- doxytag: member="input.c::Minput_candidates_done" ref="ga6ff3deabad4489cef99fff428b2628e2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga6ff3deabad4489cef99fff428b2628e2">Minput_candidates_done</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga6bf782d7824557ec10e3988f6fcf4834"></a><!-- doxytag: member="input.c::Minput_candidates_draw" ref="ga6bf782d7824557ec10e3988f6fcf4834" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga6bf782d7824557ec10e3988f6fcf4834">Minput_candidates_draw</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gaf19d77434bb1a12bdcb50f46448f1402"></a><!-- doxytag: member="input.c::Minput_set_spot" ref="gaf19d77434bb1a12bdcb50f46448f1402" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gaf19d77434bb1a12bdcb50f46448f1402">Minput_set_spot</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gafa306a028998a972bf3a05c8609fe65e"></a><!-- doxytag: member="input.c::Minput_toggle" ref="gafa306a028998a972bf3a05c8609fe65e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gafa306a028998a972bf3a05c8609fe65e">Minput_toggle</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga5f07520efe1e533af2b2322fca2bc9a2"></a><!-- doxytag: member="input.c::Minput_reset" ref="ga5f07520efe1e533af2b2322fca2bc9a2" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga5f07520efe1e533af2b2322fca2bc9a2">Minput_reset</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga1ca3d6e04f44fada82ed3c81069be23c"></a><!-- doxytag: member="input.c::Minput_get_surrounding_text" ref="ga1ca3d6e04f44fada82ed3c81069be23c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga1ca3d6e04f44fada82ed3c81069be23c">Minput_get_surrounding_text</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gab1bfef46ab8e9daa6f3cf53b912b7da8"></a><!-- doxytag: member="input.c::Minput_delete_surrounding_text" ref="gab1bfef46ab8e9daa6f3cf53b912b7da8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gab1bfef46ab8e9daa6f3cf53b912b7da8">Minput_delete_surrounding_text</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga3edb37986f3bcdd15d73884c0d9b239b"></a><!-- doxytag: member="input.c::Minput_focus_out" ref="ga3edb37986f3bcdd15d73884c0d9b239b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga3edb37986f3bcdd15d73884c0d9b239b">Minput_focus_out</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga0d721c64e73c1e362f3cc44716b6c6ab"></a><!-- doxytag: member="input.c::Minput_focus_in" ref="ga0d721c64e73c1e362f3cc44716b6c6ab" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga0d721c64e73c1e362f3cc44716b6c6ab">Minput_focus_in</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ga2b2dd61bcb633e89865ebeda1cd9f466"></a><!-- doxytag: member="input.c::Minput_focus_move" ref="ga2b2dd61bcb633e89865ebeda1cd9f466" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga2b2dd61bcb633e89865ebeda1cd9f466">Minput_focus_move</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gaf84d56e3015c4b26802debcbd9352806"></a><!-- doxytag: member="input.c::Minherited" ref="gaf84d56e3015c4b26802debcbd9352806" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gaf84d56e3015c4b26802debcbd9352806">Minherited</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>These are the predefined symbols describing status of input method command and variable, and are used in a return value of <a class="el" href="group__m17nInputMethod.html#ga4472e21e6a1e65056f5815c3ce36e41b" title="Get information about input method command(s).">minput_get_command()</a> and <a class="el" href="group__m17nInputMethod.html#ga09c8aea172323731cd3e946b3ef43a50" title="Get information about input method variable(s).">minput_get_variable()</a>. </p>

</div>
</div>
<a class="anchor" id="ga07679cd0d5bf8e137d5dc554a30aa106"></a><!-- doxytag: member="input.c::Mcustomized" ref="ga07679cd0d5bf8e137d5dc554a30aa106" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#ga07679cd0d5bf8e137d5dc554a30aa106">Mcustomized</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gae01597fe66dfef937b4c5c47e54abbd0"></a><!-- doxytag: member="input.c::Mconfigured" ref="gae01597fe66dfef937b4c5c47e54abbd0" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gae01597fe66dfef937b4c5c47e54abbd0">Mconfigured</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gadb0ff8e5e616a810ed27113b17ad363b"></a><!-- doxytag: member="input.c::minput_default_driver" ref="gadb0ff8e5e616a810ed27113b17ad363b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMInputDriver.html">MInputDriver</a> <a class="el" href="group__m17nInputMethod.html#gadb0ff8e5e616a810ed27113b17ad363b">minput_default_driver</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The default driver for internal input methods. </p>
<p>The variable <a class="el" href="group__m17nInputMethod.html#gadb0ff8e5e616a810ed27113b17ad363b" title="The default driver for internal input methods.">minput_default_driver</a> is the default driver for internal input methods.</p>
<p>The member <a class="el" href="structMInputDriver.html#a6de5d7d05acec89bf7e41b2f234082f7" title="Open an input method.">MInputDriver::open_im()</a> searches the m17n database for an input method that matches the tag &lt; <a class="el" href="group__m17nInputMethod.html#ga4f2d5dc3e6c637d18e2ecf24edfff456" title="Symbol whose name is &quot;input-method&quot;.">Minput_method</a>, <b>language</b>, <b>name&gt;</b> and loads it.</p>
<p>The member <a class="el" href="structMInputDriver.html#a159fe7401cd0913dc8c480a18efeff64" title="List of callback functions.">MInputDriver::callback_list()</a> is <code>NULL</code>. Thus, it is programmers responsibility to set it to a plist of proper callback functions. Otherwise, no feedback information (e.g. preedit text) can be shown to users.</p>
<p>The macro <a class="el" href="group__m17nIntro.html#ga66879b35a1fee08b3e5966f6650c39f9" title="Initialize the m17n library.">M17N_INIT()</a> sets the variable <a class="el" href="group__m17nInputMethod.html#ga0e4d7a69ac0861d4b9b58990a0f03702" title="The driver for internal input methods.">minput_driver</a> to the pointer to this driver so that all internal input methods use it.</p>
<p>Therefore, unless <code>minput_driver</code> is set differently, the driver dependent arguments <b>arg</b> of the functions whose name begins with "minput_" are all ignored. </p>

</div>
</div>
<a class="anchor" id="ga0e4d7a69ac0861d4b9b58990a0f03702"></a><!-- doxytag: member="input.c::minput_driver" ref="ga0e4d7a69ac0861d4b9b58990a0f03702" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structMInputDriver.html">MInputDriver</a>* <a class="el" href="group__m17nInputMethod.html#ga0e4d7a69ac0861d4b9b58990a0f03702">minput_driver</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>The driver for internal input methods. </p>
<p>The variable <a class="el" href="group__m17nInputMethod.html#ga0e4d7a69ac0861d4b9b58990a0f03702" title="The driver for internal input methods.">minput_driver</a> is a pointer to the input method driver that is used by internal input methods. The macro <a class="el" href="group__m17nIntro.html#ga66879b35a1fee08b3e5966f6650c39f9" title="Initialize the m17n library.">M17N_INIT()</a> initializes it to a pointer to <a class="el" href="group__m17nInputMethod.html#gadb0ff8e5e616a810ed27113b17ad363b" title="The default driver for internal input methods.">minput_default_driver</a> if &lt;m17n<em></em>.h&gt; is included. </p>

</div>
</div>
<a class="anchor" id="gaf03ec92f0d20d9bff8b9031461270d41"></a><!-- doxytag: member="input.c::Minput_driver" ref="gaf03ec92f0d20d9bff8b9031461270d41" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__m17nSymbol.html#ga0f53a95817f0b5c26442f8e12f89c16d">MSymbol</a> <a class="el" href="group__m17nInputMethod.html#gaf03ec92f0d20d9bff8b9031461270d41">Minput_driver</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The variable <a class="el" href="group__m17nInputMethod.html#gaf03ec92f0d20d9bff8b9031461270d41">Minput_driver</a> is a symbol for a foreign input method. See <a class="el" href="group__m17nInputMethod.html#foreign-input-method">foreign input method</a> for the detail. </p>

</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr>

<ADDRESS>
<a href="http://www.m17n.org/m17n-lib-en/index.html" target="mulewindow"><img src="parrot.png" align=bottom alt="m17n-lib Home" border=0></a>
</ADDRESS>
</body>
</HTML>

<!-- Copyright information

Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011
  National Institute of Advanced Industrial Science and Technology (AIST)

This file is part of the m17n library documentation.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Section, no Front-Cover Texts,
and no Back-Cover Texts.  A copy of the license is included in the
appendix entitled "GNU Free Documentation License".
-->