]> Pileus Git - ~andy/gtk/blob - docs/reference/gtk/tmpl/gtk-unused.sgml
8d8f64b286555b2b512f68c409de919a332c8247
[~andy/gtk] / docs / reference / gtk / tmpl / gtk-unused.sgml
1 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:Title ##### -->
2 Debugging
3
4
5 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Title ##### -->
6 gtkenums.sgml
7
8
9 <!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:Title ##### -->
10 GtkIMContextSimple
11
12
13 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Long_Description ##### -->
14 <refsect2>
15 <title>What are Signal Marshallers?</title>
16 <para>
17 Marshals are functions which all have the same prototype:
18 they take a #GtkObject, a #GtkSignalFunc, a #gpointer,
19 and an array of argument values.
20 The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2....
21 </para>
22 <para>
23 They then call a native function:  the GtkObject is the first
24 parameter passed in.  The arguments are passed in the native
25 calling convention:  chars, shorts, ints, longs may be packed
26 on the stack, or tucked in registers:  it doesn't matter
27 because the same calling convention will be generated
28 inside the gtkmarshal code as is expected where you define
29 your handlers.
30 </para>
31 <para>
32 So the function named:
33 <programlisting>
34 gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
35 </programlisting>
36 will call the #GtkSignalFunc assuming it was a function with signature:
37 <programlisting>
38 gboolean sigfunc(gpointer,gint,gint,guint);
39 </programlisting>
40 </para>
41 </refsect2>
42 <refsect2>
43 <title>Writing Custom Marshals</title>
44 <para>
45 Marshals are primarily used as arguments to gtk_signal_new().
46 Sometimes, you may find that a marshaller you need isn't available
47 in the standard list.  Then you have to write your own.
48 </para>
49 <para>
50 If you wish to define a signal with a new type of argument list.
51 Suppose you want 2 pointers and 2 integers.
52 You would write:
53 <programlisting>
54 typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)(
55                         gpointer, gpointer, gint, gint
56 );
57
58 void marshal_INT__POINTER_POINTER_INT_INT(GtkObject*    object,
59                                            GtkSignalFunc func,
60                                            gpointer      func_data,
61                                            GtkArg*       args)
62 {
63         GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc;
64         gint* return_val;
65         return_val = GTK_RETLOC_INT(args[4]);
66         rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func;
67         *return_val = (*rfunc)(object,
68                                GTK_VALUE_POINTER(args[0]),
69                                GTK_VALUE_POINTER(args[1]),
70                                GTK_VALUE_INT(args[2]),
71                                GTK_VALUE_INT(args[3]),
72                                func_data);
73 }
74 </programlisting>
75 </para>
76 </refsect2>
77
78
79 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:See_Also ##### -->
80 <para>
81 <variablelist>
82
83 <varlistentry>
84 <term>#GtkSignal</term>
85 <listitem><para>The signal handling functions (of which marshallers are 
86 really an implementation detail).</para></listitem>
87 </varlistentry>
88
89 </variablelist>
90 </para>
91
92
93 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Short_Description ##### -->
94 Functions to adapt C structures to native calling convention.
95
96
97 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Title ##### -->
98 Signal Marshallers
99
100
101 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### -->
102 Private Information
103
104
105 <!-- ##### MACRO GTK_CLIST_CHILD_HAS_FOCUS ##### -->
106 <para>
107 A macro to check whether a child widget of the CList
108 has the focus.
109 </para>
110
111 @clist: The #GtkCList widget to check.
112
113 <!-- ##### MACRO GTK_OBJECT_CONSTRUCTED ##### -->
114 <para>
115 Test whether a GtkObject's arguments have been prepared.
116 </para>
117
118 @obj: the object to examine.
119
120 <!-- ##### MACRO GTK_OBJECT_NSIGNALS ##### -->
121 <para>
122 Get the number of signals defined by this object.
123 </para>
124
125 @obj: the object to query.
126
127 <!-- ##### MACRO GTK_OBJECT_SIGNALS ##### -->
128 <para>
129 Get the array of signals defined for this object.
130 </para>
131
132 @obj: the object to fetch the signals from.
133
134 <!-- ##### MACRO GTK_TREE_SELECTION ##### -->
135 <para>
136 A macro that returns a GList that contains the selection of the root tree of @obj.
137 </para>
138
139 @obj: A pointer to the #GtkTree. @obj will accept any pointer, but it the pointer does not point to a #GtkTree, the results are undefined.
140
141 <!-- ##### MACRO GTK_TYPE_FLAT_FIRST ##### -->
142 <para>
143 The first "flat" (no struct) enumerated type value.
144 </para>
145
146
147 <!-- ##### MACRO GTK_TYPE_FLAT_LAST ##### -->
148 <para>
149 The last "flat" (no struct) enumerated type value.
150 </para>
151
152
153 <!-- ##### MACRO GTK_TYPE_IDENTIFIER ##### -->
154 <para>
155 Hide the name of gtk_identifier_get_type
156 </para>
157
158
159 <!-- ##### MACRO GTK_TYPE_MAKE ##### -->
160 <para>
161 Combine a fundemantal type and a sequence number to create a gtk type.
162 </para>
163
164 @parent_t: 
165 @seqno: 
166
167 <!-- ##### MACRO GTK_TYPE_NUM_BUILTINS ##### -->
168 <para>
169 No idea.
170 </para>
171
172
173 <!-- ##### MACRO GTK_TYPE_SEQNO ##### -->
174 <para>
175 Convert a gtk type into its sequence number
176 </para>
177
178 @type: 
179
180 <!-- ##### MACRO GTK_TYPE_STRUCTURED_FIRST ##### -->
181 <para>
182 The first structured enumerated type value.
183 </para>
184
185
186 <!-- ##### MACRO GTK_TYPE_STRUCTURED_LAST ##### -->
187 <para>
188 The last structured enumerated type value.
189 </para>
190
191
192 <!-- ##### MACRO GTK_VALUE_ARGS ##### -->
193 <para>
194 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS
195 </para>
196
197 @a: 
198
199 <!-- ##### MACRO GTK_VALUE_CALLBACK ##### -->
200 <para>
201 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK
202 </para>
203
204 @a: 
205
206 <!-- ##### MACRO GTK_VALUE_C_CALLBACK ##### -->
207 <para>
208 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK
209 </para>
210
211 @a: 
212
213 <!-- ##### MACRO GTK_VALUE_FOREIGN ##### -->
214 <para>
215 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
216 </para>
217
218 @a: 
219
220 <!-- ##### SIGNAL GtkEditable::activate ##### -->
221 <para>
222 Indicates that the user has activated the widget
223 in some fashion. Generally, this will be done
224 with a keystroke. (The default binding for this
225 action is Return for #GtkEntry and
226 Control-Return for #GtkText.)
227 </para>
228
229 @editable: the object which received the signal.
230
231 <!-- ##### SIGNAL GtkEditable::changed ##### -->
232 <para>
233 Indicates that the user has changed the contents
234 of the widget.
235 </para>
236
237 @editable: the object which received the signal.
238
239 <!-- ##### SIGNAL GtkEditable::copy-clipboard ##### -->
240 <para>
241 An action signal. Causes the characters in the current selection to
242 be copied to the clipboard.
243 </para>
244
245 @editable: the object which received the signal.
246
247 <!-- ##### SIGNAL GtkEditable::cut-clipboard ##### -->
248 <para>
249 An action signal. Causes the characters in the current
250 selection to be copied to the clipboard and then deleted from
251 the widget.
252 </para>
253
254 @editable: the object which received the signal.
255
256 <!-- ##### SIGNAL GtkEditable::delete-text ##### -->
257 <para>
258 This signal is emitted when text is deleted from
259 the widget by the user. The default handler for
260 this signal will normally be responsible for inserting
261 the text, so by connecting to this signal and then
262 stopping the signal with gtk_signal_emit_stop(), it
263 is possible to modify the inserted text, or prevent
264 it from being inserted entirely. The @start_pos
265 and @end_pos parameters are interpreted as for
266 gtk_editable_delete_text()
267 </para>
268
269 @editable: the object which received the signal.
270 @start_pos: the starting position.
271 @end_pos: the end position.
272
273 <!-- ##### SIGNAL GtkEditable::insert-text ##### -->
274 <para>
275 This signal is emitted when text is inserted into
276 the widget by the user. The default handler for
277 this signal will normally be responsible for inserting
278 the text, so by connecting to this signal and then
279 stopping the signal with gtk_signal_emit_stop(), it
280 is possible to modify the inserted text, or prevent
281 it from being inserted entirely.
282 </para>
283
284 @editable: the object which received the signal.
285 @new_text: the new text to insert.
286 @new_text_length: the length of the new text.
287 @position: the position at which to insert the new text.
288            this is an in-out paramter. After the signal
289            emission is finished, it should point after   
290            the newly inserted text.
291
292 <!-- ##### SIGNAL GtkEditable::kill-char ##### -->
293 <para>
294 An action signal. Delete a single character.
295 </para>
296
297 @editable: the object which received the signal.
298 @direction: the direction in which to delete. Positive
299    indicates forward deletion, negative, backwards deletion.
300
301 <!-- ##### SIGNAL GtkEditable::kill-line ##### -->
302 <para>
303 An action signal. Delete a single line.
304 </para>
305
306 @editable: the object which received the signal.
307 @direction: the direction in which to delete. Positive
308    indicates forward deletion, negative, backwards deletion.
309
310 <!-- ##### SIGNAL GtkEditable::kill-word ##### -->
311 <para>
312 An action signal. Delete a single word.
313 </para>
314
315 @editable: the object which received the signal.
316 @direction: the direction in which to delete. Positive
317    indicates forward deletion, negative, backwards deletion.
318
319 <!-- ##### SIGNAL GtkEditable::move-cursor ##### -->
320 <para>
321 An action signal. Move the cursor position.
322 </para>
323
324 @editable: the object which received the signal.
325 @x: horizontal distance to move the cursor.
326 @y: vertical distance to move the cursor.
327
328 <!-- ##### SIGNAL GtkEditable::move-page ##### -->
329 <para>
330 An action signal. Move the cursor by pages.
331 </para>
332
333 @editable: the object which received the signal.
334 @x: Number of pages to move the cursor horizontally.
335 @y: Number of pages to move the cursor vertically.
336
337 <!-- ##### SIGNAL GtkEditable::move-to-column ##### -->
338 <para>
339 An action signal. Move the cursor to the given column.
340 </para>
341
342 @editable: the object which received the signal.
343 @column: the column to move to. (A negative value indicates
344          the last column)
345
346 <!-- ##### SIGNAL GtkEditable::move-to-row ##### -->
347 <para>
348 An action signal. Move the cursor to the given row.
349 </para>
350
351 @editable: the object which received the signal.
352 @row: the row to move to. (A negative value indicates 
353       the last row)
354
355 <!-- ##### SIGNAL GtkEditable::move-word ##### -->
356 <para>
357 An action signal. Move the cursor by words.
358 </para>
359
360 @editable: the object which received the signal.
361 @num_words: The number of words to move the
362 cursor. (Can be negative).
363
364 <!-- ##### SIGNAL GtkEditable::paste-clipboard ##### -->
365 <para>
366 An action signal. Causes the contents of the clipboard to
367 be pasted into the editable widget at the current cursor
368 position.
369 </para>
370
371 @editable: the object which received the signal.
372
373 <!-- ##### SIGNAL GtkEditable::set-editable ##### -->
374 <para>
375 Determines if the user can edit the text in the editable
376 widget or not. This is meant to be overriden by 
377 child classes and should not generally useful to
378 applications.
379 </para>
380
381 @editable: the object which received the signal.
382 @is_editable: %TRUE if the user is allowed to edit the text
383   in the widget.
384
385 <!-- ##### ARG GtkEditable:editable ##### -->
386 <para>
387 A boolean indicating whether the widget is editable by
388 the user.
389 </para>
390
391
392 <!-- ##### ARG GtkEditable:text-position ##### -->
393 <para>
394 The position of the cursor.
395 </para>
396
397
398 <!-- ##### ENUM GtkFontFilterType ##### -->
399 <para>
400 A set of bit flags used to specify the filter being set
401 when calling gtk_font_selection_dialog_set_filter() or
402 gtk_font_selection_set_filter().
403 </para>
404
405 @GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user.
406 @GTK_FONT_FILTER_USER: the user filter, which can be changed from within the
407 'Filter' page of the #GtkFontSelection widget.
408
409 <!-- ##### ENUM GtkFontType ##### -->
410 <para>
411 A set of bit flags used to specify the type of fonts shown
412 when calling gtk_font_selection_dialog_set_filter() or
413 gtk_font_selection_set_filter().
414 </para>
415
416 @GTK_FONT_BITMAP: bitmap fonts.
417 @GTK_FONT_SCALABLE: scalable fonts.
418 @GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts.
419 @GTK_FONT_ALL: a bitwise combination of all of the above.
420
421 <!-- ##### STRUCT GtkIMContextSimple ##### -->
422 <para>
423
424 </para>
425
426 @object: 
427 @tables: 
428 @compose_buffer: 
429 @tentative_match: 
430 @tentative_match_len: 
431
432 <!-- ##### ARG GtkObject:object-signal ##### -->
433 <para>
434 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
435 the signal to the object, so that the user data and objects
436 and swapped when the signal handler is invoked.
437 </para>
438 <para>
439 This is useful for handlers that are primarily notifying
440 other objects and could just invoke an already existing function
441 if the parameters were swapped.
442 See gtk_signal_connect_object() for more details.
443 </para>
444
445
446 <!-- ##### ARG GtkObject:object-signal-after ##### -->
447 <para>
448 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
449 the signal to the object, so that the user data and objects
450 and swapped when the signal handler is invoked,
451 and so that the handler is invoked after all others.
452 </para>
453 <para>
454 See gtk_signal_connect_object_after() for more details.
455 </para>
456
457
458 <!-- ##### ARG GtkObject:signal ##### -->
459 <para>
460 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
461 the signal to the object.
462 </para>
463
464
465 <!-- ##### ARG GtkObject:signal-after ##### -->
466 <para>
467 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
468 the signal to the object, so that the signal is always run
469 after other user handlers and the default handler.
470 </para>
471
472
473 <!-- ##### ENUM GtkPrivateFlags ##### -->
474 <para>
475
476 </para>
477
478 @PRIVATE_GTK_USER_STYLE: 
479 @PRIVATE_GTK_RESIZE_PENDING: 
480 @PRIVATE_GTK_RESIZE_NEEDED: 
481 @PRIVATE_GTK_LEAVE_PENDING: 
482 @PRIVATE_GTK_HAS_SHAPE_MASK: 
483 @PRIVATE_GTK_IN_REPARENT: 
484 @PRIVATE_GTK_DIRECTION_SET: 
485 @PRIVATE_GTK_DIRECTION_LTR: 
486
487 <!-- ##### USER_FUNCTION GtkSignalDestroy ##### -->
488 <para>
489 A function which you can use to clean up when the
490 signal handler is destroyed.
491 </para>
492 <para>
493 For example, if your handler requires a few variables
494 that you made into a struct and allocated (using g_new()
495 or something), then you will probably want to free
496 it as soon as the hook is destroyed.  This will
497 allow you to do that. (For this in particular
498 it is convenient to pass g_free() as a #GtkSignalDestroy
499 function).
500 </para>
501
502 @data: The user data associated with the hook that is being
503 destroyed.
504
505 <!-- ##### USER_FUNCTION GtkSignalMarshal ##### -->
506 <para>
507 This is currently a hack left in for a scheme wrapper library.
508 It may be removed.
509 </para>
510 <para>
511 Don't use it.
512 </para>
513
514 @object: The object which emits the signal.
515 @data: The user data associated with the hook.
516 @nparams: The number of parameters to the function.
517 @args: The actual values of the arguments.
518 @arg_types: The types of the arguments.
519 @return_type: The type of the return value from the function
520 or #GTK_TYPE_NONE for no return value.
521
522 <!-- ##### STRUCT GtkSignalQuery ##### -->
523 <para>
524 This structure contains all the information about a particular
525 signal:  its name, the type it affects, the signature of the handlers,
526 and its unique identifying integer.
527 </para>
528
529 @object_type: 
530 @signal_id: 
531 @signal_name: 
532 @is_user_signal: 
533 @signal_flags: 
534 @return_val: 
535 @nparams: 
536 @params: 
537
538 <!-- ##### STRUCT GtkStatusbarMsg ##### -->
539 <para>
540 Holds the data for a statusbar message. <structfield>text</structfield> holds the actual text string. <structfield>context_id</structfield> is the context that this message is associated with, and <structfield>message_id</structfield> is this particular message's identifier. However, these fields should not be modified directly.
541 </para>
542
543 @text: 
544 @context_id: 
545 @message_id: 
546
547 <!-- ##### ARG GtkTextTag:justify ##### -->
548 <para>
549 A #GtkJustification for the text. This is only used when the tag is
550 applied to the first character in a paragraph.
551 </para>
552
553
554 <!-- ##### ARG GtkTextTag:left-wrapped-line-margin ##### -->
555 <para>
556 Pixel width of the left margin of the text for lines after the first
557 line in a wrapped paragraph.
558 </para>
559
560
561 <!-- ##### ARG GtkTextTag:left-wrapped-line-margin-set ##### -->
562 <para>
563
564 </para>
565
566
567 <!-- ##### ARG GtkTextTag:offset ##### -->
568 <para>
569 Pixels to offset the text horizontally or vertically, useful to
570 produce superscript and subscript.
571 </para>
572
573
574 <!-- ##### SIGNAL GtkWidget::draw ##### -->
575 <para>
576
577 </para>
578
579 @widget: the object which received the signal.
580 @area: 
581
582 <!-- ##### SIGNAL GtkWidget::draw-default ##### -->
583 <para>
584
585 </para>
586
587 @widget: the object which received the signal.
588
589 <!-- ##### SIGNAL GtkWidget::draw-focus ##### -->
590 <para>
591
592 </para>
593
594 @widget: the object which received the signal.
595
596 <!-- ##### FUNCTION gtk_clist_construct ##### -->
597 <para>
598 Initializes a previously allocated #GtkCList widget for use.  This should not
599 normally be used to create a #GtkCList widget.  Use gtk_clist_new() instead.
600 </para>
601
602 @clist: A pointer to an uninitialized #GtkCList widget.
603 @columns: The number of columns the #GtkCList should have.
604 @titles: An array of strings that should be used as the titles i
605 of the columns.  There should be enough strings in the array for
606 the number of columns specified.
607
608 <!-- ##### FUNCTION gtk_color_selection_set_opacity ##### -->
609 <para>
610 Controls whether opacity can be set with the #GtkColorSelection.
611 If this functionality is enabled, the necessary additional widgets
612 are added to the #GtkColorSelection and the opacity value can be
613 retrieved via the fourth value in the color array returned by
614 the gtk_color_selection_get_color() function.
615 </para>
616
617 @colorsel: a #GtkColorSelection.
618 @use_opacity: a boolean indicating whether the opacity selection
619 is enabled.
620
621 <!-- ##### FUNCTION gtk_ctree_construct ##### -->
622 <para>
623 This function is not usually used by users.
624 </para>
625
626 @ctree: 
627 @columns: 
628 @tree_column: 
629 @titles: 
630
631 <!-- ##### FUNCTION gtk_editable_changed ##### -->
632 <para>
633 Causes the "changed" signal to be emitted.
634 </para>
635
636 @editable: a #GtkEditable widget.
637
638 <!-- ##### FUNCTION gtk_editable_claim_selection ##### -->
639 <para>
640 Claim or disclaim ownership of the PRIMARY X selection.
641 </para>
642
643 @editable: a #GtkEditable widget.
644 @claim: if %TRUE, claim the selection, otherwise, disclaim it.
645 @time: the timestamp for claiming the selection.
646
647 <!-- ##### FUNCTION gtk_font_selection_dialog_set_filter ##### -->
648 <para>
649 Sets one of the two font filters, to limit the fonts shown.
650 </para>
651
652 @fsd: a #GtkFontSelectionDialog.
653 @filter_type: which of the two font filters to set, either
654 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
655 can be changed by the user, but the base filter is permanent.
656 @font_type: the types of font to be shown. This is a bitwise combination of
657 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
658 or #GTK_FONT_ALL to show all three font types.
659 @foundries: a NULL-terminated array of strings containing foundry names which
660 will be shown, or NULL to show all foundries.
661 @weights: a NULL-terminated array of strings containing weight names which
662 will be shown, or NULL to show all weights.
663 @slants: a NULL-terminated array of strings containing slant names which
664 will be shown, or NULL to show all slants.
665 @setwidths: a NULL-terminated array of strings containing setwidth names which
666 will be shown, or NULL to show all setwidths.
667 @spacings: a NULL-terminated array of strings containing spacings which
668 will be shown, or NULL to show all spacings.
669 @charsets: a NULL-terminated array of strings containing charset names which
670 will be shown, or NULL to show all charsets.
671
672 <!-- ##### FUNCTION gtk_font_selection_set_filter ##### -->
673 <para>
674 Sets one of the two font filters, to limit the fonts shown.
675 </para>
676
677 @fontsel: a #GtkFontSelection.
678 @filter_type: which of the two font filters to set, either
679 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
680 can be changed by the user, but the base filter is permanent.
681 @font_type: the types of font to be shown. This is a bitwise combination of
682 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
683 or #GTK_FONT_ALL to show all three font types.
684 @foundries: a NULL-terminated array of strings containing foundry names which
685 will be shown, or NULL to show all foundries.
686 @weights: a NULL-terminated array of strings containing weight names which
687 will be shown, or NULL to show all weights.
688 @slants: a NULL-terminated array of strings containing slant names which
689 will be shown, or NULL to show all slants.
690 @setwidths: a NULL-terminated array of strings containing setwidth names which
691 will be shown, or NULL to show all setwidths.
692 @spacings: a NULL-terminated array of strings containing spacings which
693 will be shown, or NULL to show all spacings.
694 @charsets: a NULL-terminated array of strings containing charset names which
695 will be shown, or NULL to show all charsets.
696
697 <!-- ##### FUNCTION gtk_identifier_get_type ##### -->
698 <para>
699 Get the type of GtkIdentifier.
700 </para>
701
702 @Returns: GtkType -- the enumerated type of something.
703
704 <!-- ##### FUNCTION gtk_object_arg_get ##### -->
705 <para>
706 Private function to get an argument and argument info from an object.
707 </para>
708
709 @object: the object whose argument should be retrieved.
710 @arg: the argument, for the name on input, the rest is filled on output.
711 @info: a #GtkArgInfo structure to optionally fill in.
712
713 <!-- ##### FUNCTION gtk_object_arg_get_info ##### -->
714 <para>
715 Query information about an argument type.
716 </para>
717
718 @object_type: type of object to query about.
719 @arg_name: name of the argument.
720 @info_p: pointer to be filled in with a pointer to the GtkArgInfo.
721 @Returns: an error message, or NULL on success.
722 It is the caller's responsibility to call g_free() in the event of error.
723
724 <!-- ##### FUNCTION gtk_object_arg_set ##### -->
725 <para>
726 Private function to set an argument and argument info to an object.
727 </para>
728
729 @object: the object whose argument should be set.
730 @arg: the argument.
731 @info: infomation about this type of argument in general.
732
733 <!-- ##### FUNCTION gtk_object_args_collect ##### -->
734 <para>
735 Private: Gets an array of #GtkArgs from a va_list C structure.
736 </para>
737
738 @object_type: the type of object to collect arguments for.
739 @arg_list_p: pointer to be filled in with a list of parsed arguments.
740 @info_list_p: optional pointer for a returned list #GtkArgInfos.
741 @first_arg_name: name of first argument.
742 @var_args: value of first argument, followed by more key/value pairs,
743 terminated by NULL.
744 @Returns: an error message, or NULL on success.
745 It is the caller's responsibility to call g_free() in the event of error.
746
747 <!-- ##### FUNCTION gtk_object_class_add_signals ##### -->
748 <para>
749 Add an array of signals to a #GtkObjectClass.
750 Usually this is called when registering a new type of object.
751 </para>
752
753 @klass: the object class to append signals to.
754 @signals: the signals to append.
755 @nsignals: the number of signals being appended.
756
757 <!-- ##### FUNCTION gtk_object_class_user_signal_new ##### -->
758 <para>
759 Define a signal-handler for a new signal on an already defined
760 object.
761 </para>
762 <para>
763 See the signal documentation for more general information.
764 </para>
765
766 @klass: the object class to define the signal for.
767 @name: the name of the signal.
768 @signal_flags: the default emission behavior for the signal.
769 See gtk_signal_new().
770 @marshaller: a function that will take an array of GtkArgs
771 and invoke the appropriate handler with the normal calling
772 conventions.
773 @return_val: specify the return-value type for the signal
774 (or GTK_TYPE_NONE for no return-value).
775 @nparams: specify the number of parameters the signal
776 receives from the caller of gtk_signal_emit().
777 @Varargs: list of nparams #GtkTypes to pass to the signal handlers.
778 @Returns: the signal id.  (See #GtkSignals)
779
780 <!-- ##### FUNCTION gtk_object_class_user_signal_newv ##### -->
781 <para>
782 Define a signal-handler for a new signal on an already defined
783 object.
784 </para>
785
786 @klass: the object class to define the signal for.
787 @name: the name of the signal.
788 @signal_flags: the default emission behavior for the signal.
789 See gtk_signal_new().
790 @marshaller: takes a GtkObject, a #GtkSignalFunc, and an array
791 of arguments, and invokes the function using the appropriate
792 calling conventions.  Usually just select a function
793 out of gtkmarshal.h.
794 @return_val: specify the return-value type for the signal (possibly
795 #GTK_TYPE_NONE).
796 @nparams: specify the number of parameters the signal
797 receives from the caller of gtk_signal_emit().
798 @params: array of #GtkTypes the signal handlers for this signal
799 should have in their prototype (of length nparams).
800 @Returns: the signal id.  (See #GtkSignals)
801
802 <!-- ##### FUNCTION gtk_object_constructed ##### -->
803 <para>
804 Mark an allocated object as constructed.
805 This is used for situations
806 that require precise control of the construction process.
807 </para>
808 <para>
809 This is done when gtk_object_default_construct() is inadequate.
810 In #GtkCList the need arises because #GtkCList does construction work that
811 must happen <emphasis>after</emphasis> its derivers.  This work
812 cannot be done in an initializer function, so an alternate
813 constructor is mandatory.  It calls gtk_object_constructed() to
814 indicate it has done its job, so that no other constructor will
815 be invoked.
816 </para>
817 <para>
818 Normally this function is just automatically run from
819 gtk_object_default_construct().
820 </para>
821
822 @object: object which has been constructed.  This is usually
823 done automatically by gtk_object_new() and gtk_object_newv().
824
825 <!-- ##### FUNCTION gtk_object_default_construct ##### -->
826 <para>
827 This function is called to construct arguments that haven't been initialized
828 but have the #GTK_ARG_CONSTRUCT flag set.
829 </para>
830 <para>
831 All number arguments are set to 0.  All pointers and strings
832 are set to NULL.
833 </para>
834 <para>
835 Normally invoked by gtk_object_new() automatically; gtk_type_new() can
836 be used to bypass it.
837 </para>
838
839 @object: the object to initialize.
840
841 <!-- ##### FUNCTION gtk_object_getv ##### -->
842 <para>
843 Gets an array of argument values from an object.
844 </para>
845
846 @object: the object to get arguments from.
847 @n_args: the number of arguments to query.
848 @args: the arguments to fill in.
849
850 <!-- ##### FUNCTION gtk_object_newv ##### -->
851 <para>
852 Construct an object with an array of arguments.
853 </para>
854
855 @object_type: the type of the object to create.
856 @n_args: the number of arguments to set.
857 @args: an array of n_args arguments (which are name and value pairs).
858 @Returns: the new GtkObject.
859
860 <!-- ##### FUNCTION gtk_object_query_args ##### -->
861 <para>
862 Get all the arguments that may be used for a given type.
863 </para>
864 <para>
865 In Java, this type of mechanism is called 
866 <wordasword>introspection</wordasword>.  It is used by applications
867 like Glade, that have to determine what can be done to an object
868 at run-time.
869 </para>
870
871 @class_type: the GtkType of the ObjectClass
872 (returned from GTK_OBJECT_CLASS(class)-&gt;type for example).
873 @arg_flags: if non-NULL, obtains the #GtkArgFlags that apply to
874 each argument.  You must g_free() this if you request it.
875 @n_args: the number of arguments is returned in this field.
876 @Returns: an array of arguments, that you must deallocate with g_free().
877
878 <!-- ##### FUNCTION gtk_object_setv ##### -->
879 <para>
880 Set an array of arguments.
881 </para>
882
883 @object: the object whose arguments should be set.
884 @n_args: the number of arguments to set.
885 @args: the desired values, as an array of #GtkArgs (which contain 
886 the names, types, and values of the arguments).
887
888 <!-- ##### FUNCTION gtk_paned_compute_position ##### -->
889 <para>
890 Internal function used by #GtkHPaned and #GtkVPaned
891 </para>
892
893 @paned: 
894 @allocation: 
895 @child1_req: 
896 @child2_req: 
897
898 <!-- ##### FUNCTION gtk_rc_init ##### -->
899 <para>
900 Internal function.
901 </para>
902
903
904 <!-- ##### FUNCTION gtk_ruler_draw_pos ##### -->
905 <para>
906
907 </para>
908
909 @ruler: the gtkruler
910
911 <!-- ##### FUNCTION gtk_ruler_draw_ticks ##### -->
912 <para>
913
914 </para>
915
916 @ruler: the gtkruler
917
918 <!-- ##### FUNCTION gtk_signal_add_emission_hook_full ##### -->
919 <para>
920 Add an emission hook for a type of signal, for any object.
921 (with control of what happens when the hook is
922 destroyed).
923 </para>
924
925 @signal_id: the type of signal add the hook for.
926 @hook_func: the function to invoke to handle the hook.
927 @data: the user data passed in to hook_func.
928 @destroy: a function to invoke when the hook is destroyed,
929 to clean up any allocation done just for this
930 signal handler.
931 @Returns: the id (that you may pass as a parameter
932 to gtk_signal_remove_emission_hook()).
933
934 <!-- ##### FUNCTION gtk_signal_handler_pending_by_id ##### -->
935 <para>
936 Returns whether a connection id is valid (and optionally not blocked).
937 </para>
938
939 @object: the object to search for the desired handler.
940 @handler_id: the connection id.
941 @may_be_blocked: whether it is acceptable to return a blocked
942 handler.
943 @Returns: TRUE if the signal exists and wasn't blocked,
944 unless #may_be_blocked was specified.  FALSE otherwise.
945
946 <!-- ##### FUNCTION gtk_signal_handlers_destroy ##### -->
947 <para>
948 Destroy all the signal handlers connected to an object.
949 This is done automatically when the object is destroyed.
950 </para>
951 <para>
952 This function is labeled private.
953 </para>
954
955 @object: the object whose signal handlers should be destroyed.
956
957 <!-- ##### FUNCTION gtk_signal_n_emissions ##### -->
958 <para>
959 Find out the recursion depth of emissions for a particular type
960 of signal and object.  (So it will
961 always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified)
962 This is a way to avoid recursion:  you can see if
963 you are currently running in that signal handler and emit it only
964 if you are.
965 </para>
966 <para>Another way to look at it is that this number increases
967 by one when #gtk_signal_emit(), et al, are called,
968 and decreases by one when #gtk_signal_emit() returns.
969 </para>
970
971 @object: the object with the signal handler.
972 @signal_id: the signal id.
973 @Returns: the recursion depth of emissions of this signal for this
974 object.
975
976 <!-- ##### FUNCTION gtk_signal_n_emissions_by_name ##### -->
977 <para>
978 Find out the recursion depth of emissions for a particular type
979 of signal and object.  Just like gtk_signal_n_emissions()
980 except it will lookup the signal id for you.
981 </para>
982
983 @object: the object with the signal handler.
984 @name: the signal name.
985 @Returns: the recursion depth of emissions of this signal for this
986 object.
987
988 <!-- ##### FUNCTION gtk_signal_query ##### -->
989 <para>
990 Obtain information about a signal.
991 </para>
992
993 @signal_id: the signal type identifier.
994 @Returns: a pointer to a GtkSignalQuery structure
995 which contains all the information, or NULL.
996 The pointer is allocated just for you:  you must g_free() it.
997
998 <!-- ##### FUNCTION gtk_signal_set_funcs ##### -->
999 <para>
1000 These set default functions to call when the user didn't
1001 supply a function when connecting.  (These are rarely
1002 used, and probably only for language bindings)
1003 </para>
1004 <para>
1005 By default, there are no such functions.
1006 </para>
1007
1008 @marshal_func: the function to invoke on every handlers for which there
1009 isn't a function pointer.  May be NULL.
1010 @destroy_func: the function to invoke when each hook is destroyed.
1011 May be NULL.
1012
1013 <!-- ##### FUNCTION gtk_trace_referencing ##### -->
1014 <para>
1015 Private: print debugging information while doing a gtk_object_ref() or 
1016 a gtk_object_unref().
1017 </para>
1018
1019 @object: object to reference or unreference.
1020 @func: name of caller's function to print (used within macros).
1021 @dummy: unused.
1022 @line: line number (used within macros).
1023 @do_ref: whether to reference or unreference.
1024
1025 <!-- ##### FUNCTION gtk_type_check_class_cast ##### -->
1026 <para>
1027 Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make
1028 sure that it's okay to cast something of that @klass into a @cast_type.
1029 </para>
1030
1031 @klass: GtkTypeClass*
1032 @cast_type: GtkType
1033 @Returns: Always return @klass.
1034
1035 <!-- ##### FUNCTION gtk_type_check_object_cast ##### -->
1036 <para>
1037 Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type,
1038 make sure that it's okay to cast @type_object into a @cast_type.
1039 </para>
1040
1041 @type_object: GtkTypeObject*
1042 @cast_type: GtkType
1043 @Returns: the same GtkTypeObject* as @type_object
1044
1045 <!-- ##### FUNCTION gtk_type_children_types ##### -->
1046 <para>
1047 Return the pointer to the type's children's types.
1048 </para>
1049
1050 @type: GtkType
1051 @Returns: pointer to a GList
1052
1053 <!-- ##### FUNCTION gtk_type_describe_heritage ##### -->
1054 <para>
1055 Print the types @type inherits from.
1056 </para>
1057
1058 @type: GtkType
1059
1060 <!-- ##### FUNCTION gtk_type_describe_tree ##### -->
1061 <para>
1062 Given a @type, describe all of its children, and their children.  Only
1063 show the size if @show_size is true.
1064 </para>
1065
1066 @type: GtkType
1067 @show_size: gboolean
1068
1069 <!-- ##### FUNCTION gtk_type_free ##### -->
1070 <para>
1071 Given the type of an object and a pointer to it, the object is freed.
1072 </para>
1073
1074 @type: GtkType
1075 @mem: gpointer to the object
1076
1077 <!-- ##### FUNCTION gtk_type_get_varargs_type ##### -->
1078 <para>
1079 Get the varargs type associated with @foreign_type
1080 </para>
1081
1082 @foreign_type: GtkType
1083 @Returns: GtkType
1084
1085 <!-- ##### FUNCTION gtk_type_parent_class ##### -->
1086 <para>
1087 Return the class of the parent.  Initialize the class if necessary.
1088 Return NULL if anything goes wrong.
1089 </para>
1090
1091 @type: GtkType
1092 @Returns: gpointer to the klass.
1093
1094 <!-- ##### FUNCTION gtk_type_query ##### -->
1095 <para>
1096 Given a type, return various interesting parameters of the type.
1097 </para>
1098
1099 @type: GtkType
1100 @Returns: GtkTypeQuery*
1101
1102 <!-- ##### FUNCTION gtk_type_register_enum ##### -->
1103 <para>
1104 Register a new set of enum @values and give them the name in
1105 @type_name.
1106 </para>
1107
1108 @type_name: must not be null.
1109 @values: GtkEnumValue*
1110 @Returns: 
1111
1112 <!-- ##### FUNCTION gtk_type_register_flags ##### -->
1113 <para>
1114 Register a new set of flags @values and give them the name in
1115 @type_name.
1116 </para>
1117
1118 @type_name: must not be null.
1119 @values: GtkFlagValue*
1120 @Returns: 
1121
1122 <!-- ##### FUNCTION gtk_type_set_chunk_alloc ##### -->
1123 <para>
1124 Set the mem_chunk size so it will hold @n_chunks of the objects of that @type.
1125 </para>
1126
1127 @type: There must be an unlocked TypeNode associated with this type otherwise nothing happens.
1128 @n_chunks: 
1129
1130 <!-- ##### FUNCTION gtk_type_set_varargs_type ##### -->
1131 <para>
1132 Set the varargs type for a fundamental type @foreign_type.
1133 </para>
1134
1135 @foreign_type: Must be a GtkType with a sequence number of zero.  Must not be a
1136 fundamental type.
1137 @varargs_type: Must be a GtkType which is either structured or flag, or NONE.
1138