1 <!-- ##### SECTION ./tmpl/gtkdata.sgml:Long_Description ##### -->
3 The #GtkData object is a very simple object intended to be used as a base
4 class for objects which contain data (i.e. the 'Model' in the object-oriented
5 Model/View/Controller framework).
8 Currently it is not very useful since all it provides is a "disconnect" signal.
9 This signal could be emitted by a #GtkData subclass to notify any 'Views'
10 that they should disconnect from the #GtkData (the 'Model'), possibly just
11 before the #GtkData is destroyed.
15 <!-- ##### SECTION ./tmpl/gtkdata.sgml:See_Also ##### -->
21 <!-- ##### SECTION ./tmpl/gtkdata.sgml:Short_Description ##### -->
22 abstract base class for objects containing data.
25 <!-- ##### SECTION ./tmpl/gtkdata.sgml:Title ##### -->
29 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:Title ##### -->
33 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Title ##### -->
37 <!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:Title ##### -->
41 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Long_Description ##### -->
43 <title>What are Signal Marshallers?</title>
45 Marshals are functions which all have the same prototype:
46 they take a #GtkObject, a #GtkSignalFunc, a #gpointer,
47 and an array of argument values.
48 The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2....
51 They then call a native function: the GtkObject is the first
52 parameter passed in. The arguments are passed in the native
53 calling convention: chars, shorts, ints, longs may be packed
54 on the stack, or tucked in registers: it doesn't matter
55 because the same calling convention will be generated
56 inside the gtkmarshal code as is expected where you define
60 So the function named:
62 gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
64 will call the #GtkSignalFunc assuming it was a function with signature:
66 gboolean sigfunc(gpointer,gint,gint,guint);
71 <title>Writing Custom Marshals</title>
73 Marshals are primarily used as arguments to gtk_signal_new().
74 Sometimes, you may find that a marshaller you need isn't available
75 in the standard list. Then you have to write your own.
78 If you wish to define a signal with a new type of argument list.
79 Suppose you want 2 pointers and 2 integers.
82 typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)(
83 gpointer, gpointer, gint, gint
86 void marshal_INT__POINTER_POINTER_INT_INT(GtkObject* object,
91 GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc;
93 return_val = GTK_RETLOC_INT(args[4]);
94 rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func;
95 *return_val = (*rfunc)(object,
96 GTK_VALUE_POINTER(args[0]),
97 GTK_VALUE_POINTER(args[1]),
98 GTK_VALUE_INT(args[2]),
99 GTK_VALUE_INT(args[3]),
107 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:See_Also ##### -->
112 <term>#GtkSignal</term>
113 <listitem><para>The signal handling functions (of which marshallers are
114 really an implementation detail).</para></listitem>
121 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Short_Description ##### -->
122 Functions to adapt C structures to native calling convention.
125 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Title ##### -->
129 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### -->
133 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Long_Description ##### -->
139 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:See_Also ##### -->
145 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Short_Description ##### -->
149 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Title ##### -->
153 <!-- ##### MACRO GTK_CLIST_CHILD_HAS_FOCUS ##### -->
155 A macro to check whether a child widget of the CList
159 @clist: The #GtkCList widget to check.
161 <!-- ##### MACRO GTK_ICON_SIZE_BUTTON ##### -->
167 <!-- ##### MACRO GTK_ICON_SIZE_DIALOG ##### -->
173 <!-- ##### MACRO GTK_ICON_SIZE_LARGE_TOOLBAR ##### -->
179 <!-- ##### MACRO GTK_ICON_SIZE_MENU ##### -->
185 <!-- ##### MACRO GTK_ICON_SIZE_SMALL_TOOLBAR ##### -->
191 <!-- ##### MACRO GTK_OBJECT_CONSTRUCTED ##### -->
193 Test whether a GtkObject's arguments have been prepared.
196 @obj: the object to examine.
198 <!-- ##### MACRO GTK_OBJECT_NSIGNALS ##### -->
200 Get the number of signals defined by this object.
203 @obj: the object to query.
205 <!-- ##### MACRO GTK_OBJECT_SIGNALS ##### -->
207 Get the array of signals defined for this object.
210 @obj: the object to fetch the signals from.
212 <!-- ##### MACRO GTK_STOCK_BUTTON_APPLY ##### -->
218 <!-- ##### MACRO GTK_STOCK_BUTTON_CANCEL ##### -->
224 <!-- ##### MACRO GTK_STOCK_BUTTON_CLOSE ##### -->
230 <!-- ##### MACRO GTK_STOCK_BUTTON_NO ##### -->
236 <!-- ##### MACRO GTK_STOCK_BUTTON_OK ##### -->
242 <!-- ##### MACRO GTK_STOCK_BUTTON_YES ##### -->
248 <!-- ##### MACRO GTK_TREE_SELECTION ##### -->
250 A macro that returns a GList that contains the selection of the root tree of @obj.
253 @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.
255 <!-- ##### MACRO GTK_TYPE_FLAT_FIRST ##### -->
257 The first "flat" (no struct) enumerated type value.
261 <!-- ##### MACRO GTK_TYPE_FLAT_LAST ##### -->
263 The last "flat" (no struct) enumerated type value.
267 <!-- ##### MACRO GTK_TYPE_IDENTIFIER ##### -->
269 Hide the name of gtk_identifier_get_type
273 <!-- ##### MACRO GTK_TYPE_MAKE ##### -->
275 Combine a fundemantal type and a sequence number to create a gtk type.
281 <!-- ##### MACRO GTK_TYPE_NUM_BUILTINS ##### -->
287 <!-- ##### MACRO GTK_TYPE_SEQNO ##### -->
289 Convert a gtk type into its sequence number
294 <!-- ##### MACRO GTK_TYPE_STRUCTURED_FIRST ##### -->
296 The first structured enumerated type value.
300 <!-- ##### MACRO GTK_TYPE_STRUCTURED_LAST ##### -->
302 The last structured enumerated type value.
306 <!-- ##### MACRO GTK_TYPE_TREE_COLUMN ##### -->
312 <!-- ##### MACRO GTK_VALUE_ARGS ##### -->
314 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS
319 <!-- ##### MACRO GTK_VALUE_CALLBACK ##### -->
321 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK
326 <!-- ##### MACRO GTK_VALUE_C_CALLBACK ##### -->
328 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK
333 <!-- ##### MACRO GTK_VALUE_FOREIGN ##### -->
335 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
340 <!-- ##### ARG GtkAccelLabel:accel-width ##### -->
346 <!-- ##### ARG GtkContainer:reallocate-redraws ##### -->
352 <!-- ##### STRUCT GtkData ##### -->
354 The #GtkData-struct struct contains no public fields.
358 <!-- ##### SIGNAL GtkData::disconnect ##### -->
360 Emitted to notify any views on the #GtkData object to disconnect from it,
361 possibly because the #GtkData object is about to be destroyed.
364 @data: the object which received the signal.
366 <!-- ##### SIGNAL GtkEditable::activate ##### -->
368 Indicates that the user has activated the widget
369 in some fashion. Generally, this will be done
370 with a keystroke. (The default binding for this
371 action is Return for #GtkEntry and
372 Control-Return for #GtkText.)
375 @editable: the object which received the signal.
377 <!-- ##### SIGNAL GtkEditable::changed ##### -->
379 Indicates that the user has changed the contents
383 @editable: the object which received the signal.
385 <!-- ##### SIGNAL GtkEditable::copy-clipboard ##### -->
387 An action signal. Causes the characters in the current selection to
388 be copied to the clipboard.
391 @editable: the object which received the signal.
393 <!-- ##### SIGNAL GtkEditable::cut-clipboard ##### -->
395 An action signal. Causes the characters in the current
396 selection to be copied to the clipboard and then deleted from
400 @editable: the object which received the signal.
402 <!-- ##### SIGNAL GtkEditable::delete-text ##### -->
404 This signal is emitted when text is deleted from
405 the widget by the user. The default handler for
406 this signal will normally be responsible for inserting
407 the text, so by connecting to this signal and then
408 stopping the signal with gtk_signal_emit_stop(), it
409 is possible to modify the inserted text, or prevent
410 it from being inserted entirely. The @start_pos
411 and @end_pos parameters are interpreted as for
412 gtk_editable_delete_text()
415 @editable: the object which received the signal.
416 @start_pos: the starting position.
417 @end_pos: the end position.
419 <!-- ##### SIGNAL GtkEditable::insert-text ##### -->
421 This signal is emitted when text is inserted into
422 the widget by the user. The default handler for
423 this signal will normally be responsible for inserting
424 the text, so by connecting to this signal and then
425 stopping the signal with gtk_signal_emit_stop(), it
426 is possible to modify the inserted text, or prevent
427 it from being inserted entirely.
430 @editable: the object which received the signal.
431 @new_text: the new text to insert.
432 @new_text_length: the length of the new text.
433 @position: the position at which to insert the new text.
434 this is an in-out paramter. After the signal
435 emission is finished, it should point after
436 the newly inserted text.
438 <!-- ##### SIGNAL GtkEditable::kill-char ##### -->
440 An action signal. Delete a single character.
443 @editable: the object which received the signal.
444 @direction: the direction in which to delete. Positive
445 indicates forward deletion, negative, backwards deletion.
447 <!-- ##### SIGNAL GtkEditable::kill-line ##### -->
449 An action signal. Delete a single line.
452 @editable: the object which received the signal.
453 @direction: the direction in which to delete. Positive
454 indicates forward deletion, negative, backwards deletion.
456 <!-- ##### SIGNAL GtkEditable::kill-word ##### -->
458 An action signal. Delete a single word.
461 @editable: the object which received the signal.
462 @direction: the direction in which to delete. Positive
463 indicates forward deletion, negative, backwards deletion.
465 <!-- ##### SIGNAL GtkEditable::move-cursor ##### -->
467 An action signal. Move the cursor position.
470 @editable: the object which received the signal.
471 @x: horizontal distance to move the cursor.
472 @y: vertical distance to move the cursor.
474 <!-- ##### SIGNAL GtkEditable::move-page ##### -->
476 An action signal. Move the cursor by pages.
479 @editable: the object which received the signal.
480 @x: Number of pages to move the cursor horizontally.
481 @y: Number of pages to move the cursor vertically.
483 <!-- ##### SIGNAL GtkEditable::move-to-column ##### -->
485 An action signal. Move the cursor to the given column.
488 @editable: the object which received the signal.
489 @column: the column to move to. (A negative value indicates
492 <!-- ##### SIGNAL GtkEditable::move-to-row ##### -->
494 An action signal. Move the cursor to the given row.
497 @editable: the object which received the signal.
498 @row: the row to move to. (A negative value indicates
501 <!-- ##### SIGNAL GtkEditable::move-word ##### -->
503 An action signal. Move the cursor by words.
506 @editable: the object which received the signal.
507 @num_words: The number of words to move the
508 cursor. (Can be negative).
510 <!-- ##### SIGNAL GtkEditable::paste-clipboard ##### -->
512 An action signal. Causes the contents of the clipboard to
513 be pasted into the editable widget at the current cursor
517 @editable: the object which received the signal.
519 <!-- ##### SIGNAL GtkEditable::set-editable ##### -->
521 Determines if the user can edit the text in the editable
522 widget or not. This is meant to be overriden by
523 child classes and should not generally useful to
527 @editable: the object which received the signal.
528 @is_editable: %TRUE if the user is allowed to edit the text
531 <!-- ##### ARG GtkEditable:editable ##### -->
533 A boolean indicating whether the widget is editable by
538 <!-- ##### ARG GtkEditable:text-position ##### -->
540 The position of the cursor.
544 <!-- ##### USER_FUNCTION GtkEmissionHook ##### -->
546 A simple function pointer to get invoked when the
547 signal is emitted. This allows you tie a hook to the signal type,
548 so that it will trap all emissions of that signal, from any object.
551 You may not attach these to signals created with the
552 #GTK_RUN_NO_HOOKS flag.
562 <!-- ##### ENUM GtkFontFilterType ##### -->
564 A set of bit flags used to specify the filter being set
565 when calling gtk_font_selection_dialog_set_filter() or
566 gtk_font_selection_set_filter().
569 @GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user.
570 @GTK_FONT_FILTER_USER: the user filter, which can be changed from within the
571 'Filter' page of the #GtkFontSelection widget.
573 <!-- ##### ENUM GtkFontType ##### -->
575 A set of bit flags used to specify the type of fonts shown
576 when calling gtk_font_selection_dialog_set_filter() or
577 gtk_font_selection_set_filter().
580 @GTK_FONT_BITMAP: bitmap fonts.
581 @GTK_FONT_SCALABLE: scalable fonts.
582 @GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts.
583 @GTK_FONT_ALL: a bitwise combination of all of the above.
585 <!-- ##### ARG GtkFrame:shadow-type ##### -->
591 <!-- ##### ARG GtkHScale:adjustment ##### -->
593 the #GtkAdjustment which sets the range of the scale.
597 <!-- ##### ARG GtkHScrollbar:adjustment ##### -->
603 <!-- ##### STRUCT GtkIMContextSimple ##### -->
612 @tentative_match_len:
614 <!-- ##### ARG GtkLabel:accel-keyval ##### -->
620 <!-- ##### ARG GtkObject:object-signal ##### -->
622 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
623 the signal to the object, so that the user data and objects
624 and swapped when the signal handler is invoked.
627 This is useful for handlers that are primarily notifying
628 other objects and could just invoke an already existing function
629 if the parameters were swapped.
630 See gtk_signal_connect_object() for more details.
634 <!-- ##### ARG GtkObject:object-signal-after ##### -->
636 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
637 the signal to the object, so that the user data and objects
638 and swapped when the signal handler is invoked,
639 and so that the handler is invoked after all others.
642 See gtk_signal_connect_object_after() for more details.
646 <!-- ##### ARG GtkObject:signal ##### -->
648 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
649 the signal to the object.
653 <!-- ##### ARG GtkObject:signal-after ##### -->
655 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
656 the signal to the object, so that the signal is always run
657 after other user handlers and the default handler.
661 <!-- ##### ARG GtkPaned:handle-size ##### -->
667 <!-- ##### STRUCT GtkPatternSpec ##### -->
679 <!-- ##### ENUM GtkPrivateFlags ##### -->
684 @PRIVATE_GTK_USER_STYLE:
685 @PRIVATE_GTK_RESIZE_PENDING:
686 @PRIVATE_GTK_RESIZE_NEEDED:
687 @PRIVATE_GTK_LEAVE_PENDING:
688 @PRIVATE_GTK_HAS_SHAPE_MASK:
689 @PRIVATE_GTK_IN_REPARENT:
690 @PRIVATE_GTK_DIRECTION_SET:
691 @PRIVATE_GTK_DIRECTION_LTR:
693 <!-- ##### USER_FUNCTION GtkSignalDestroy ##### -->
695 A function which you can use to clean up when the
696 signal handler is destroyed.
699 For example, if your handler requires a few variables
700 that you made into a struct and allocated (using g_new()
701 or something), then you will probably want to free
702 it as soon as the hook is destroyed. This will
703 allow you to do that. (For this in particular
704 it is convenient to pass g_free() as a #GtkSignalDestroy
708 @data: The user data associated with the hook that is being
711 <!-- ##### USER_FUNCTION GtkSignalMarshal ##### -->
713 This is currently a hack left in for a scheme wrapper library.
720 @object: The object which emits the signal.
721 @data: The user data associated with the hook.
722 @nparams: The number of parameters to the function.
723 @args: The actual values of the arguments.
724 @arg_types: The types of the arguments.
725 @return_type: The type of the return value from the function
726 or #GTK_TYPE_NONE for no return value.
728 <!-- ##### STRUCT GtkSignalQuery ##### -->
730 This structure contains all the information about a particular
731 signal: its name, the type it affects, the signature of the handlers,
732 and its unique identifying integer.
744 <!-- ##### ARG GtkSpinButton:shadow-type ##### -->
746 the type of border that surrounds the arrows of a spin button.
750 <!-- ##### STRUCT GtkStatusbarMsg ##### -->
752 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.
759 <!-- ##### ARG GtkTextTag:justify ##### -->
761 A #GtkJustification for the text. This is only used when the tag is
762 applied to the first character in a paragraph.
766 <!-- ##### ARG GtkTextTag:left-wrapped-line-margin ##### -->
768 Pixel width of the left margin of the text for lines after the first
769 line in a wrapped paragraph.
773 <!-- ##### ARG GtkTextTag:left-wrapped-line-margin-set ##### -->
779 <!-- ##### ARG GtkTextTag:offset ##### -->
781 Pixels to offset the text horizontally or vertically, useful to
782 produce superscript and subscript.
786 <!-- ##### ARG GtkTextView:justify ##### -->
792 <!-- ##### ARG GtkVScale:adjustment ##### -->
794 the #GtkAdjustment which sets the range of the scale.
798 <!-- ##### ARG GtkVScrollbar:adjustment ##### -->
804 <!-- ##### SIGNAL GtkWidget::activate-mnemonic ##### -->
809 @widget: the object which received the signal.
813 <!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
818 @widget: the object which received the signal.
821 <!-- ##### SIGNAL GtkWidget::draw ##### -->
826 @widget: the object which received the signal.
829 <!-- ##### SIGNAL GtkWidget::draw-default ##### -->
834 @widget: the object which received the signal.
836 <!-- ##### SIGNAL GtkWidget::draw-focus ##### -->
841 @widget: the object which received the signal.
843 <!-- ##### FUNCTION gtk_button_box_child_requisition ##### -->
845 This is an internally used function and should never be called from an
\r
854 <!-- ##### FUNCTION gtk_button_box_get_child_ipadding_default ##### -->
856 The internal padding of a button is the amount of space between the outside
\r
857 of the button and the widget it contains. This function gets the default
\r
858 amount of horizontal and vertical padding, placing the results in @ipad_x
\r
859 and @ipad_y, respectively.
\r
862 @ipad_x: the default horizontal internal button padding.
863 @ipad_y: the default vertical internal button padding.
865 <!-- ##### FUNCTION gtk_button_box_get_child_size_default ##### -->
867 Retrieves the default minimum width and height for all button boxes, and
\r
868 places the values in @min_width and @min_height, respectively.
\r
871 @min_width: the default minimum width of a child widget.
872 @min_height: the default minimum height of a child widget.
874 <!-- ##### FUNCTION gtk_button_box_set_child_ipadding_default ##### -->
876 Sets the default number of pixels that pad each button in every button box.
\r
879 @ipad_x: new default horizontal padding.
880 @ipad_y: new default vertical padding.
882 <!-- ##### FUNCTION gtk_button_box_set_child_size_default ##### -->
884 Sets the default size of child buttons.
\r
887 @min_width: minimum default width for child buttons.
888 @min_height: minimum default height for child buttons.
890 <!-- ##### FUNCTION gtk_button_new_accel ##### -->
899 <!-- ##### FUNCTION gtk_button_new_stock ##### -->
908 <!-- ##### FUNCTION gtk_clist_construct ##### -->
910 Initializes a previously allocated #GtkCList widget for use. This should not
911 normally be used to create a #GtkCList widget. Use gtk_clist_new() instead.
914 @clist: A pointer to an uninitialized #GtkCList widget.
915 @columns: The number of columns the #GtkCList should have.
916 @titles: An array of strings that should be used as the titles i
917 of the columns. There should be enough strings in the array for
918 the number of columns specified.
920 <!-- ##### FUNCTION gtk_color_selection_get_old_color ##### -->
928 <!-- ##### FUNCTION gtk_color_selection_get_use_opacity ##### -->
936 <!-- ##### FUNCTION gtk_color_selection_get_use_palette ##### -->
944 <!-- ##### FUNCTION gtk_color_selection_set_old_color ##### -->
952 <!-- ##### FUNCTION gtk_color_selection_set_opacity ##### -->
954 Controls whether opacity can be set with the #GtkColorSelection.
955 If this functionality is enabled, the necessary additional widgets
956 are added to the #GtkColorSelection and the opacity value can be
957 retrieved via the fourth value in the color array returned by
958 the gtk_color_selection_get_color() function.
961 @colorsel: a #GtkColorSelection.
962 @use_opacity: a boolean indicating whether the opacity selection
965 <!-- ##### FUNCTION gtk_color_selection_set_use_opacity ##### -->
973 <!-- ##### FUNCTION gtk_color_selection_set_use_palette ##### -->
981 <!-- ##### FUNCTION gtk_ctree_construct ##### -->
983 This function is not usually used by users.
991 <!-- ##### FUNCTION gtk_editable_changed ##### -->
993 Causes the "changed" signal to be emitted.
996 @editable: a #GtkEditable widget.
998 <!-- ##### FUNCTION gtk_editable_claim_selection ##### -->
1000 Claim or disclaim ownership of the PRIMARY X selection.
1003 @editable: a #GtkEditable widget.
1004 @claim: if %TRUE, claim the selection, otherwise, disclaim it.
1005 @time: the timestamp for claiming the selection.
1007 <!-- ##### FUNCTION gtk_font_selection_dialog_set_filter ##### -->
1009 Sets one of the two font filters, to limit the fonts shown.
1012 @fsd: a #GtkFontSelectionDialog.
1013 @filter_type: which of the two font filters to set, either
1014 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
1015 can be changed by the user, but the base filter is permanent.
1016 @font_type: the types of font to be shown. This is a bitwise combination of
1017 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
1018 or #GTK_FONT_ALL to show all three font types.
1019 @foundries: a NULL-terminated array of strings containing foundry names which
1020 will be shown, or NULL to show all foundries.
1021 @weights: a NULL-terminated array of strings containing weight names which
1022 will be shown, or NULL to show all weights.
1023 @slants: a NULL-terminated array of strings containing slant names which
1024 will be shown, or NULL to show all slants.
1025 @setwidths: a NULL-terminated array of strings containing setwidth names which
1026 will be shown, or NULL to show all setwidths.
1027 @spacings: a NULL-terminated array of strings containing spacings which
1028 will be shown, or NULL to show all spacings.
1029 @charsets: a NULL-terminated array of strings containing charset names which
1030 will be shown, or NULL to show all charsets.
1032 <!-- ##### FUNCTION gtk_font_selection_set_filter ##### -->
1034 Sets one of the two font filters, to limit the fonts shown.
1037 @fontsel: a #GtkFontSelection.
1038 @filter_type: which of the two font filters to set, either
1039 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
1040 can be changed by the user, but the base filter is permanent.
1041 @font_type: the types of font to be shown. This is a bitwise combination of
1042 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
1043 or #GTK_FONT_ALL to show all three font types.
1044 @foundries: a NULL-terminated array of strings containing foundry names which
1045 will be shown, or NULL to show all foundries.
1046 @weights: a NULL-terminated array of strings containing weight names which
1047 will be shown, or NULL to show all weights.
1048 @slants: a NULL-terminated array of strings containing slant names which
1049 will be shown, or NULL to show all slants.
1050 @setwidths: a NULL-terminated array of strings containing setwidth names which
1051 will be shown, or NULL to show all setwidths.
1052 @spacings: a NULL-terminated array of strings containing spacings which
1053 will be shown, or NULL to show all spacings.
1054 @charsets: a NULL-terminated array of strings containing charset names which
1055 will be shown, or NULL to show all charsets.
1057 <!-- ##### FUNCTION gtk_identifier_get_type ##### -->
1059 Get the type of GtkIdentifier.
1062 @Returns: GtkType -- the enumerated type of something.
1064 <!-- ##### FUNCTION gtk_image_menu_item_add_image ##### -->
1072 <!-- ##### FUNCTION gtk_label_set_markup_with_accel ##### -->
1081 <!-- ##### FUNCTION gtk_list_store_set_cell ##### -->
1091 <!-- ##### FUNCTION gtk_menu_ensure_uline_accel_group ##### -->
1099 <!-- ##### FUNCTION gtk_menu_get_uline_accel_group ##### -->
1107 <!-- ##### FUNCTION gtk_object_arg_get ##### -->
1109 Private function to get an argument and argument info from an object.
1112 @object: the object whose argument should be retrieved.
1113 @arg: the argument, for the name on input, the rest is filled on output.
1114 @info: a #GtkArgInfo structure to optionally fill in.
1116 <!-- ##### FUNCTION gtk_object_arg_get_info ##### -->
1118 Query information about an argument type.
1121 @object_type: type of object to query about.
1122 @arg_name: name of the argument.
1123 @info_p: pointer to be filled in with a pointer to the GtkArgInfo.
1124 @Returns: an error message, or NULL on success.
1125 It is the caller's responsibility to call g_free() in the event of error.
1127 <!-- ##### FUNCTION gtk_object_arg_set ##### -->
1129 Private function to set an argument and argument info to an object.
1132 @object: the object whose argument should be set.
1134 @info: infomation about this type of argument in general.
1136 <!-- ##### FUNCTION gtk_object_args_collect ##### -->
1138 Private: Gets an array of #GtkArgs from a va_list C structure.
1141 @object_type: the type of object to collect arguments for.
1142 @arg_list_p: pointer to be filled in with a list of parsed arguments.
1143 @info_list_p: optional pointer for a returned list #GtkArgInfos.
1144 @first_arg_name: name of first argument.
1145 @var_args: value of first argument, followed by more key/value pairs,
1147 @Returns: an error message, or NULL on success.
1148 It is the caller's responsibility to call g_free() in the event of error.
1150 <!-- ##### FUNCTION gtk_object_class_add_signals ##### -->
1152 Add an array of signals to a #GtkObjectClass.
1153 Usually this is called when registering a new type of object.
1156 @klass: the object class to append signals to.
1157 @signals: the signals to append.
1158 @nsignals: the number of signals being appended.
1160 <!-- ##### FUNCTION gtk_object_class_user_signal_new ##### -->
1162 Define a signal-handler for a new signal on an already defined
1166 See the signal documentation for more general information.
1169 @klass: the object class to define the signal for.
1170 @name: the name of the signal.
1171 @signal_flags: the default emission behavior for the signal.
1172 See gtk_signal_new().
1173 @marshaller: a function that will take an array of GtkArgs
1174 and invoke the appropriate handler with the normal calling
1176 @return_val: specify the return-value type for the signal
1177 (or GTK_TYPE_NONE for no return-value).
1178 @nparams: specify the number of parameters the signal
1179 receives from the caller of gtk_signal_emit().
1180 @Varargs: list of nparams #GtkTypes to pass to the signal handlers.
1181 @Returns: the signal id. (See #GtkSignals)
1183 <!-- ##### FUNCTION gtk_object_class_user_signal_newv ##### -->
1185 Define a signal-handler for a new signal on an already defined
1189 @klass: the object class to define the signal for.
1190 @name: the name of the signal.
1191 @signal_flags: the default emission behavior for the signal.
1192 See gtk_signal_new().
1193 @marshaller: takes a GtkObject, a #GtkSignalFunc, and an array
1194 of arguments, and invokes the function using the appropriate
1195 calling conventions. Usually just select a function
1196 out of gtkmarshal.h.
1197 @return_val: specify the return-value type for the signal (possibly
1199 @nparams: specify the number of parameters the signal
1200 receives from the caller of gtk_signal_emit().
1201 @params: array of #GtkTypes the signal handlers for this signal
1202 should have in their prototype (of length nparams).
1203 @Returns: the signal id. (See #GtkSignals)
1205 <!-- ##### FUNCTION gtk_object_constructed ##### -->
1207 Mark an allocated object as constructed.
1208 This is used for situations
1209 that require precise control of the construction process.
1212 This is done when gtk_object_default_construct() is inadequate.
1213 In #GtkCList the need arises because #GtkCList does construction work that
1214 must happen <emphasis>after</emphasis> its derivers. This work
1215 cannot be done in an initializer function, so an alternate
1216 constructor is mandatory. It calls gtk_object_constructed() to
1217 indicate it has done its job, so that no other constructor will
1221 Normally this function is just automatically run from
1222 gtk_object_default_construct().
1225 @object: object which has been constructed. This is usually
1226 done automatically by gtk_object_new() and gtk_object_newv().
1228 <!-- ##### FUNCTION gtk_object_default_construct ##### -->
1230 This function is called to construct arguments that haven't been initialized
1231 but have the #GTK_ARG_CONSTRUCT flag set.
1234 All number arguments are set to 0. All pointers and strings
1238 Normally invoked by gtk_object_new() automatically; gtk_type_new() can
1239 be used to bypass it.
1242 @object: the object to initialize.
1244 <!-- ##### FUNCTION gtk_object_getv ##### -->
1246 Gets an array of argument values from an object.
1249 @object: the object to get arguments from.
1250 @n_args: the number of arguments to query.
1251 @args: the arguments to fill in.
1253 <!-- ##### FUNCTION gtk_object_newv ##### -->
1255 Construct an object with an array of arguments.
1258 @object_type: the type of the object to create.
1259 @n_args: the number of arguments to set.
1260 @args: an array of n_args arguments (which are name and value pairs).
1261 @Returns: the new GtkObject.
1263 <!-- ##### FUNCTION gtk_object_query_args ##### -->
1265 Get all the arguments that may be used for a given type.
1268 In Java, this type of mechanism is called
1269 <wordasword>introspection</wordasword>. It is used by applications
1270 like Glade, that have to determine what can be done to an object
1274 @class_type: the GtkType of the ObjectClass
1275 (returned from GTK_OBJECT_CLASS(class)->type for example).
1276 @arg_flags: if non-NULL, obtains the #GtkArgFlags that apply to
1277 each argument. You must g_free() this if you request it.
1278 @n_args: the number of arguments is returned in this field.
1279 @Returns: an array of arguments, that you must deallocate with g_free().
1281 <!-- ##### FUNCTION gtk_object_setv ##### -->
1283 Set an array of arguments.
1286 @object: the object whose arguments should be set.
1287 @n_args: the number of arguments to set.
1288 @args: the desired values, as an array of #GtkArgs (which contain
1289 the names, types, and values of the arguments).
1291 <!-- ##### FUNCTION gtk_paned_compute_position ##### -->
1293 Internal function used by #GtkHPaned and #GtkVPaned
1301 <!-- ##### FUNCTION gtk_paned_set_handle_size ##### -->
1303 Set the the handle size to @size x @size pixels.
1306 @paned: a paned widget
1307 @size: the size in pixels
1309 <!-- ##### FUNCTION gtk_pattern_match ##### -->
1320 <!-- ##### FUNCTION gtk_pattern_match_simple ##### -->
1329 <!-- ##### FUNCTION gtk_pattern_match_string ##### -->
1338 <!-- ##### FUNCTION gtk_pattern_spec_free_segs ##### -->
1345 <!-- ##### FUNCTION gtk_pattern_spec_init ##### -->
1353 <!-- ##### FUNCTION gtk_rc_init ##### -->
1359 <!-- ##### FUNCTION gtk_ruler_draw_pos ##### -->
1364 @ruler: the gtkruler
1366 <!-- ##### FUNCTION gtk_ruler_draw_ticks ##### -->
1371 @ruler: the gtkruler
1373 <!-- ##### FUNCTION gtk_signal_add_emission_hook ##### -->
1375 Add an emission hook for a type of signal, for any object.
1378 @signal_id: the type of signal to hook for.
1379 @hook_func: the function to invoke to handle the emission hook.
1380 @data: the user data passed in to hook_func.
1381 @Returns: the id (that you may pass as a parameter
1382 to gtk_signal_remove_emission_hook()).
1387 <!-- ##### FUNCTION gtk_signal_add_emission_hook_full ##### -->
1389 Add an emission hook for a type of signal, for any object.
1390 (with control of what happens when the hook is
1394 @signal_id: the type of signal add the hook for.
1395 @hook_func: the function to invoke to handle the hook.
1396 @data: the user data passed in to hook_func.
1397 @destroy: a function to invoke when the hook is destroyed,
1398 to clean up any allocation done just for this
1400 @Returns: the id (that you may pass as a parameter
1401 to gtk_signal_remove_emission_hook()).
1403 <!-- ##### FUNCTION gtk_signal_handler_pending_by_id ##### -->
1405 Returns whether a connection id is valid (and optionally not blocked).
1408 @object: the object to search for the desired handler.
1409 @handler_id: the connection id.
1410 @may_be_blocked: whether it is acceptable to return a blocked
1412 @Returns: TRUE if the signal exists and wasn't blocked,
1413 unless #may_be_blocked was specified. FALSE otherwise.
1415 <!-- ##### FUNCTION gtk_signal_handlers_destroy ##### -->
1417 Destroy all the signal handlers connected to an object.
1418 This is done automatically when the object is destroyed.
1421 This function is labeled private.
1424 @object: the object whose signal handlers should be destroyed.
1426 <!-- ##### FUNCTION gtk_signal_init ##### -->
1432 <!-- ##### FUNCTION gtk_signal_n_emissions ##### -->
1434 Find out the recursion depth of emissions for a particular type
1435 of signal and object. (So it will
1436 always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified)
1437 This is a way to avoid recursion: you can see if
1438 you are currently running in that signal handler and emit it only
1441 <para>Another way to look at it is that this number increases
1442 by one when #gtk_signal_emit(), et al, are called,
1443 and decreases by one when #gtk_signal_emit() returns.
1446 @object: the object with the signal handler.
1447 @signal_id: the signal id.
1448 @Returns: the recursion depth of emissions of this signal for this
1451 <!-- ##### FUNCTION gtk_signal_n_emissions_by_name ##### -->
1453 Find out the recursion depth of emissions for a particular type
1454 of signal and object. Just like gtk_signal_n_emissions()
1455 except it will lookup the signal id for you.
1458 @object: the object with the signal handler.
1459 @name: the signal name.
1460 @Returns: the recursion depth of emissions of this signal for this
1463 <!-- ##### FUNCTION gtk_signal_query ##### -->
1465 Obtain information about a signal.
1468 @signal_id: the signal type identifier.
1469 @Returns: a pointer to a GtkSignalQuery structure
1470 which contains all the information, or NULL.
1471 The pointer is allocated just for you: you must g_free() it.
1473 <!-- ##### FUNCTION gtk_signal_remove_emission_hook ##### -->
1475 Delete an emission hook. (see gtk_signal_add_emission_hook())
1478 @signal_id: the id of the signal type.
1479 @hook_id: the id of the emission handler, returned by add_emission_hook().
1483 <!-- ##### FUNCTION gtk_signal_set_funcs ##### -->
1485 These set default functions to call when the user didn't
1486 supply a function when connecting. (These are rarely
1487 used, and probably only for language bindings)
1490 By default, there are no such functions.
1493 @marshal_func: the function to invoke on every handlers for which there
1494 isn't a function pointer. May be NULL.
1495 @destroy_func: the function to invoke when each hook is destroyed.
1498 <!-- ##### FUNCTION gtk_spin_button_set_shadow_type ##### -->
1500 Creates a border around the arrows of a #GtkSpinButton. The type of border is determined by @shadow_type.
1503 @spin_button: a #GtkSpinButton
1504 @shadow_type: the new border type.
1506 <!-- ##### FUNCTION gtk_stock_list_items ##### -->
1513 <!-- ##### FUNCTION gtk_trace_referencing ##### -->
1515 Private: print debugging information while doing a gtk_object_ref() or
1516 a gtk_object_unref().
1519 @object: object to reference or unreference.
1520 @func: name of caller's function to print (used within macros).
1522 @line: line number (used within macros).
1523 @do_ref: whether to reference or unreference.
1525 <!-- ##### FUNCTION gtk_tree_model_ref_iter ##### -->
1533 <!-- ##### FUNCTION gtk_tree_model_sort_set_compare ##### -->
1541 <!-- ##### FUNCTION gtk_tree_model_sort_set_sort_column ##### -->
1549 <!-- ##### FUNCTION gtk_tree_model_unref_iter ##### -->
1557 <!-- ##### FUNCTION gtk_tree_store_set_cell ##### -->
1567 <!-- ##### FUNCTION gtk_type_check_class_cast ##### -->
1569 Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make
1570 sure that it's okay to cast something of that @klass into a @cast_type.
1573 @klass: GtkTypeClass*
1575 @Returns: Always return @klass.
1577 <!-- ##### FUNCTION gtk_type_check_object_cast ##### -->
1579 Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type,
1580 make sure that it's okay to cast @type_object into a @cast_type.
1583 @type_object: GtkTypeObject*
1585 @Returns: the same GtkTypeObject* as @type_object
1587 <!-- ##### FUNCTION gtk_type_children_types ##### -->
1589 Return the pointer to the type's children's types.
1593 @Returns: pointer to a GList
1595 <!-- ##### FUNCTION gtk_type_describe_heritage ##### -->
1597 Print the types @type inherits from.
1602 <!-- ##### FUNCTION gtk_type_describe_tree ##### -->
1604 Given a @type, describe all of its children, and their children. Only
1605 show the size if @show_size is true.
1609 @show_size: gboolean
1611 <!-- ##### FUNCTION gtk_type_free ##### -->
1613 Given the type of an object and a pointer to it, the object is freed.
1617 @mem: gpointer to the object
1619 <!-- ##### FUNCTION gtk_type_get_varargs_type ##### -->
1621 Get the varargs type associated with @foreign_type
1624 @foreign_type: GtkType
1627 <!-- ##### FUNCTION gtk_type_parent_class ##### -->
1629 Return the class of the parent. Initialize the class if necessary.
1630 Return NULL if anything goes wrong.
1634 @Returns: gpointer to the klass.
1636 <!-- ##### FUNCTION gtk_type_query ##### -->
1638 Given a type, return various interesting parameters of the type.
1642 @Returns: GtkTypeQuery*
1644 <!-- ##### FUNCTION gtk_type_register_enum ##### -->
1646 Register a new set of enum @values and give them the name in
1650 @type_name: must not be null.
1651 @values: GtkEnumValue*
1654 <!-- ##### FUNCTION gtk_type_register_flags ##### -->
1656 Register a new set of flags @values and give them the name in
1660 @type_name: must not be null.
1661 @values: GtkFlagValue*
1664 <!-- ##### FUNCTION gtk_type_set_chunk_alloc ##### -->
1666 Set the mem_chunk size so it will hold @n_chunks of the objects of that @type.
1669 @type: There must be an unlocked TypeNode associated with this type otherwise nothing happens.
1672 <!-- ##### FUNCTION gtk_type_set_varargs_type ##### -->
1674 Set the varargs type for a fundamental type @foreign_type.
1677 @foreign_type: Must be a GtkType with a sequence number of zero. Must not be a
1679 @varargs_type: Must be a GtkType which is either structured or flag, or NONE.
1681 <!-- ##### FUNCTION gtk_widget_activate_mnemonic ##### -->
1690 <!-- ##### FUNCTION gtk_widget_popup ##### -->
1699 <!-- ##### FUNCTION gtk_window_activate_mnemonic ##### -->
1709 <!-- ##### FUNCTION gtk_window_get_default_accel_group ##### -->
1717 <!-- ##### FUNCTION gtk_window_set_decorations_hint ##### -->
1725 <!-- ##### FUNCTION gtk_window_set_functions_hint ##### -->