]> Pileus Git - ~andy/gtk/blob - docs/reference/gdk/tmpl/gdk-unused.sgml
Make 3.0 parallel-installable to 2.x
[~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_FB ##### -->
163 <para>
164 This macro is defined if GDK is configured to use the Linux framebuffer backend.
165 </para>
166
167
168 <!-- ##### MACRO GDK_WINDOWING_NANOX ##### -->
169 <para>
170
171 </para>
172
173
174 <!-- ##### STRUCT GdkColorContext ##### -->
175 <para>
176
177 </para>
178
179 @visual: 
180 @colormap: 
181 @num_colors: 
182 @max_colors: 
183 @num_allocated: 
184 @mode: 
185 @need_to_free_colormap: 
186 @std_cmap_atom: 
187 @clut: 
188 @cmap: 
189 @color_hash: 
190 @palette: 
191 @num_palette: 
192 @fast_dither: 
193
194 <!-- ##### STRUCT GdkColorContextDither ##### -->
195 <para>
196
197 </para>
198
199 @fast_rgb: 
200 @fast_err: 
201 @fast_erg: 
202 @fast_erb: 
203
204 <!-- ##### ENUM GdkColorContextMode ##### -->
205 <para>
206
207 </para>
208
209 @GDK_CC_MODE_UNDEFINED: 
210 @GDK_CC_MODE_BW: 
211 @GDK_CC_MODE_STD_CMAP: 
212 @GDK_CC_MODE_TRUE: 
213 @GDK_CC_MODE_MY_GRAY: 
214 @GDK_CC_MODE_PALETTE: 
215
216 <!-- ##### STRUCT GdkDeviceClass ##### -->
217 <para>
218
219 </para>
220
221
222 <!-- ##### STRUCT GdkDeviceInfo ##### -->
223 <para>
224 The #GdkDeviceInfo structure contains information about a 
225 device. It has the following fields:
226 </para>
227
228 @deviceid: a unique integer ID for this device.
229 @name: the human-readable name for the device.
230 @source: the type of device.
231 @mode: a value indicating whether the device is enabled and
232        how the device coordinates map to the screen.
233 @has_cursor: if %TRUE, a cursor will be displayed indicating 
234              the current on-screen location to the user. Otherwise,
235              the application is responsible for drawing a cursor 
236              itself.
237 @num_axes: the number of axes for this device.
238 @axes: a pointer to an array of GdkAxisUse values which
239        give the mapping of axes onto the possible valuators
240        for a GDK device.
241 @num_keys: the number of macro buttons.
242 @keys: a pointer to an array of #GdkDeviceKey structures  
243        which describe what key press events are generated
244        for each macro button.
245
246 <!-- ##### STRUCT GdkDrawableClass ##### -->
247 <para>
248
249 </para>
250
251
252 <!-- ##### STRUCT GdkGCClass ##### -->
253 <para>
254
255 </para>
256
257
258 <!-- ##### STRUCT GdkIC ##### -->
259 <para>
260 The #GdkIC struct is an opaque structure representing an input context
261 for use with the global <link linkend="gdk-Input-Methods">Input Method</link>.
262 </para>
263
264
265 <!-- ##### STRUCT GdkICAttr ##### -->
266 <para>
267 The #GdkICAttr struct is used when getting and setting attributes of the
268 input context. It is used together with a #GdkICAttributesType mask which
269 specifies which of the fields are being set or returned.
270 </para>
271
272 @style: the pre-edit and status style. This attribute is required when
273 creating the #GdkIC, and cannot be changed.
274 @client_window: the #GdkWindow in which the input method will display its
275 pre-edit and status areas or create subwindows.
276 The preedit_area and status_area attributes are specified relative to this
277 window. This attribute is required when creating the #GdkIC, and cannot be
278 changed.
279 @focus_window: the #GdkWindow which is to be used when editing text.
280 gdk_im_begin() sets this attribute before starting the text input process,
281 so it is normally not necessary to set it elsewhere.
282 @filter_events: the mask of events that the input method requires.
283 See the gdk_ic_get_events() function. This attribute is read-only and is
284 never changed.
285 @spot_location: the position of the insertion cursor, for use with the
286 %GDK_IM_PREEDIT_POSITION style. The y coordinate specifies the baseline of
287 the text.
288 @line_spacing: the line spacing to be used in the pre-edit and status areas
289 when displaying multi-line text.
290 @cursor: the cursor to use in the input method's windows.
291 If this attribute isn't set it is determined by the input method.
292 @preedit_fontset: the font to use for the pre-edit area.
293 If this attribute isn't set it is determined by the input method.
294 @preedit_area: the area in which the input method will display pre-editing
295 data, used for the %GDK_IM_PREEDIT_POSITION and %GDK_IM_PREEDIT_AREA styles.
296 @preedit_area_needed: the area that the input method requests for displaying
297 pre-editing data, used for the %GDK_IM_PREEDIT_POSITION and
298 %GDK_IM_PREEDIT_AREA styles.
299 @preedit_foreground: the foreground color to use for the pre-edit area.
300 This color must already be allocated in the preedit_colormap.
301 If this attribute isn't set it is determined by the input method.
302 @preedit_background: the background color to use for the pre-edit area.
303 This color must already be allocated in the preedit_colormap.
304 If this attribute isn't set it is determined by the input method.
305 @preedit_pixmap: the background pixmap to use for the pre-edit area.
306 If this attribute isn't set it is determined by the input method.
307 @preedit_colormap: the colormap the input method should use to allocate colors.
308 The default value is the colormap of client_window.
309 @status_fontset: the font to use for the status area.
310 If this attribute isn't set it is determined by the input method.
311 @status_area: the are that the input method will display status information in.
312 This is used for the %GDK_IM_STATUS_AREA style.
313 @status_area_needed: the size that the input method requests for displaying
314 status information, for the %GDK_IM_STATUS_AREA style.
315 @status_foreground: the foreground color to use for the status area.
316 This color must already be allocated in the status_colormap.
317 If this attribute isn't set it is determined by the input method.
318 @status_background: the background color to use for the status area.
319 This color must already be allocated in the status_colormap.
320 If this attribute isn't set it is determined by the input method.
321 @status_pixmap: the background pixmap to use for the status area.
322 If this attribute isn't set it is determined by the input method.
323 @status_colormap: the colormap the input method should use to allocate colors.
324 The default value is the colormap of client_window.
325
326 <!-- ##### ENUM GdkICAttributesType ##### -->
327 <para>
328 The #GdkICAttributesType contains a set of bit-flags which are used to
329 specify which of the attributes in a #GdkICAttr are being set or returned.
330 </para>
331 <para>
332 It also contains several combinations of the flags which specify required
333 attributes for the various styles:
334 <variablelist>
335 <varlistentry>
336 <term>%GDK_IC_ALL_REQ:</term>
337 <listitem><para>
338 the set of attributes required for all styles.
339 </para></listitem>
340 </varlistentry>
341
342 <varlistentry>
343 <term>%GDK_IC_PREEDIT_AREA_REQ:</term>
344 <listitem><para>
345 the set of additional attributes required for the
346 %GDK_IM_PREEDIT_AREA pre-edit style.
347 </para></listitem>
348 </varlistentry>
349
350 <varlistentry>
351 <term>%GDK_IC_PREEDIT_POSITION_REQ:</term>
352 <listitem><para>
353 the set of additional attributes required for the
354 %GDK_IM_PREEDIT_POSITION pre-edit style.
355 </para></listitem>
356 </varlistentry>
357
358 <varlistentry>
359 <term>%GDK_IC_STATUS_AREA_REQ:</term>
360 <listitem><para>
361 the set of additional attributes required for the
362 %GDK_IM_STATUS_AREA status style.
363 </para></listitem>
364 </varlistentry>
365 </variablelist>
366 </para>
367
368 @GDK_IC_STYLE: 
369 @GDK_IC_CLIENT_WINDOW: 
370 @GDK_IC_FOCUS_WINDOW: 
371 @GDK_IC_FILTER_EVENTS: 
372 @GDK_IC_SPOT_LOCATION: 
373 @GDK_IC_LINE_SPACING: 
374 @GDK_IC_CURSOR: 
375 @GDK_IC_PREEDIT_FONTSET: 
376 @GDK_IC_PREEDIT_AREA: 
377 @GDK_IC_PREEDIT_AREA_NEEDED: 
378 @GDK_IC_PREEDIT_FOREGROUND: 
379 @GDK_IC_PREEDIT_BACKGROUND: 
380 @GDK_IC_PREEDIT_PIXMAP: 
381 @GDK_IC_PREEDIT_COLORMAP: 
382 @GDK_IC_STATUS_FONTSET: 
383 @GDK_IC_STATUS_AREA: 
384 @GDK_IC_STATUS_AREA_NEEDED: 
385 @GDK_IC_STATUS_FOREGROUND: 
386 @GDK_IC_STATUS_BACKGROUND: 
387 @GDK_IC_STATUS_PIXMAP: 
388 @GDK_IC_STATUS_COLORMAP: 
389 @GDK_IC_ALL_REQ: 
390 @GDK_IC_PREEDIT_AREA_REQ: 
391 @GDK_IC_PREEDIT_POSITION_REQ: 
392 @GDK_IC_STATUS_AREA_REQ: 
393
394 <!-- ##### ENUM GdkIMStyle ##### -->
395 <para>
396 A set of bit-flags used to specify the input method styles which are supported
397 or which are currently in use. The flags can be divided into 2 groups, the
398 pre-edit flags and the status flags.
399 </para>
400 <para>
401 The pre-edit flags specify how pre-editing data is displayed.
402 For example, this could display the text being typed in the phonetic
403 alphabet before it is composed and inserted as an ideograph.
404 </para>
405 <para>
406 The status flags specify how status information is displayed.
407 The status information can be thought of as an extension of the
408 standard keyboard mode indicators, such as the Caps Lock indicator.
409 </para>
410 <note>
411 <para>
412 The %GDK_IM_PREEDIT_CALLBACKS and %GDK_IM_STATUS_CALLBACKS styles are not 
413 currently supported in GTK+.
414 </para>
415 </note>
416
417 @GDK_IM_PREEDIT_AREA: The application provides the input method with an area
418 in which to perform <emphasis>off-the-spot</emphasis> pre-editing.
419 @GDK_IM_PREEDIT_CALLBACKS: The application registers a number of callback
420 functions which are used to display pre-editing data.
421 @GDK_IM_PREEDIT_POSITION: The application provides the input method with the
422 position of the insertion cursor, for <emphasis>over-the-spot</emphasis>
423 pre-editing. The input method creates its own window over the widget to
424 display the pre-editing data.
425 @GDK_IM_PREEDIT_NOTHING: The input method uses the root X window to perform
426 pre-editing, so the application does not need to do anything.
427 @GDK_IM_PREEDIT_NONE: No pre-editing is done by the input method, or no
428 pre-editing data needs to be displayed.
429 @GDK_IM_PREEDIT_MASK: A bit-mask containing all the pre-edit flags.
430 @GDK_IM_STATUS_AREA: The application provides the input method with an area
431 in which to display status information.
432 @GDK_IM_STATUS_CALLBACKS: The applications registers a number of callback
433 functions which are used to display status information.
434 @GDK_IM_STATUS_NOTHING: The input method uses the root X window to display
435 status information, so the application does not need to do anything.
436 @GDK_IM_STATUS_NONE: The input method does not display status information.
437 @GDK_IM_STATUS_MASK: A bit-mask containing all the status flags.
438
439 <!-- ##### STRUCT GdkKeyInfo ##### -->
440 <para>
441
442 </para>
443
444 @keycode: 
445 @group: 
446 @level: 
447
448 <!-- ##### STRUCT GdkKeymapClass ##### -->
449 <para>
450
451 </para>
452
453
454 <!-- ##### ENUM GdkPixbufAlphaMode ##### -->
455 <para>
456
457 </para>
458
459 @GDK_PIXBUF_ALPHA_BILEVEL: 
460 @GDK_PIXBUF_ALPHA_FULL: 
461
462 <!-- ##### STRUCT GdkWindowRedirect ##### -->
463 <para>
464
465 </para>
466
467
468 <!-- ##### FUNCTION gdk_color_context_add_palette ##### -->
469 <para>
470
471 </para>
472
473 @cc: 
474 @palette: 
475 @num_palette: 
476 @Returns: 
477
478 <!-- ##### FUNCTION gdk_color_context_free ##### -->
479 <para>
480
481 </para>
482
483 @cc: 
484
485 <!-- ##### FUNCTION gdk_color_context_free_dither ##### -->
486 <para>
487
488 </para>
489
490 @cc: 
491
492 <!-- ##### FUNCTION gdk_color_context_get_index_from_palette ##### -->
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 ##### -->
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_pixel_from_palette ##### -->
517 <para>
518
519 </para>
520
521 @cc: 
522 @red: 
523 @green: 
524 @blue: 
525 @failed: 
526 @Returns: 
527
528 <!-- ##### FUNCTION gdk_color_context_get_pixels ##### -->
529 <para>
530
531 </para>
532
533 @cc: 
534 @reds: 
535 @greens: 
536 @blues: 
537 @ncolors: 
538 @colors: 
539 @nallocated: 
540
541 <!-- ##### FUNCTION gdk_color_context_get_pixels_incremental ##### -->
542 <para>
543
544 </para>
545
546 @cc: 
547 @reds: 
548 @greens: 
549 @blues: 
550 @ncolors: 
551 @used: 
552 @colors: 
553 @nallocated: 
554
555 <!-- ##### FUNCTION gdk_color_context_init_dither ##### -->
556 <para>
557
558 </para>
559
560 @cc: 
561
562 <!-- ##### FUNCTION gdk_color_context_new ##### -->
563 <para>
564
565 </para>
566
567 @visual: 
568 @colormap: 
569 @Returns: 
570
571 <!-- ##### FUNCTION gdk_color_context_new_mono ##### -->
572 <para>
573
574 </para>
575
576 @visual: 
577 @colormap: 
578 @Returns: 
579
580 <!-- ##### FUNCTION gdk_color_context_query_color ##### -->
581 <para>
582
583 </para>
584
585 @cc: 
586 @color: 
587 @Returns: 
588
589 <!-- ##### FUNCTION gdk_color_context_query_colors ##### -->
590 <para>
591
592 </para>
593
594 @cc: 
595 @colors: 
596 @num_colors: 
597 @Returns: 
598
599 <!-- ##### VARIABLE gdk_core_pointer ##### -->
600 <para>
601
602 </para>
603
604
605 <!-- ##### VARIABLE gdk_display_name ##### -->
606 <para>
607
608 </para>
609
610
611 <!-- ##### FUNCTION gdk_display_set_sm_client_id ##### -->
612 <para>
613
614 </para>
615
616 @display: 
617 @sm_client_id: 
618
619 <!-- ##### FUNCTION gdk_font_full_name_free ##### -->
620 <para>
621 Frees a full font name obtained from gdk_font_full_name_get().
622 </para>
623
624 @name: a full font name.
625
626 <!-- ##### FUNCTION gdk_font_full_name_get ##### -->
627 <para>
628 Returns a comma-separated list of XLFDs for the
629 fonts making up a given #GdkFont.
630 </para>
631
632 @font: a #GdkFont
633 @Returns: a newly-allocated string containing a list of XLFDs, 
634   should be freed with gdk_font_full_name_free() when no longer needed.
635
636 <!-- ##### FUNCTION gdk_get_client_window ##### -->
637 <para>
638
639 </para>
640
641 @dpy: 
642 @win: 
643 @Returns: 
644
645 <!-- ##### FUNCTION gdk_get_default_display ##### -->
646 <para>
647
648 </para>
649
650 @Returns: 
651
652 <!-- ##### FUNCTION gdk_get_default_screen ##### -->
653 <para>
654
655 </para>
656
657 @Returns: 
658
659 <!-- ##### FUNCTION gdk_ic_attr_destroy ##### -->
660 <para>
661 Destroys the given #GdkICAttr struct, freeing the allocated memory.
662 </para>
663
664 @attr: a #GdkICAttr struct.
665
666 <!-- ##### FUNCTION gdk_ic_attr_new ##### -->
667 <para>
668 Creates a new #GdkICAttr struct, with all fields set to 0.
669 The #GdkICAttr struct should be freed with gdk_ic_attr_destroy() when no
670 longer needed.
671 </para>
672
673 @Returns: a new #GdkICAttr struct.
674
675 <!-- ##### FUNCTION gdk_ic_destroy ##### -->
676 <para>
677 Destroys the input context.
678 </para>
679
680 @ic: a #GdkIC.
681
682 <!-- ##### FUNCTION gdk_ic_get_attr ##### -->
683 <para>
684 Gets attributes of a #GdkIC.
685 </para>
686
687 @ic: a #GdkIC.
688 @attr: a #GdkICAttr struct to contain the returned attributes.
689 @mask: a #GdkICAttributesType mask specifying which attributes to get.
690 @Returns: a #GdkICAttributesType mask specifying which of the attributes
691 were not retrieved succesfully.
692
693 <!-- ##### FUNCTION gdk_ic_get_events ##### -->
694 <para>
695 Returns the mask of events that the input method needs to function properly.
696 This is typically called in a widget's realize method after creating the
697 #GdkIC. The returned event mask is then combined with the widget's
698 own event mask and applied using gdk_window_set_events().
699 </para>
700
701 @ic: a #GdkIC.
702 @Returns: the mask of events that the input method needs to function
703 properly.
704
705 <!-- ##### FUNCTION gdk_ic_get_style ##### -->
706 <para>
707 Returns the pre-edit and status style of the #GdkIC.
708 </para>
709
710 @ic: a #GdkIC.
711 @Returns: the pre-edit and status style of the #GdkIC.
712
713 <!-- ##### FUNCTION gdk_ic_new ##### -->
714 <para>
715 Creates a new #GdkIC using the given attributes.
716 </para>
717
718 @attr: a #GdkICAttr struct containing attributes to use for the input context.
719 @mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
720 are set.
721 @Returns: a new #GdkIC.
722
723 <!-- ##### FUNCTION gdk_ic_set_attr ##### -->
724 <para>
725 Sets attributes of the #GdkIC.
726 </para>
727 <para>
728 Note that the GDK_IC_STYLE and GDK_IC_CLIENT_WINDOW attributes can only be set
729 when creating the #GdkIC, and the GDK_IC_FILTER_EVENTS attribute is read-only.
730 </para>
731
732 @ic: a #GdkIC.
733 @attr: a #GdkICAttr struct containing attributes to use for the input context.
734 @mask: a #GdkICAttributesType mask specifying which of the attributes in @attr
735 are set.
736 @Returns: a #GdkICAttributesType mask indicating which of the attributes
737 were not set successfully.
738
739 <!-- ##### FUNCTION gdk_im_begin ##### -->
740 <para>
741 Starts editing, using the given input context and #GdkWindow.
742 This should be called when the widget receives the input focus, typically in
743 the widget's focus_in_event method.
744 </para>
745
746 @ic: a #GdkIC.
747 @window: the #GdkWindow which will be receiving the key press events.
748
749 <!-- ##### FUNCTION gdk_im_decide_style ##### -->
750 <para>
751 Decides which input method style should be used, by comparing the styles given
752 in @supported_style with those of the available input method.
753 </para>
754
755 @supported_style: styles which are supported by the widget.
756 @Returns: the best style in @supported_style that is also supported by the
757 available input method.
758
759 <!-- ##### FUNCTION gdk_im_end ##### -->
760 <para>
761 Stops editing using the input method.
762 This should be called when the widget loses the input focus, typically in
763 the widget's focus_out_event method.
764 </para>
765
766
767 <!-- ##### FUNCTION gdk_im_ready ##### -->
768 <para>
769 Checks if an input method is to be used for the current locale.
770 If GTK+ has been compiled without support for input methods, or the current
771 locale doesn't need an input method, then this will return FALSE.
772 </para>
773
774 @Returns: TRUE if an input method is available and should be used.
775
776 <!-- ##### FUNCTION gdk_im_set_best_style ##### -->
777 <para>
778 Sets the best pre-edit and/or status style which should be used.
779 This will affect the style chosen in gdk_im_decide_style().
780 </para>
781 <para>
782 The order of the pre-edit styles is (from worst to best):
783 %GDK_IM_PREEDIT_NONE, %GDK_IM_PREEDIT_NOTHING, %GDK_IM_PREEDIT_AREA,
784 %GDK_IM_PREEDIT_POSITION, %GDK_IM_PREEDIT_CALLBACKS.
785 The order of the status styles is:
786 %GDK_IM_STATUS_NONE, %GDK_IM_STATUS_NOTHING, %GDK_IM_STATUS_AREA,
787 %GDK_IM_STATUS_CALLBACKS.
788 </para>
789 <para>
790 So, for example, to set the best allowed pre-edit style to %GDK_IM_PREEDIT_AREA
791 you would do this:
792
793 <informalexample>
794 <programlisting>
795   gdk_im_set_best_style (GDK_IM_PREEDIT_AREA);
796 </programlisting>
797 </informalexample>
798
799 Or to set the best allowed pre-edit style to %GDK_IM_PREEDIT_POSITION and the
800 best allowed status style to %GDK_IM_STATUS_NOTHING you can do this:
801
802 <informalexample>
803 <programlisting>
804   gdk_im_set_best_style (GDK_IM_PREEDIT_POSITION | GDK_IM_STATUS_NOTHING);
805 </programlisting>
806 </informalexample>
807 </para>
808
809 @best_allowed_style: a bit-mask with the best pre-edit style and/or the best
810 status style to use. If 0 is used, then the current bit-mask of all allowed
811 styles is returned.
812 @Returns: a bit-mask of all the styles allowed.
813
814 <!-- ##### FUNCTION gdk_input_list_devices ##### -->
815 <para>
816 Lists all available input devices, along with their
817 configuration information.
818 </para>
819
820 @Returns: A #GList of #GdkDeviceInfo structures. This list
821           is internal data of GTK+ and should not be modified 
822           or freed.
823
824 <!-- ##### FUNCTION gdk_input_motion_events ##### -->
825 <para>
826 Retrieves the motion history for a given device/window pair.
827 </para>
828
829 @window: a #GdkWindow.
830 @deviceid: the device for which to retrieve motion history.
831 @start: the start time.
832 @stop: the stop time.
833 @nevents_return: location to store the number of events returned.
834 @Returns: a newly allocated array containing all the events
835           from @start to @stop. This array should be freed
836           with g_free() when you are finished using it.
837
838 <!-- ##### FUNCTION gdk_input_set_axes ##### -->
839 <para>
840 Sets the mapping of the axes (valuators) of a device
841 onto the predefined valuator types that GTK+ understands.
842 </para>
843
844 @deviceid: the device to configure.
845 @axes: an array of GdkAxisUse. This length of this array
846        must match the number of axes for the device.
847
848 <!-- ##### FUNCTION gdk_input_set_key ##### -->
849 <para>
850 Sets the key event generated when a macro button is pressed.
851 </para>
852
853 @deviceid: the device to configure.
854 @index_: the index of the macro button.
855 @keyval: the key value for the #GdkKeypressEvent to generate.
856          (a value of 0 means no event will be generated.)
857 @modifiers: the modifier field for the generated 
858             #GdkKeyPressEvent.
859
860 <!-- ##### FUNCTION gdk_input_set_mode ##### -->
861 <para>
862 Enables or disables a device, and determines how the
863 device maps onto the screen.
864 </para>
865
866 @deviceid: the device to configure.
867 @mode: the new mode.
868 @Returns: %TRUE if the device supports the given mode, otherwise 
869           %FALSE and the device's mode is unchanged.
870
871 <!-- ##### FUNCTION gdk_input_set_source ##### -->
872 <para>
873 Sets the source type for a device.
874 </para>
875
876 @deviceid: the device to configure
877 @source: the new source type.
878
879 <!-- ##### FUNCTION gdk_input_window_get_pointer ##### -->
880 <para>
881 Returns information about the current position of the pointer
882 within a window, including extended device information.
883 Any of the return parameters may be %NULL, in which case,
884 they will be ignored.
885 </para>
886
887 @window: a #GdkWindow.
888 @deviceid: a device ID.
889 @x: location to store current x postion.
890 @y: location to store current y postion.
891 @pressure: location to store current pressure.
892 @xtilt: location to store current tilt in the x direction.
893 @ytilt: location to store current tilt in the y direction.
894 @mask: location to store the current modifier state.
895
896 <!-- ##### VARIABLE gdk_leader_window ##### -->
897 <para>
898
899 </para>
900
901
902 <!-- ##### FUNCTION gdk_open_display ##### -->
903 <para>
904
905 </para>
906
907 @display_name: 
908 @Returns: 
909
910 <!-- ##### FUNCTION gdk_pixbuf_set_as_cairo_source ##### -->
911 <para>
912
913 </para>
914
915 @pixbuf: 
916 @cr: 
917 @pixbuf_x: 
918 @pixbuf_y: 
919
920 <!-- ##### VARIABLE gdk_progclass ##### -->
921 <para>
922
923 </para>
924
925
926 <!-- ##### MACRO gdk_rgb_get_cmap ##### -->
927 <para>
928 Gets the colormap set by GdkRGB. This colormap and the corresponding
929 visual should be used when creating windows that will be drawn in by GdkRGB.
930 </para>
931
932 @Returns: The #GdkColormap set by GdkRGB.
933
934 <!-- ##### VARIABLE gdk_screen ##### -->
935 <para>
936
937 </para>
938
939
940 <!-- ##### FUNCTION gdk_screen_close ##### -->
941 <para>
942
943 </para>
944
945 @screen: 
946
947 <!-- ##### FUNCTION gdk_screen_get_window_at_pointer ##### -->
948 <para>
949
950 </para>
951
952 @screen: 
953 @win_x: 
954 @win_y: 
955 @Returns: 
956
957 <!-- ##### FUNCTION gdk_screen_use_virtual_screen ##### -->
958 <para>
959
960 </para>
961
962 @screen: 
963 @Returns: 
964
965 <!-- ##### VARIABLE gdk_selection_property ##### -->
966 <para>
967
968 </para>
969
970
971 <!-- ##### FUNCTION gdk_set_default_display ##### -->
972 <para>
973
974 </para>
975
976 @display: 
977
978 <!-- ##### FUNCTION gdkx_visual_get_for_screen ##### -->
979 <para>
980
981 </para>
982
983 @screen: 
984 @xvisualid: 
985 @Returns: 
986