]> Pileus Git - ~andy/gtk/blob - docs/reference/gdk/tmpl/gdk-unused.sgml
=== Released 2.3.3 ===
[~andy/gtk] / docs / reference / gdk / tmpl / gdk-unused.sgml
1 <!-- ##### SECTION ./tmpl/color_contexts.sgml:Long_Description ##### -->
2 <para>
3 The #GdkColorContext type is used for allocating groups of colors.
4 </para>
5 <para>
6 It is now deprecated in favor of the gdk_colormap_*() functions described in
7 the <link linkend="gdk-Colormaps-and-Colors">Colormaps and Colors</link>
8 section.
9 </para>
10
11
12 <!-- ##### SECTION ./tmpl/color_contexts.sgml:See_Also ##### -->
13 <para>
14
15 </para>
16
17
18 <!-- ##### SECTION ./tmpl/color_contexts.sgml:Short_Description ##### -->
19 routines for allocating colors (deprecated).
20
21
22 <!-- ##### SECTION ./tmpl/color_contexts.sgml:Title ##### -->
23 Color Contexts
24
25
26 <!-- ##### SECTION ./tmpl/input_contexts.sgml:Long_Description ##### -->
27 <para>
28 A #GdkIC input context is used for each user interface element which supports
29 internationalized text input. See the
30 <link linkend="gdk-Input-Methods">Input Methods</link> section for an overview
31 of how internationalized text input works in GTK+.
32 </para>
33
34
35 <!-- ##### SECTION ./tmpl/input_contexts.sgml:See_Also ##### -->
36 <para>
37
38 </para>
39
40
41 <!-- ##### SECTION ./tmpl/input_contexts.sgml:Short_Description ##### -->
42 internationalized text input properties.
43
44
45 <!-- ##### SECTION ./tmpl/input_contexts.sgml:Title ##### -->
46 Input Contexts
47
48
49 <!-- ##### SECTION ./tmpl/input_methods.sgml:Long_Description ##### -->
50 <para>
51 Input Methods provide a way for complex character sets to be used in GTK+.
52 Languages such as Chinese, Japanese, and Korean (often abbreviated to CJK)
53 use a large number of ideographs, making it impossible to support all
54 characters with a simple keyboard. Instead, text is usually
55 <emphasis>pre-edited</emphasis> using a phonetic alphabet and then
56 <emphasis>composed</emphasis> to form the ideographs.
57 </para>
58 <para>
59 GTK+ makes use of the input method mechanism provided by the X Windows
60 platform. When a GTK+ application is started, it opens a connection to the
61 input method appropriate for the current locale (if any). 
62 </para>
63 <para>
64 Widgets which handle textual input, such as #GtkEntry, need to do a number of
65 things to support internationalized text input:
66 <variablelist>
67 <varlistentry>
68 <term>When the widget is realized:</term>
69 <listitem><para>Check if an input method is being used with gdk_im_ready().
70 If it is, create a new <link linkend="gdk-Input-Contexts">Input Context</link>
71 using gdk_ic_new(). Find out which events the
72 <link linkend="gdk-Input-Contexts">Input Context</link> needs to receive
73 with gdk_ic_get_events(), and make sure that the widget's window receives
74 these events using gdk_window_set_events().
75 </para></listitem>
76 </varlistentry>
77
78 <varlistentry>
79 <term>When the widget's size, state or cursor position changes:</term>
80 <listitem><para>
81 Update the appropriate
82 <link linkend="gdk-Input-Contexts">Input Context</link> attributes
83 using gdk_ic_set_attr().
84 </para></listitem>
85 </varlistentry>
86
87 <varlistentry>
88 <term>When the keyboard focus enters or leaves the widget:</term>
89 <listitem><para>
90 Call gdk_im_begin() or gdk_im_end() to start or finish editing the text.
91 </para></listitem>
92 </varlistentry>
93
94 <varlistentry>
95 <term>When the widget receives a key_press event:</term>
96 <listitem><para>
97 The <structfield>string</structfield> and <structfield>length</structfield>
98 fields of the #GdkEventKey struct should be used to insert the composed text
99 into the widget.
100 </para></listitem>
101 </varlistentry>
102
103 <varlistentry>
104 <term>When the widget is unrealized:</term>
105 <listitem><para>
106 Destroy the <link linkend="gdk-Input-Contexts">Input Context</link>.
107 </para></listitem>
108 </varlistentry>
109 </variablelist>
110
111 </para>
112 <para>
113 See the XLib reference manual for more detailed information on input methods,
114 and the #GtkEntry and #GtkText widgets for some example code.
115 </para>
116
117
118 <!-- ##### SECTION ./tmpl/input_methods.sgml:See_Also ##### -->
119 <para>
120 <variablelist>
121 <varlistentry>
122 <term><link linkend="gdk-Input-Contexts">Input Contexts</link></term>
123 <listitem><para>
124 Used for each widget that handles internationalized text input using the
125 global input method.
126 </para></listitem>
127 </varlistentry>
128 </variablelist>
129
130 </para>
131
132
133 <!-- ##### SECTION ./tmpl/input_methods.sgml:Short_Description ##### -->
134 support for internationalized text input.
135
136
137 <!-- ##### SECTION ./tmpl/input_methods.sgml:Title ##### -->
138 Input Methods
139
140
141 <!-- ##### MACRO GDK_CORE_POINTER ##### -->
142 <para>
143 This macro contains an integer value representing
144 the device ID for the core pointer device.
145 </para>
146
147
148 <!-- ##### MACRO GDK_GC_X11 ##### -->
149 <para>
150
151 </para>
152
153 @object: 
154
155 <!-- ##### MACRO GDK_GC_X11_GET_CLASS ##### -->
156 <para>
157
158 </para>
159
160 @obj: 
161
162 <!-- ##### MACRO GDK_WINDOWING_NANOX ##### -->
163 <para>
164
165 </para>
166
167
168 <!-- ##### STRUCT GdkColorContext ##### -->
169 <para>
170
171 </para>
172
173 @visual: 
174 @colormap: 
175 @num_colors: 
176 @max_colors: 
177 @num_allocated: 
178 @mode: 
179 @need_to_free_colormap: 
180 @std_cmap_atom: 
181 @clut: 
182 @cmap: 
183 @color_hash: 
184 @palette: 
185 @num_palette: 
186 @fast_dither: 
187
188 <!-- ##### STRUCT GdkColorContextDither ##### -->
189 <para>
190
191 </para>
192
193 @fast_rgb: 
194 @fast_err: 
195 @fast_erg: 
196 @fast_erb: 
197
198 <!-- ##### ENUM GdkColorContextMode ##### -->
199 <para>
200
201 </para>
202
203 @GDK_CC_MODE_UNDEFINED: 
204 @GDK_CC_MODE_BW: 
205 @GDK_CC_MODE_STD_CMAP: 
206 @GDK_CC_MODE_TRUE: 
207 @GDK_CC_MODE_MY_GRAY: 
208 @GDK_CC_MODE_PALETTE: 
209
210 <!-- ##### STRUCT GdkDeviceClass ##### -->
211 <para>
212
213 </para>
214
215
216 <!-- ##### STRUCT GdkDeviceInfo ##### -->
217 <para>
218 The #GdkDeviceInfo structure contains information about a 
219 device. It has the following fields:
220 </para>
221
222 @deviceid: a unique integer ID for this device.
223 @name: the human-readable name for the device.
224 @source: the type of device.
225 @mode: a value indicating whether the device is enabled and
226        how the device coordinates map to the screen.
227 @has_cursor: if %TRUE, a cursor will be displayed indicating 
228              the current on-screen location to the user. Otherwise,
229              the application is responsible for drawing a cursor 
230              itself.
231 @num_axes: the number of axes for this device.
232 @axes: a pointer to an array of GdkAxisUse values which
233        give the mapping of axes onto the possible valuators
234        for a GDK device.
235 @num_keys: the number of macro buttons.
236 @keys: a pointer to an array of #GdkDeviceKey structures  
237        which describe what key press events are generated
238        for each macro button.
239
240 <!-- ##### STRUCT GdkDrawableClass ##### -->
241 <para>
242
243 </para>
244
245
246 <!-- ##### STRUCT GdkGCClass ##### -->
247 <para>
248
249 </para>
250
251
252 <!-- ##### STRUCT GdkIC ##### -->
253 <para>
254 The #GdkIC struct is an opaque structure representing an input context
255 for use with the global <link linkend="gdk-Input-Methods">Input Method</link>.
256 </para>
257
258
259 <!-- ##### STRUCT GdkICAttr ##### -->
260 <para>
261 The #GdkICAttr struct is used when getting and setting attributes of the
262 input context. It is used together with a #GdkICAttributesType mask which
263 specifies which of the fields are being set or returned.
264 </para>
265
266 @style: the pre-edit and status style. This attribute is required when
267 creating the #GdkIC, and cannot be changed.
268 @client_window: the #GdkWindow in which the input method will display its
269 pre-edit and status areas or create subwindows.
270 The preedit_area and status_area attributes are specified relative to this
271 window. This attribute is required when creating the #GdkIC, and cannot be
272 changed.
273 @focus_window: the #GdkWindow which is to be used when editing text.
274 gdk_im_begin() sets this attribute before starting the text input process,
275 so it is normally not necessary to set it elsewhere.
276 @filter_events: the mask of events that the input method requires.
277 See the gdk_ic_get_events() function. This attribute is read-only and is
278 never changed.
279 @spot_location: the position of the insertion cursor, for use with the
280 %GDK_IM_PREEDIT_POSITION style. The y coordinate specifies the baseline of
281 the text.
282 @line_spacing: the line spacing to be used in the pre-edit and status areas
283 when displaying multi-line text.
284 @cursor: the cursor to use in the input method's windows.
285 If this attribute isn't set it is determined by the input method.
286 @preedit_fontset: the font to use for the pre-edit area.
287 If this attribute isn't set it is determined by the input method.
288 @preedit_area: the area in which the input method will display pre-editing
289 data, used for the %GDK_IM_PREEDIT_POSITION and %GDK_IM_PREEDIT_AREA styles.
290 @preedit_area_needed: the area that the input method requests for displaying
291 pre-editing data, used for the %GDK_IM_PREEDIT_POSITION and
292 %GDK_IM_PREEDIT_AREA styles.
293 @preedit_foreground: the foreground color to use for the pre-edit area.
294 This color must already be allocated in the preedit_colormap.
295 If this attribute isn't set it is determined by the input method.
296 @preedit_background: the background color to use for the pre-edit area.
297 This color must already be allocated in the preedit_colormap.
298 If this attribute isn't set it is determined by the input method.
299 @preedit_pixmap: the background pixmap to use for the pre-edit area.
300 If this attribute isn't set it is determined by the input method.
301 @preedit_colormap: the colormap the input method should use to allocate colors.
302 The default value is the colormap of client_window.
303 @status_fontset: the font to use for the status area.
304 If this attribute isn't set it is determined by the input method.
305 @status_area: the are that the input method will display status information in.
306 This is used for the %GDK_IM_STATUS_AREA style.
307 @status_area_needed: the size that the input method requests for displaying
308 status information, for the %GDK_IM_STATUS_AREA style.
309 @status_foreground: the foreground color to use for the status area.
310 This color must already be allocated in the status_colormap.
311 If this attribute isn't set it is determined by the input method.
312 @status_background: the background color to use for the status area.
313 This color must already be allocated in the status_colormap.
314 If this attribute isn't set it is determined by the input method.
315 @status_pixmap: the background pixmap to use for the status area.
316 If this attribute isn't set it is determined by the input method.
317 @status_colormap: the colormap the input method should use to allocate colors.
318 The default value is the colormap of client_window.
319
320 <!-- ##### ENUM GdkICAttributesType ##### -->
321 <para>
322 The #GdkICAttributesType contains a set of bit-flags which are used to
323 specify which of the attributes in a #GdkICAttr are being set or returned.
324 </para>
325 <para>
326 It also contains several combinations of the flags which specify required
327 attributes for the various styles:
328 <variablelist>
329 <varlistentry>
330 <term>%GDK_IC_ALL_REQ:</term>
331 <listitem><para>
332 the set of attributes required for all styles.
333 </para></listitem>
334 </varlistentry>
335
336 <varlistentry>
337 <term>%GDK_IC_PREEDIT_AREA_REQ:</term>
338 <listitem><para>
339 the set of additional attributes required for the
340 %GDK_IM_PREEDIT_AREA pre-edit style.
341 </para></listitem>
342 </varlistentry>
343
344 <varlistentry>
345 <term>%GDK_IC_PREEDIT_POSITION_REQ:</term>
346 <listitem><para>
347 the set of additional attributes required for the
348 %GDK_IM_PREEDIT_POSITION pre-edit style.
349 </para></listitem>
350 </varlistentry>
351
352 <varlistentry>
353 <term>%GDK_IC_STATUS_AREA_REQ:</term>
354 <listitem><para>
355 the set of additional attributes required for the
356 %GDK_IM_STATUS_AREA status style.
357 </para></listitem>
358 </varlistentry>
359 </variablelist>
360 </para>
361
362 @GDK_IC_STYLE: 
363 @GDK_IC_CLIENT_WINDOW: 
364 @GDK_IC_FOCUS_WINDOW: 
365 @GDK_IC_FILTER_EVENTS: 
366 @GDK_IC_SPOT_LOCATION: 
367 @GDK_IC_LINE_SPACING: 
368 @GDK_IC_CURSOR: 
369 @GDK_IC_PREEDIT_FONTSET: 
370 @GDK_IC_PREEDIT_AREA: 
371 @GDK_IC_PREEDIT_AREA_NEEDED: 
372 @GDK_IC_PREEDIT_FOREGROUND: 
373 @GDK_IC_PREEDIT_BACKGROUND: 
374 @GDK_IC_PREEDIT_PIXMAP: 
375 @GDK_IC_PREEDIT_COLORMAP: 
376 @GDK_IC_STATUS_FONTSET: 
377 @GDK_IC_STATUS_AREA: 
378 @GDK_IC_STATUS_AREA_NEEDED: 
379 @GDK_IC_STATUS_FOREGROUND: 
380 @GDK_IC_STATUS_BACKGROUND: 
381 @GDK_IC_STATUS_PIXMAP: 
382 @GDK_IC_STATUS_COLORMAP: 
383 @GDK_IC_ALL_REQ: 
384 @GDK_IC_PREEDIT_AREA_REQ: 
385 @GDK_IC_PREEDIT_POSITION_REQ: 
386 @GDK_IC_STATUS_AREA_REQ: 
387
388 <!-- ##### ENUM GdkIMStyle ##### -->
389 <para>
390 A set of bit-flags used to specify the input method styles which are supported
391 or which are currently in use. The flags can be divided into 2 groups, the
392 pre-edit flags and the status flags.
393 </para>
394 <para>
395 The pre-edit flags specify how pre-editing data is displayed.
396 For example, this could display the text being typed in the phonetic
397 alphabet before it is composed and inserted as an ideograph.
398 </para>
399 <para>
400 The status flags specify how status information is displayed.
401 The status information can be thought of as an extension of the
402 standard keyboard mode indicators, such as the Caps Lock indicator.
403 </para>
404 <note>
405 <para>
406 The %GDK_IM_PREEDIT_CALLBACKS and %GDK_IM_STATUS_CALLBACKS styles are not 
407 currently supported in GTK+.
408 </para>
409 </note>
410
411 @GDK_IM_PREEDIT_AREA: The application provides the input method with an area
412 in which to perform <emphasis>off-the-spot</emphasis> pre-editing.
413 @GDK_IM_PREEDIT_CALLBACKS: The application registers a number of callback
414 functions which are used to display pre-editing data.
415 @GDK_IM_PREEDIT_POSITION: The application provides the input method with the
416 position of the insertion cursor, for <emphasis>over-the-spot</emphasis>
417 pre-editing. The input method creates its own window over the widget to
418 display the pre-editing data.
419 @GDK_IM_PREEDIT_NOTHING: The input method uses the root X window to perform
420 pre-editing, so the application does not need to do anything.
421 @GDK_IM_PREEDIT_NONE: No pre-editing is done by the input method, or no
422 pre-editing data needs to be displayed.
423 @GDK_IM_PREEDIT_MASK: A bit-mask containing all the pre-edit flags.
424 @GDK_IM_STATUS_AREA: The application provides the input method with an area
425 in which to display status information.
426 @GDK_IM_STATUS_CALLBACKS: The applications registers a number of callback
427 functions which are used to display status information.
428 @GDK_IM_STATUS_NOTHING: The input method uses the root X window to display
429 status information, so the application does not need to do anything.
430 @GDK_IM_STATUS_NONE: The input method does not display status information.
431 @GDK_IM_STATUS_MASK: A bit-mask containing all the status flags.
432
433 <!-- ##### STRUCT GdkKeyInfo ##### -->
434 <para>
435
436 </para>
437
438 @keycode: 
439 @group: 
440 @level: 
441
442 <!-- ##### STRUCT GdkKeymapClass ##### -->
443 <para>
444
445 </para>
446
447
448 <!-- ##### ENUM GdkPixbufAlphaMode ##### -->
449 <para>
450
451 </para>
452
453 @GDK_PIXBUF_ALPHA_BILEVEL: 
454 @GDK_PIXBUF_ALPHA_FULL: 
455
456 <!-- ##### FUNCTION gdk_color_context_add_palette ##### -->
457 <para>
458
459 </para>
460
461 @cc: 
462 @palette: 
463 @num_palette: 
464 @Returns: 
465
466 <!-- ##### FUNCTION gdk_color_context_free ##### -->
467 <para>
468
469 </para>
470
471 @cc: 
472
473 <!-- ##### FUNCTION gdk_color_context_free_dither ##### -->
474 <para>
475
476 </para>
477
478 @cc: 
479
480 <!-- ##### FUNCTION gdk_color_context_get_index_from_palette ##### -->
481 <para>
482
483 </para>
484
485 @cc: 
486 @red: 
487 @green: 
488 @blue: 
489 @failed: 
490 @Returns: 
491
492 <!-- ##### FUNCTION gdk_color_context_get_pixel ##### -->
493 <para>
494
495 </para>
496
497 @cc: 
498 @red: 
499 @green: 
500 @blue: 
501 @failed: 
502 @Returns: 
503
504 <!-- ##### FUNCTION gdk_color_context_get_pixel_from_palette ##### -->
505 <para>
506
507 </para>
508
509 @cc: 
510 @red: 
511 @green: 
512 @blue: 
513 @failed: 
514 @Returns: 
515
516 <!-- ##### FUNCTION gdk_color_context_get_pixels ##### -->
517 <para>
518
519 </para>
520
521 @cc: 
522 @reds: 
523 @greens: 
524 @blues: 
525 @ncolors: 
526 @colors: 
527 @nallocated: 
528
529 <!-- ##### FUNCTION gdk_color_context_get_pixels_incremental ##### -->
530 <para>
531
532 </para>
533
534 @cc: 
535 @reds: 
536 @greens: 
537 @blues: 
538 @ncolors: 
539 @used: 
540 @colors: 
541 @nallocated: 
542
543 <!-- ##### FUNCTION gdk_color_context_init_dither ##### -->
544 <para>
545
546 </para>
547
548 @cc: 
549
550 <!-- ##### FUNCTION gdk_color_context_new ##### -->
551 <para>
552
553 </para>
554
555 @visual: 
556 @colormap: 
557 @Returns: 
558
559 <!-- ##### FUNCTION gdk_color_context_new_mono ##### -->
560 <para>
561
562 </para>
563
564 @visual: 
565 @colormap: 
566 @Returns: 
567
568 <!-- ##### FUNCTION gdk_color_context_query_color ##### -->
569 <para>
570
571 </para>
572
573 @cc: 
574 @color: 
575 @Returns: 
576
577 <!-- ##### FUNCTION gdk_color_context_query_colors ##### -->
578 <para>
579
580 </para>
581
582 @cc: 
583 @colors: 
584 @num_colors: 
585 @Returns: 
586
587 <!-- ##### VARIABLE gdk_core_pointer ##### -->
588 <para>
589
590 </para>
591
592
593 <!-- ##### VARIABLE gdk_display_name ##### -->
594 <para>
595
596 </para>
597
598
599 <!-- ##### FUNCTION gdk_display_set_sm_client_id ##### -->
600 <para>
601
602 </para>
603
604 @display: 
605 @sm_client_id: 
606
607 <!-- ##### FUNCTION gdk_font_full_name_free ##### -->
608 <para>
609 Frees a full font name obtained from gdk_font_full_name_get().
610 </para>
611
612 @name: a full font name.
613
614 <!-- ##### FUNCTION gdk_font_full_name_get ##### -->
615 <para>
616 Returns a comma-separated list of XLFDs for the
617 fonts making up a given #GdkFont.
618 </para>
619
620 @font: a #GdkFont
621 @Returns: a newly-allocated string containing a list of XLFDs, 
622   should be freed with gdk_font_full_name_free() when no longer needed.
623
624 <!-- ##### FUNCTION gdk_get_client_window ##### -->
625 <para>
626
627 </para>
628
629 @dpy: 
630 @win: 
631 @Returns: 
632
633 <!-- ##### FUNCTION gdk_get_default_display ##### -->
634 <para>
635
636 </para>
637
638 @Returns: 
639
640 <!-- ##### FUNCTION gdk_get_default_screen ##### -->
641 <para>
642
643 </para>
644
645 @Returns: 
646
647 <!-- ##### FUNCTION gdk_ic_attr_destroy ##### -->
648 <para>
649 Destroys the given #GdkICAttr struct, freeing the allocated memory.
650 </para>
651
652 @attr: a #GdkICAttr struct.
653
654 <!-- ##### FUNCTION gdk_ic_attr_new ##### -->
655 <para>
656 Creates a new #GdkICAttr struct, with all fields set to 0.
657 The #GdkICAttr struct should be freed with gdk_ic_attr_destroy() when no
658 longer needed.
659 </para>
660
661 @Returns: a new #GdkICAttr struct.
662
663 <!-- ##### FUNCTION gdk_ic_destroy ##### -->
664 <para>
665 Destroys the input context.
666 </para>
667
668 @ic: a #GdkIC.
669
670 <!-- ##### FUNCTION gdk_ic_get_attr ##### -->
671 <para>
672 Gets attributes of a #GdkIC.
673 </para>
674
675 @ic: a #GdkIC.
676 @attr: a #GdkICAttr struct to contain the returned attributes.
677 @mask: a #GdkICAttributesType mask specifying which attributes to get.
678 @Returns: a #GdkICAttributesType mask specifying which of the attributes
679 were not retrieved succesfully.
680
681 <!-- ##### FUNCTION gdk_ic_get_events ##### -->
682 <para>
683 Returns the mask of events that the input method needs to function properly.
684 This is typically called in a widget's realize method after creating the
685 #GdkIC. The returned event mask is then combined with the widget's
686 own event mask and applied using gdk_window_set_events().
687 </para>
688
689 @ic: a #GdkIC.
690 @Returns: the mask of events that the input method needs to function
691 properly.
692
693 <!-- ##### FUNCTION gdk_ic_get_style ##### -->
694 <para>
695 Returns the pre-edit and status style of the #GdkIC.
696 </para>
697
698 @ic: a #GdkIC.
699 @Returns: the pre-edit and status style of the #GdkIC.
700
701 <!-- ##### FUNCTION gdk_ic_new ##### -->
702 <para>
703 Creates a new #GdkIC using the given attributes.
704 </para>
705
706 @attr: a #GdkICAttr struct containing attributes to use for the input context.
707 @mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
708 are set.
709 @Returns: a new #GdkIC.
710
711 <!-- ##### FUNCTION gdk_ic_set_attr ##### -->
712 <para>
713 Sets attributes of the #GdkIC.
714 </para>
715 <para>
716 Note that the GDK_IC_STYLE and GDK_IC_CLIENT_WINDOW attributes can only be set
717 when creating the #GdkIC, and the GDK_IC_FILTER_EVENTS attribute is read-only.
718 </para>
719
720 @ic: a #GdkIC.
721 @attr: a #GdkICAttr struct containing attributes to use for the input context.
722 @mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
723 are set.
724 @Returns: a #GdkICAttributesType mask indicating which of the attributes
725 were not set successfully.
726
727 <!-- ##### FUNCTION gdk_im_begin ##### -->
728 <para>
729 Starts editing, using the given input context and #GdkWindow.
730 This should be called when the widget receives the input focus, typically in
731 the widget's focus_in_event method.
732 </para>
733
734 @ic: a #GdkIC.
735 @window: the #GdkWindow which will be receiving the key press events.
736
737 <!-- ##### FUNCTION gdk_im_decide_style ##### -->
738 <para>
739 Decides which input method style should be used, by comparing the styles given
740 in @supported_style with those of the available input method.
741 </para>
742
743 @supported_style: styles which are supported by the widget.
744 @Returns: the best style in @supported_style that is also supported by the
745 available input method.
746
747 <!-- ##### FUNCTION gdk_im_end ##### -->
748 <para>
749 Stops editing using the input method.
750 This should be called when the widget loses the input focus, typically in
751 the widget's focus_out_event method.
752 </para>
753
754
755 <!-- ##### FUNCTION gdk_im_ready ##### -->
756 <para>
757 Checks if an input method is to be used for the current locale.
758 If GTK+ has been compiled without support for input methods, or the current
759 locale doesn't need an input method, then this will return FALSE.
760 </para>
761
762 @Returns: TRUE if an input method is available and should be used.
763
764 <!-- ##### FUNCTION gdk_im_set_best_style ##### -->
765 <para>
766 Sets the best pre-edit and/or status style which should be used.
767 This will affect the style chosen in gdk_im_decide_style().
768 </para>
769 <para>
770 The order of the pre-edit styles is (from worst to best):
771 %GDK_IM_PREEDIT_NONE, %GDK_IM_PREEDIT_NOTHING, %GDK_IM_PREEDIT_AREA,
772 %GDK_IM_PREEDIT_POSITION, %GDK_IM_PREEDIT_CALLBACKS.
773 The order of the status styles is:
774 %GDK_IM_STATUS_NONE, %GDK_IM_STATUS_NOTHING, %GDK_IM_STATUS_AREA,
775 %GDK_IM_STATUS_CALLBACKS.
776 </para>
777 <para>
778 So, for example, to set the best allowed pre-edit style to %GDK_IM_PREEDIT_AREA
779 you would do this:
780
781 <informalexample>
782 <programlisting>
783   gdk_im_set_best_style (GDK_IM_PREEDIT_AREA);
784 </programlisting>
785 </informalexample>
786
787 Or to set the best allowed pre-edit style to %GDK_IM_PREEDIT_POSITION and the
788 best allowed status style to %GDK_IM_STATUS_NOTHING you can do this:
789
790 <informalexample>
791 <programlisting>
792   gdk_im_set_best_style (GDK_IM_PREEDIT_POSITION | GDK_IM_STATUS_NOTHING);
793 </programlisting>
794 </informalexample>
795 </para>
796
797 @best_allowed_style: a bit-mask with the best pre-edit style and/or the best
798 status style to use. If 0 is used, then the current bit-mask of all allowed
799 styles is returned.
800 @Returns: a bit-mask of all the styles allowed.
801
802 <!-- ##### FUNCTION gdk_input_list_devices ##### -->
803 <para>
804 Lists all available input devices, along with their
805 configuration information.
806 </para>
807
808 @Returns: A #GList of #GdkDeviceInfo structures. This list
809           is internal data of GTK+ and should not be modified 
810           or freed.
811
812 <!-- ##### FUNCTION gdk_input_motion_events ##### -->
813 <para>
814 Retrieves the motion history for a given device/window pair.
815 </para>
816
817 @window: a #GdkWindow.
818 @deviceid: the device for which to retrieve motion history.
819 @start: the start time.
820 @stop: the stop time.
821 @nevents_return: location to store the number of events returned.
822 @Returns: a newly allocated array containing all the events
823           from @start to @stop. This array should be freed
824           with g_free() when you are finished using it.
825
826 <!-- ##### FUNCTION gdk_input_set_axes ##### -->
827 <para>
828 Sets the mapping of the axes (valuators) of a device
829 onto the predefined valuator types that GTK+ understands.
830 </para>
831
832 @deviceid: the device to configure.
833 @axes: an array of GdkAxisUse. This length of this array
834        must match the number of axes for the device.
835
836 <!-- ##### FUNCTION gdk_input_set_key ##### -->
837 <para>
838 Sets the key event generated when a macro button is pressed.
839 </para>
840
841 @deviceid: the device to configure.
842 @index_: the index of the macro button.
843 @keyval: the key value for the #GdkKeypressEvent to generate.
844          (a value of 0 means no event will be generated.)
845 @modifiers: the modifier field for the generated 
846             #GdkKeyPressEvent.
847
848 <!-- ##### FUNCTION gdk_input_set_mode ##### -->
849 <para>
850 Enables or disables a device, and determines how the
851 device maps onto the screen.
852 </para>
853
854 @deviceid: the device to configure.
855 @mode: the new mode.
856 @Returns: %TRUE if the device supports the given mode, otherwise 
857           %FALSE and the device's mode is unchanged.
858
859 <!-- ##### FUNCTION gdk_input_set_source ##### -->
860 <para>
861 Sets the source type for a device.
862 </para>
863
864 @deviceid: the device to configure
865 @source: the new source type.
866
867 <!-- ##### FUNCTION gdk_input_window_get_pointer ##### -->
868 <para>
869 Returns information about the current position of the pointer
870 within a window, including extended device information.
871 Any of the return parameters may be %NULL, in which case,
872 they will be ignored.
873 </para>
874
875 @window: a #GdkWindow.
876 @deviceid: a device ID.
877 @x: location to store current x postion.
878 @y: location to store current y postion.
879 @pressure: location to store current pressure.
880 @xtilt: location to store current tilt in the x direction.
881 @ytilt: location to store current tilt in the y direction.
882 @mask: location to store the current modifier state.
883
884 <!-- ##### VARIABLE gdk_leader_window ##### -->
885 <para>
886
887 </para>
888
889
890 <!-- ##### FUNCTION gdk_open_display ##### -->
891 <para>
892
893 </para>
894
895 @display_name: 
896 @Returns: 
897
898 <!-- ##### VARIABLE gdk_progclass ##### -->
899 <para>
900
901 </para>
902
903
904 <!-- ##### VARIABLE gdk_screen ##### -->
905 <para>
906
907 </para>
908
909
910 <!-- ##### FUNCTION gdk_screen_close ##### -->
911 <para>
912
913 </para>
914
915 @screen: 
916
917 <!-- ##### FUNCTION gdk_screen_get_window_at_pointer ##### -->
918 <para>
919
920 </para>
921
922 @screen: 
923 @win_x: 
924 @win_y: 
925 @Returns: 
926
927 <!-- ##### FUNCTION gdk_screen_use_virtual_screen ##### -->
928 <para>
929
930 </para>
931
932 @screen: 
933 @Returns: 
934
935 <!-- ##### VARIABLE gdk_selection_property ##### -->
936 <para>
937
938 </para>
939
940
941 <!-- ##### FUNCTION gdk_set_default_display ##### -->
942 <para>
943
944 </para>
945
946 @display: 
947
948 <!-- ##### FUNCTION gdkx_visual_get_for_screen ##### -->
949 <para>
950
951 </para>
952
953 @screen: 
954 @xvisualid: 
955 @Returns: 
956