1 <!-- ##### SECTION ./tmpl/gtkarg.sgml:Long_Description ##### -->
3 All the functions in here are marked a Non-public.
4 We describe it anyway because it is occasionally useful
5 to understand how the work is done.
8 Arguments are a way of describing a named parameter to a function.
9 They have two important roles within gtk+:
13 they describe <wordasword>object properties</wordasword>.
14 This means that they present an interface to get and set a named-type
15 for any type of object in a consistent way.
16 (All the relevant functions to do this start with gtk_object_set
22 they describe <wordasword>signal arguments</wordasword>.
23 This is a lot less often needed but still useful.
24 Usually if you are just emitting or creating a particular signal
25 it is more convenient to just use gtk_signal_emit() or gtk_signal_new().
26 However if you are writing a function to emit or create an arbitrary
27 signal, you must use gtk_signal_emitv() or gtk_signal_newv().
34 <!-- ##### SECTION ./tmpl/gtkarg.sgml:See_Also ##### -->
40 <!-- ##### SECTION ./tmpl/gtkarg.sgml:Short_Description ##### -->
41 Utility function to manipulate lists of named, typed arguments.
44 <!-- ##### SECTION ./tmpl/gtkarg.sgml:Title ##### -->
45 Implementation of Object Properties
48 <!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:Long_Description ##### -->
54 <!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:See_Also ##### -->
60 <!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:Short_Description ##### -->
64 <!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:Title ##### -->
65 GtkCellRendererTextPixbuf
68 <!-- ##### SECTION ./tmpl/gtkdata.sgml:Long_Description ##### -->
70 The #GtkData object is a very simple object intended to be used as a base
71 class for objects which contain data (i.e. the 'Model' in the object-oriented
72 Model/View/Controller framework).
75 Currently it is not very useful since all it provides is a "disconnect" signal.
76 This signal could be emitted by a #GtkData subclass to notify any 'Views'
77 that they should disconnect from the #GtkData (the 'Model'), possibly just
78 before the #GtkData is destroyed.
82 <!-- ##### SECTION ./tmpl/gtkdata.sgml:See_Also ##### -->
88 <!-- ##### SECTION ./tmpl/gtkdata.sgml:Short_Description ##### -->
89 abstract base class for objects containing data.
92 <!-- ##### SECTION ./tmpl/gtkdata.sgml:Title ##### -->
96 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:Title ##### -->
100 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Title ##### -->
104 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Long_Description ##### -->
106 <title>What are Signal Marshallers?</title>
108 Marshals are functions which all have the same prototype:
109 they take a #GtkObject, a #GtkSignalFunc, a #gpointer,
110 and an array of argument values.
111 The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2....
114 They then call a native function: the GtkObject is the first
115 parameter passed in. The arguments are passed in the native
116 calling convention: chars, shorts, ints, longs may be packed
117 on the stack, or tucked in registers: it doesn't matter
118 because the same calling convention will be generated
119 inside the gtkmarshal code as is expected where you define
123 So the function named:
125 gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
127 will call the #GtkSignalFunc assuming it was a function with signature:
129 gboolean sigfunc(gpointer,gint,gint,guint);
134 <title>Writing Custom Marshals</title>
136 Marshals are primarily used as arguments to gtk_signal_new().
137 Sometimes, you may find that a marshaller you need isn't available
138 in the standard list. Then you have to write your own.
141 If you wish to define a signal with a new type of argument list.
142 Suppose you want 2 pointers and 2 integers.
145 typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)(
146 gpointer, gpointer, gint, gint
149 void marshal_INT__POINTER_POINTER_INT_INT(GtkObject* object,
154 GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc;
156 return_val = GTK_RETLOC_INT(args[4]);
157 rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func;
158 *return_val = (*rfunc)(object,
159 GTK_VALUE_POINTER(args[0]),
160 GTK_VALUE_POINTER(args[1]),
161 GTK_VALUE_INT(args[2]),
162 GTK_VALUE_INT(args[3]),
170 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:See_Also ##### -->
175 <term>#GtkSignal</term>
176 <listitem><para>The signal handling functions (of which marshallers are
177 really an implementation detail).</para></listitem>
184 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Short_Description ##### -->
185 Functions to adapt C structures to native calling convention.
188 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Title ##### -->
192 <!-- ##### SECTION ./tmpl/gtkpacker.sgml:Long_Description ##### -->
198 <!-- ##### SECTION ./tmpl/gtkpacker.sgml:See_Also ##### -->
204 <!-- ##### SECTION ./tmpl/gtkpacker.sgml:Short_Description ##### -->
208 <!-- ##### SECTION ./tmpl/gtkpacker.sgml:Title ##### -->
212 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### -->
216 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Long_Description ##### -->
222 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:See_Also ##### -->
228 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Short_Description ##### -->
232 <!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Title ##### -->
236 <!-- ##### MACRO GTK_CLIST_CHILD_HAS_FOCUS ##### -->
238 A macro to check whether a child widget of the CList
242 @clist: The #GtkCList widget to check.
244 <!-- ##### MACRO GTK_ICON_SIZE_BUTTON ##### -->
250 <!-- ##### MACRO GTK_ICON_SIZE_DIALOG ##### -->
256 <!-- ##### MACRO GTK_ICON_SIZE_LARGE_TOOLBAR ##### -->
262 <!-- ##### MACRO GTK_ICON_SIZE_MENU ##### -->
268 <!-- ##### MACRO GTK_ICON_SIZE_SMALL_TOOLBAR ##### -->
274 <!-- ##### MACRO GTK_IS_TIPS_QUERY ##### -->
281 <!-- ##### MACRO GTK_IS_TIPS_QUERY_CLASS ##### -->
288 <!-- ##### MACRO GTK_OBJECT_CONSTRUCTED ##### -->
290 Test whether a GtkObject's arguments have been prepared.
293 @obj: the object to examine.
295 <!-- ##### MACRO GTK_OBJECT_DESTROYED ##### -->
297 Test whether a GtkObject has had gtk_object_destroy() invoked on it.
300 @obj: the object to examine.
302 <!-- ##### MACRO GTK_OBJECT_NSIGNALS ##### -->
304 Get the number of signals defined by this object.
307 @obj: the object to query.
309 <!-- ##### MACRO GTK_OBJECT_SET_FLAGS ##### -->
311 Turns on certain object flags. (Private)
314 @obj: the object to affect.
315 @flag: the flags to set.
317 <!-- ##### MACRO GTK_OBJECT_SIGNALS ##### -->
319 Get the array of signals defined for this object.
322 @obj: the object to fetch the signals from.
324 <!-- ##### MACRO GTK_OBJECT_UNSET_FLAGS ##### -->
326 Turns off certain object flags. (Private)
329 @obj: the object to affect.
330 @flag: the flags to unset.
332 <!-- ##### MACRO GTK_STOCK_BUTTON_APPLY ##### -->
338 <!-- ##### MACRO GTK_STOCK_BUTTON_CANCEL ##### -->
344 <!-- ##### MACRO GTK_STOCK_BUTTON_CLOSE ##### -->
350 <!-- ##### MACRO GTK_STOCK_BUTTON_NO ##### -->
356 <!-- ##### MACRO GTK_STOCK_BUTTON_OK ##### -->
362 <!-- ##### MACRO GTK_STOCK_BUTTON_YES ##### -->
368 <!-- ##### MACRO GTK_TIPS_QUERY ##### -->
375 <!-- ##### MACRO GTK_TIPS_QUERY_CLASS ##### -->
382 <!-- ##### MACRO GTK_TIPS_QUERY_GET_CLASS ##### -->
389 <!-- ##### MACRO GTK_TREE_MODEL_GET_IFACE ##### -->
396 <!-- ##### MACRO GTK_TREE_SELECTION ##### -->
398 A macro that returns a GList that contains the selection of the root tree of @obj.
401 @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.
403 <!-- ##### MACRO GTK_TYPE_FLAT_FIRST ##### -->
405 The first "flat" (no struct) enumerated type value.
409 <!-- ##### MACRO GTK_TYPE_FLAT_LAST ##### -->
411 The last "flat" (no struct) enumerated type value.
415 <!-- ##### MACRO GTK_TYPE_IDENTIFIER ##### -->
417 Hide the name of gtk_identifier_get_type
421 <!-- ##### MACRO GTK_TYPE_MAKE ##### -->
423 Combine a fundemantal type and a sequence number to create a gtk type.
429 <!-- ##### MACRO GTK_TYPE_NUM_BUILTINS ##### -->
435 <!-- ##### MACRO GTK_TYPE_SEQNO ##### -->
437 Convert a gtk type into its sequence number
442 <!-- ##### MACRO GTK_TYPE_STRUCTURED_FIRST ##### -->
444 The first structured enumerated type value.
448 <!-- ##### MACRO GTK_TYPE_STRUCTURED_LAST ##### -->
450 The last structured enumerated type value.
454 <!-- ##### MACRO GTK_TYPE_TIPS_QUERY ##### -->
460 <!-- ##### MACRO GTK_TYPE_TREE_COLUMN ##### -->
466 <!-- ##### MACRO GTK_TYPE_TREE_VIEW_COLUMN ##### -->
472 <!-- ##### MACRO GTK_VALUE_ARGS ##### -->
474 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS
479 <!-- ##### MACRO GTK_VALUE_CALLBACK ##### -->
481 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK
486 <!-- ##### MACRO GTK_VALUE_C_CALLBACK ##### -->
488 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK
493 <!-- ##### MACRO GTK_VALUE_FOREIGN ##### -->
495 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
500 <!-- ##### USER_FUNCTION GValueCompareFunc ##### -->
509 <!-- ##### STRUCT GtkAccelEntry ##### -->
511 This is a private struct used by GTK+ internally, don't worry about it.
521 <!-- ##### ARG GtkAccelLabel:accel-object ##### -->
527 <!-- ##### ARG GtkAccelLabel:accel-width ##### -->
533 <!-- ##### USER_FUNCTION GtkAccelMapNotify ##### -->
546 <!-- ##### USER_FUNCTION GtkArgGetFunc ##### -->
548 Define a function pointer. Deprecated.
555 <!-- ##### STRUCT GtkArgInfo ##### -->
557 A structure containing information about the argument.
558 Returned by gtk_arg_get_info().
561 @class_type: if the argument is an object, this is the object class type.
562 @name: the name of the argument.
563 @type: the type of the argument; it may be an object's type
564 or a fundamental type.
565 @arg_flags: flags applicable to the argument (i.e. readable, writable,
566 and whether it needs to be constructed).
567 @full_name: the object name and argument name separated by ::,
568 e.g. "GtkObject::user_data" or "GtkButton::label".
569 @arg_id: the unique argument identified.
572 <!-- ##### USER_FUNCTION GtkArgSetFunc ##### -->
574 Define a function pointer. Deprecated.
581 <!-- ##### STRUCT GtkCellRendererTextPixbuf ##### -->
588 <!-- ##### ARG GtkColorSelection:previous-alpha ##### -->
594 <!-- ##### ARG GtkColorSelection:previous-color ##### -->
600 <!-- ##### SIGNAL GtkContainer::focus ##### -->
605 @container: the object which received the signal.
609 <!-- ##### ARG GtkContainer:reallocate-redraws ##### -->
615 <!-- ##### STRUCT GtkData ##### -->
617 The #GtkData-struct struct contains no public fields.
621 <!-- ##### SIGNAL GtkData::disconnect ##### -->
623 Emitted to notify any views on the #GtkData object to disconnect from it,
624 possibly because the #GtkData object is about to be destroyed.
627 @data: the object which received the signal.
629 <!-- ##### SIGNAL GtkEditable::activate ##### -->
631 Indicates that the user has activated the widget
632 in some fashion. Generally, this will be done
633 with a keystroke. (The default binding for this
634 action is Return for #GtkEntry and
635 Control-Return for #GtkText.)
638 @editable: the object which received the signal.
640 <!-- ##### SIGNAL GtkEditable::changed ##### -->
642 Indicates that the user has changed the contents
646 @editable: the object which received the signal.
648 <!-- ##### SIGNAL GtkEditable::copy-clipboard ##### -->
650 An action signal. Causes the characters in the current selection to
651 be copied to the clipboard.
654 @editable: the object which received the signal.
656 <!-- ##### SIGNAL GtkEditable::cut-clipboard ##### -->
658 An action signal. Causes the characters in the current
659 selection to be copied to the clipboard and then deleted from
663 @editable: the object which received the signal.
665 <!-- ##### SIGNAL GtkEditable::delete-text ##### -->
667 This signal is emitted when text is deleted from
668 the widget by the user. The default handler for
669 this signal will normally be responsible for inserting
670 the text, so by connecting to this signal and then
671 stopping the signal with gtk_signal_emit_stop(), it
672 is possible to modify the inserted text, or prevent
673 it from being inserted entirely. The @start_pos
674 and @end_pos parameters are interpreted as for
675 gtk_editable_delete_text()
678 @editable: the object which received the signal.
679 @start_pos: the starting position.
680 @end_pos: the end position.
682 <!-- ##### SIGNAL GtkEditable::insert-text ##### -->
684 This signal is emitted when text is inserted into
685 the widget by the user. The default handler for
686 this signal will normally be responsible for inserting
687 the text, so by connecting to this signal and then
688 stopping the signal with gtk_signal_emit_stop(), it
689 is possible to modify the inserted text, or prevent
690 it from being inserted entirely.
693 @editable: the object which received the signal.
694 @new_text: the new text to insert.
695 @new_text_length: the length of the new text.
696 @position: the position at which to insert the new text.
697 this is an in-out paramter. After the signal
698 emission is finished, it should point after
699 the newly inserted text.
701 <!-- ##### SIGNAL GtkEditable::kill-char ##### -->
703 An action signal. Delete a single character.
706 @editable: the object which received the signal.
707 @direction: the direction in which to delete. Positive
708 indicates forward deletion, negative, backwards deletion.
710 <!-- ##### SIGNAL GtkEditable::kill-line ##### -->
712 An action signal. Delete a single line.
715 @editable: the object which received the signal.
716 @direction: the direction in which to delete. Positive
717 indicates forward deletion, negative, backwards deletion.
719 <!-- ##### SIGNAL GtkEditable::kill-word ##### -->
721 An action signal. Delete a single word.
724 @editable: the object which received the signal.
725 @direction: the direction in which to delete. Positive
726 indicates forward deletion, negative, backwards deletion.
728 <!-- ##### SIGNAL GtkEditable::move-cursor ##### -->
730 An action signal. Move the cursor position.
733 @editable: the object which received the signal.
734 @x: horizontal distance to move the cursor.
735 @y: vertical distance to move the cursor.
737 <!-- ##### SIGNAL GtkEditable::move-page ##### -->
739 An action signal. Move the cursor by pages.
742 @editable: the object which received the signal.
743 @x: Number of pages to move the cursor horizontally.
744 @y: Number of pages to move the cursor vertically.
746 <!-- ##### SIGNAL GtkEditable::move-to-column ##### -->
748 An action signal. Move the cursor to the given column.
751 @editable: the object which received the signal.
752 @column: the column to move to. (A negative value indicates
755 <!-- ##### SIGNAL GtkEditable::move-to-row ##### -->
757 An action signal. Move the cursor to the given row.
760 @editable: the object which received the signal.
761 @row: the row to move to. (A negative value indicates
764 <!-- ##### SIGNAL GtkEditable::move-word ##### -->
766 An action signal. Move the cursor by words.
769 @editable: the object which received the signal.
770 @num_words: The number of words to move the
771 cursor. (Can be negative).
773 <!-- ##### SIGNAL GtkEditable::paste-clipboard ##### -->
775 An action signal. Causes the contents of the clipboard to
776 be pasted into the editable widget at the current cursor
780 @editable: the object which received the signal.
782 <!-- ##### SIGNAL GtkEditable::set-editable ##### -->
784 Determines if the user can edit the text in the editable
785 widget or not. This is meant to be overriden by
786 child classes and should not generally useful to
790 @editable: the object which received the signal.
791 @is_editable: %TRUE if the user is allowed to edit the text
794 <!-- ##### ARG GtkEditable:editable ##### -->
796 A boolean indicating whether the widget is editable by
801 <!-- ##### ARG GtkEditable:text-position ##### -->
803 The position of the cursor.
807 <!-- ##### USER_FUNCTION GtkEmissionHook ##### -->
809 A simple function pointer to get invoked when the
810 signal is emitted. This allows you tie a hook to the signal type,
811 so that it will trap all emissions of that signal, from any object.
814 You may not attach these to signals created with the
815 #GTK_RUN_NO_HOOKS flag.
825 <!-- ##### SIGNAL GtkEntry::changed ##### -->
830 @entry: the object which received the signal.
832 <!-- ##### SIGNAL GtkEntry::delete-text ##### -->
837 @entry: the object which received the signal.
841 <!-- ##### SIGNAL GtkEntry::insert-text ##### -->
846 @entry: the object which received the signal.
851 <!-- ##### ARG GtkEntry:text-position ##### -->
857 <!-- ##### ENUM GtkFontFilterType ##### -->
859 A set of bit flags used to specify the filter being set
860 when calling gtk_font_selection_dialog_set_filter() or
861 gtk_font_selection_set_filter().
864 @GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user.
865 @GTK_FONT_FILTER_USER: the user filter, which can be changed from within the
866 'Filter' page of the #GtkFontSelection widget.
868 <!-- ##### ENUM GtkFontType ##### -->
870 A set of bit flags used to specify the type of fonts shown
871 when calling gtk_font_selection_dialog_set_filter() or
872 gtk_font_selection_set_filter().
875 @GTK_FONT_BITMAP: bitmap fonts.
876 @GTK_FONT_SCALABLE: scalable fonts.
877 @GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts.
878 @GTK_FONT_ALL: a bitwise combination of all of the above.
880 <!-- ##### ARG GtkHScale:adjustment ##### -->
882 the #GtkAdjustment which sets the range of the scale.
886 <!-- ##### ARG GtkHScrollbar:adjustment ##### -->
892 <!-- ##### USER_FUNCTION GtkImageLoader ##### -->
894 A GtkImageLoader is used to load a filename found in
898 @window: the window for creating image
899 @colormap: the colormap for this image
900 @mask: a pointer to the location to store the mask
901 @transparent_color: the transparent color for the image
902 @filename: filename to load
903 @Returns: a #GtkPixmap representing @filename
905 <!-- ##### ARG GtkLabel:accel-keyval ##### -->
911 <!-- ##### SIGNAL GtkMenuBar::cycle-focus ##### -->
916 @menubar: the object which received the signal.
919 <!-- ##### ARG GtkObject:object-signal ##### -->
921 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
922 the signal to the object, so that the user data and objects
923 and swapped when the signal handler is invoked.
926 This is useful for handlers that are primarily notifying
927 other objects and could just invoke an already existing function
928 if the parameters were swapped.
929 See gtk_signal_connect_object() for more details.
933 <!-- ##### ARG GtkObject:object-signal-after ##### -->
935 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
936 the signal to the object, so that the user data and objects
937 and swapped when the signal handler is invoked,
938 and so that the handler is invoked after all others.
941 See gtk_signal_connect_object_after() for more details.
945 <!-- ##### ARG GtkObject:signal ##### -->
947 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
948 the signal to the object.
952 <!-- ##### ARG GtkObject:signal-after ##### -->
954 Setting this with a GtkType of GTK_TYPE_SIGNAL connects
955 the signal to the object, so that the signal is always run
956 after other user handlers and the default handler.
960 <!-- ##### SIGNAL GtkOldEditable::changed ##### -->
965 @oldeditable: the object which received the signal.
967 <!-- ##### SIGNAL GtkOldEditable::delete-text ##### -->
972 @oldeditable: the object which received the signal.
976 <!-- ##### SIGNAL GtkOldEditable::insert-text ##### -->
981 @oldeditable: the object which received the signal.
986 <!-- ##### STRUCT GtkPacker ##### -->
994 @default_border_width:
1000 <!-- ##### ARG GtkPacker:default-border-width ##### -->
1006 <!-- ##### ARG GtkPacker:default-ipad-x ##### -->
1012 <!-- ##### ARG GtkPacker:default-ipad-y ##### -->
1018 <!-- ##### ARG GtkPacker:default-pad-x ##### -->
1024 <!-- ##### ARG GtkPacker:default-pad-y ##### -->
1030 <!-- ##### ARG GtkPacker:spacing ##### -->
1036 <!-- ##### STRUCT GtkPackerChild ##### -->
1052 <!-- ##### ENUM GtkPackerOptions ##### -->
1061 <!-- ##### ARG GtkPaned:handle-size ##### -->
1067 <!-- ##### STRUCT GtkPatternSpec ##### -->
1079 <!-- ##### ENUM GtkPrivateFlags ##### -->
1084 @PRIVATE_GTK_USER_STYLE:
1085 @PRIVATE_GTK_RESIZE_PENDING:
1086 @PRIVATE_GTK_RESIZE_NEEDED:
1087 @PRIVATE_GTK_LEAVE_PENDING:
1088 @PRIVATE_GTK_HAS_SHAPE_MASK:
1089 @PRIVATE_GTK_IN_REPARENT:
1090 @PRIVATE_GTK_DIRECTION_SET:
1091 @PRIVATE_GTK_DIRECTION_LTR:
1093 <!-- ##### ARG GtkScrolledWindow:shadow ##### -->
1099 <!-- ##### USER_FUNCTION GtkSignalDestroy ##### -->
1101 A function which you can use to clean up when the
1102 signal handler is destroyed.
1105 For example, if your handler requires a few variables
1106 that you made into a struct and allocated (using g_new()
1107 or something), then you will probably want to free
1108 it as soon as the hook is destroyed. This will
1109 allow you to do that. (For this in particular
1110 it is convenient to pass g_free() as a #GtkSignalDestroy
1114 @data: The user data associated with the hook that is being
1117 <!-- ##### USER_FUNCTION GtkSignalMarshal ##### -->
1119 This is currently a hack left in for a scheme wrapper library.
1126 @object: The object which emits the signal.
1127 @data: The user data associated with the hook.
1128 @nparams: The number of parameters to the function.
1129 @args: The actual values of the arguments.
1130 @arg_types: The types of the arguments.
1131 @return_type: The type of the return value from the function
1132 or #GTK_TYPE_NONE for no return value.
1134 <!-- ##### STRUCT GtkSignalQuery ##### -->
1136 This structure contains all the information about a particular
1137 signal: its name, the type it affects, the signature of the handlers,
1138 and its unique identifying integer.
1150 <!-- ##### ARG GtkSpinButton:shadow-type ##### -->
1152 the type of border that surrounds the arrows of a spin button.
1156 <!-- ##### STRUCT GtkStatusbarMsg ##### -->
1158 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.
1165 <!-- ##### STRUCT GtkTextBTreeNode ##### -->
1171 <!-- ##### ARG GtkTextTag:justify ##### -->
1173 A #GtkJustification for the text. This is only used when the tag is
1174 applied to the first character in a paragraph.
1178 <!-- ##### ARG GtkTextTag:left-wrapped-line-margin ##### -->
1180 Pixel width of the left margin of the text for lines after the first
1181 line in a wrapped paragraph.
1185 <!-- ##### ARG GtkTextTag:left-wrapped-line-margin-set ##### -->
1191 <!-- ##### ARG GtkTextTag:offset ##### -->
1193 Pixels to offset the text horizontally or vertically, useful to
1194 produce superscript and subscript.
1198 <!-- ##### ARG GtkTextView:height-lines ##### -->
1204 <!-- ##### ARG GtkTextView:justify ##### -->
1210 <!-- ##### ARG GtkTextView:width-columns ##### -->
1216 <!-- ##### SIGNAL GtkTreeModel::row-changed ##### -->
1221 @treemodel: the object which received the signal.
1225 <!-- ##### SIGNAL GtkTreeModel::row-deleted ##### -->
1230 @treemodel: the object which received the signal.
1233 <!-- ##### SIGNAL GtkTreeModel::row-has-child-toggled ##### -->
1238 @treemodel: the object which received the signal.
1242 <!-- ##### SIGNAL GtkTreeModel::row-inserted ##### -->
1247 @treemodel: the object which received the signal.
1251 <!-- ##### SIGNAL GtkTreeModel::rows-reordered ##### -->
1256 @treemodel: the object which received the signal.
1261 <!-- ##### STRUCT GtkTreeSelectionClass ##### -->
1267 <!-- ##### ENUM GtkTreeSelectionMode ##### -->
1272 @GTK_TREE_SELECTION_SINGLE:
1273 @GTK_TREE_SELECTION_MULTI:
1275 <!-- ##### USER_FUNCTION GtkTreeViewDraggableFunc ##### -->
1286 <!-- ##### USER_FUNCTION GtkTreeViewDroppableFunc ##### -->
1298 <!-- ##### ARG GtkVScale:adjustment ##### -->
1300 the #GtkAdjustment which sets the range of the scale.
1304 <!-- ##### ARG GtkVScrollbar:adjustment ##### -->
1310 <!-- ##### SIGNAL GtkWidget::activate-mnemonic ##### -->
1315 @widget: the object which received the signal.
1319 <!-- ##### SIGNAL GtkWidget::add-accelerator ##### -->
1324 @widget: the object which received the signal.
1331 <!-- ##### SIGNAL GtkWidget::debug-msg ##### -->
1336 @widget: the object which received the signal.
1339 <!-- ##### SIGNAL GtkWidget::draw ##### -->
1344 @widget: the object which received the signal.
1347 <!-- ##### SIGNAL GtkWidget::draw-default ##### -->
1352 @widget: the object which received the signal.
1354 <!-- ##### SIGNAL GtkWidget::draw-focus ##### -->
1359 @widget: the object which received the signal.
1361 <!-- ##### SIGNAL GtkWidget::remove-accelerator ##### -->
1366 @widget: the object which received the signal.
1371 <!-- ##### ARG GtkWidget:height ##### -->
1377 <!-- ##### ARG GtkWidget:width ##### -->
1383 <!-- ##### ARG GtkWidget:x ##### -->
1389 <!-- ##### ARG GtkWidget:y ##### -->
1395 <!-- ##### SIGNAL GtkWindow::accels-changed ##### -->
1400 @window: the object which received the signal.
1402 <!-- ##### ARG GtkWindow:auto-shrink ##### -->
1404 If the window shrinks automatically when widgets within it shrink.
1408 <!-- ##### ARG GtkWindow:icon-list ##### -->
1414 <!-- ##### FUNCTION gtk_accel_group_activate ##### -->
1424 <!-- ##### FUNCTION gtk_accel_group_add ##### -->
1437 <!-- ##### FUNCTION gtk_accel_group_attach ##### -->
1445 <!-- ##### FUNCTION gtk_accel_group_create_add ##### -->
1455 <!-- ##### FUNCTION gtk_accel_group_create_remove ##### -->
1465 <!-- ##### FUNCTION gtk_accel_group_detach ##### -->
1473 <!-- ##### FUNCTION gtk_accel_group_entries_from_object ##### -->
1481 <!-- ##### FUNCTION gtk_accel_group_get_default ##### -->
1488 <!-- ##### FUNCTION gtk_accel_group_get_entry ##### -->
1498 <!-- ##### FUNCTION gtk_accel_group_get_type ##### -->
1505 <!-- ##### FUNCTION gtk_accel_group_handle_add ##### -->
1517 <!-- ##### FUNCTION gtk_accel_group_handle_remove ##### -->
1527 <!-- ##### FUNCTION gtk_accel_group_lock_entry ##### -->
1536 <!-- ##### FUNCTION gtk_accel_group_remove ##### -->
1546 <!-- ##### FUNCTION gtk_accel_group_unlock_entry ##### -->
1555 <!-- ##### FUNCTION gtk_accel_label_get_accel_object ##### -->
1563 <!-- ##### FUNCTION gtk_accel_label_set_accel_object ##### -->
1571 <!-- ##### FUNCTION gtk_accel_map_add_notifer ##### -->
1581 <!-- ##### FUNCTION gtk_accel_map_remove_notifer ##### -->
1590 <!-- ##### FUNCTION gtk_arg_copy ##### -->
1592 It will either copy data into an existing argument or allocate a new argument
1593 and copy the data. Strings are duplicated. All other pointers and
1594 values are copied (shallowly-- that is the pointers themselves are
1595 copied, not the data they point to.)
1598 You should call gtk_arg_reset() on dest_arg before calling this
1599 if the argument may contain string data that you want freed.
1602 @src_arg: the argument to duplicate.
1603 @dest_arg: the argument to copy over (or NULL to create a new #GtkArg).
1604 @Returns: the new #GtkArg (or dest_arg, if it was not NULL).
1606 <!-- ##### FUNCTION gtk_arg_free ##### -->
1608 Frees the argument, and optionally its contents.
1611 @arg: the argument to free.
1612 @free_contents: whether to free the string, if it is a string.
1614 <!-- ##### FUNCTION gtk_arg_get_info ##### -->
1616 Private: get information about an argument.
1619 @object_type: the type of object.
1620 @arg_info_hash_table: the hashtable of #GtkArgInfos.
1621 @arg_name: the name of the argument to lookup.
1622 @info_p: the argument info.
1623 @Returns: an error message on failure, or NULL otherwise.
1625 <!-- ##### FUNCTION gtk_arg_info_equal ##### -->
1627 A #GCompareFunc for hashing #GtkArgInfos.
1630 @arg_info_1: a #GtkArgInfo.
1631 @arg_info_2: a #GtkArgInfo.
1632 @Returns: whether the arguments are the same.
1634 <!-- ##### FUNCTION gtk_arg_info_hash ##### -->
1636 A #GHashFunc for hashing #GtkArgInfos.
1639 @arg_info: a #GtkArgInfo.
1640 @Returns: a hash value for that #GtkArgInfo.
1642 <!-- ##### FUNCTION gtk_arg_name_strip_type ##### -->
1644 Given a fully qualified argument name (e.g. "GtkButton::label")
1645 it returns just the argument name (e.g. "label") unless
1646 the argument name was invalid, in which case it returns NULL.
1649 @arg_name: the fully-qualified argument name.
1650 @Returns: the base argument name.
1652 <!-- ##### FUNCTION gtk_arg_new ##### -->
1654 Creates a new argument of a certain type, set to 0 or NULL.
1657 @arg_type: the type of the argument.
1658 @Returns: the newly created #GtkArg.
1660 <!-- ##### FUNCTION gtk_arg_reset ##### -->
1667 <!-- ##### FUNCTION gtk_arg_to_valueloc ##### -->
1675 <!-- ##### FUNCTION gtk_arg_type_new_static ##### -->
1677 Create a new argument registered with a class.
1680 @base_class_type: the basic type having the arguments, almost alway
1681 GTK_TYPE_OBJECT, except if your defining a different type argument
1682 that gets a different namespace. #GtkContainer does this to define
1683 per-child arguments of the container.
1684 @arg_name: name of the argument to create. (must be a static constant string)
1685 @class_n_args_offset: offset into the base class structure that tells
1686 the number of arguments.
1687 @arg_info_hash_table: hashtable of #GtkArgInfos.
1688 @arg_type: type of the argument.
1689 @arg_flags: flags of the argument.
1691 @Returns: the new #GtkArgInfo.
1693 <!-- ##### FUNCTION gtk_arg_values_equal ##### -->
1702 <!-- ##### FUNCTION gtk_args_collect ##### -->
1704 Private: given a hashtable of argument information it takes a vararg
1705 list and parses it into arguments (in the form of lists of #GtkArgs
1706 and lists of #GtkArgInfos.
1709 The list of arguments starts with first_arg_name then the first argument's
1710 value. Followed by any number of additional name/argument pairs,
1711 terminated with NULL.
1714 @object_type: the type of object we are collecting arguments for.
1715 @arg_info_hash_table: a hashtable mapping from names of arguments
1716 to their #GtkArgInfos.
1717 @arg_list_p: a returned list of arguments obtained from parsing the
1719 @info_list_p: a returned list of the #GtkArgInfos.
1720 @first_arg_name: the name of the first argument.
1721 @var_args: a va_list containing the value of the first argument,
1722 followed by name/value pairs, followed by NULL.
1723 @Returns: an error message on failure, or NULL otherwise.
1725 <!-- ##### FUNCTION gtk_args_collect_cleanup ##### -->
1727 Private: erase lists of arguments returned from gtk_args_collect().
1730 @arg_list: arg_list_p returned from gtk_args_collect().
1731 @info_list: info_list_p returned from gtk_args_collect().
1733 <!-- ##### FUNCTION gtk_args_query ##### -->
1735 Private: from a class type and its arginfo hashtable,
1736 get an array of #GtkArgs that this object accepts.
1739 @class_type: the class type.
1740 @arg_info_hash_table: the hashtable of #GtkArgInfos.
1741 @arg_flags: returned array of argument flags.
1742 @n_args_p: the number of arguments this object accepts.
1743 @Returns: the array of arguments (or NULL on error).
1745 <!-- ##### FUNCTION gtk_button_box_child_requisition ##### -->
1747 This is an internally used function and should never be called from an
\r
1756 <!-- ##### FUNCTION gtk_button_box_get_child_ipadding_default ##### -->
1758 The internal padding of a button is the amount of space between the outside
\r
1759 of the button and the widget it contains. This function gets the default
\r
1760 amount of horizontal and vertical padding, placing the results in @ipad_x
\r
1761 and @ipad_y, respectively.
\r
1764 @ipad_x: the default horizontal internal button padding.
1765 @ipad_y: the default vertical internal button padding.
1767 <!-- ##### FUNCTION gtk_button_box_get_child_size_default ##### -->
1769 Retrieves the default minimum width and height for all button boxes, and
\r
1770 places the values in @min_width and @min_height, respectively.
\r
1773 @min_width: the default minimum width of a child widget.
1774 @min_height: the default minimum height of a child widget.
1776 <!-- ##### FUNCTION gtk_button_box_set_child_ipadding_default ##### -->
1778 Sets the default number of pixels that pad each button in every button box.
\r
1781 @ipad_x: new default horizontal padding.
1782 @ipad_y: new default vertical padding.
1784 <!-- ##### FUNCTION gtk_button_box_set_child_size_default ##### -->
1786 Sets the default size of child buttons.
\r
1789 @min_width: minimum default width for child buttons.
1790 @min_height: minimum default height for child buttons.
1792 <!-- ##### FUNCTION gtk_button_new_accel ##### -->
1801 <!-- ##### FUNCTION gtk_button_new_stock ##### -->
1810 <!-- ##### FUNCTION gtk_cell_renderer_event ##### -->
1824 <!-- ##### FUNCTION gtk_cell_renderer_text_pixbuf_new ##### -->
1831 <!-- ##### FUNCTION gtk_clist_construct ##### -->
1833 Initializes a previously allocated #GtkCList widget for use. This should not
1834 normally be used to create a #GtkCList widget. Use gtk_clist_new() instead.
1837 @clist: A pointer to an uninitialized #GtkCList widget.
1838 @columns: The number of columns the #GtkCList should have.
1839 @titles: An array of strings that should be used as the titles i
1840 of the columns. There should be enough strings in the array for
1841 the number of columns specified.
1843 <!-- ##### FUNCTION gtk_color_selection_get_old_color ##### -->
1851 <!-- ##### FUNCTION gtk_color_selection_get_use_opacity ##### -->
1859 <!-- ##### FUNCTION gtk_color_selection_get_use_palette ##### -->
1867 <!-- ##### FUNCTION gtk_color_selection_set_old_color ##### -->
1875 <!-- ##### FUNCTION gtk_color_selection_set_opacity ##### -->
1877 Controls whether opacity can be set with the #GtkColorSelection.
1878 If this functionality is enabled, the necessary additional widgets
1879 are added to the #GtkColorSelection and the opacity value can be
1880 retrieved via the fourth value in the color array returned by
1881 the gtk_color_selection_get_color() function.
1884 @colorsel: a #GtkColorSelection.
1885 @use_opacity: a boolean indicating whether the opacity selection
1888 <!-- ##### FUNCTION gtk_color_selection_set_use_opacity ##### -->
1896 <!-- ##### FUNCTION gtk_color_selection_set_use_palette ##### -->
1904 <!-- ##### FUNCTION gtk_container_add_child_arg_type ##### -->
1914 <!-- ##### FUNCTION gtk_container_add_with_args ##### -->
1924 <!-- ##### FUNCTION gtk_container_addv ##### -->
1934 <!-- ##### FUNCTION gtk_container_arg_get ##### -->
1944 <!-- ##### FUNCTION gtk_container_arg_set ##### -->
1954 <!-- ##### FUNCTION gtk_container_child_arg_get_info ##### -->
1964 <!-- ##### FUNCTION gtk_container_child_args_collect ##### -->
1976 <!-- ##### FUNCTION gtk_container_child_getv ##### -->
1986 <!-- ##### FUNCTION gtk_container_child_setv ##### -->
1996 <!-- ##### FUNCTION gtk_container_dequeue_resize_handler ##### -->
2003 <!-- ##### FUNCTION gtk_container_focus ##### -->
2012 <!-- ##### FUNCTION gtk_container_query_child_args ##### -->
2022 <!-- ##### FUNCTION gtk_ctree_construct ##### -->
2024 This function is not usually used by users.
2032 <!-- ##### FUNCTION gtk_drag_dest_handle_event ##### -->
2040 <!-- ##### FUNCTION gtk_drag_source_handle_event ##### -->
2048 <!-- ##### FUNCTION gtk_editable_changed ##### -->
2050 Causes the "changed" signal to be emitted.
2053 @editable: a #GtkEditable widget.
2055 <!-- ##### FUNCTION gtk_editable_claim_selection ##### -->
2057 Claim or disclaim ownership of the PRIMARY X selection.
2060 @editable: a #GtkEditable widget.
2061 @claim: if %TRUE, claim the selection, otherwise, disclaim it.
2062 @time: the timestamp for claiming the selection.
2064 <!-- ##### FUNCTION gtk_font_selection_dialog_set_filter ##### -->
2066 Sets one of the two font filters, to limit the fonts shown.
2069 @fsd: a #GtkFontSelectionDialog.
2070 @filter_type: which of the two font filters to set, either
2071 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
2072 can be changed by the user, but the base filter is permanent.
2073 @font_type: the types of font to be shown. This is a bitwise combination of
2074 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
2075 or #GTK_FONT_ALL to show all three font types.
2076 @foundries: a NULL-terminated array of strings containing foundry names which
2077 will be shown, or NULL to show all foundries.
2078 @weights: a NULL-terminated array of strings containing weight names which
2079 will be shown, or NULL to show all weights.
2080 @slants: a NULL-terminated array of strings containing slant names which
2081 will be shown, or NULL to show all slants.
2082 @setwidths: a NULL-terminated array of strings containing setwidth names which
2083 will be shown, or NULL to show all setwidths.
2084 @spacings: a NULL-terminated array of strings containing spacings which
2085 will be shown, or NULL to show all spacings.
2086 @charsets: a NULL-terminated array of strings containing charset names which
2087 will be shown, or NULL to show all charsets.
2089 <!-- ##### FUNCTION gtk_font_selection_set_filter ##### -->
2091 Sets one of the two font filters, to limit the fonts shown.
2094 @fontsel: a #GtkFontSelection.
2095 @filter_type: which of the two font filters to set, either
2096 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
2097 can be changed by the user, but the base filter is permanent.
2098 @font_type: the types of font to be shown. This is a bitwise combination of
2099 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
2100 or #GTK_FONT_ALL to show all three font types.
2101 @foundries: a NULL-terminated array of strings containing foundry names which
2102 will be shown, or NULL to show all foundries.
2103 @weights: a NULL-terminated array of strings containing weight names which
2104 will be shown, or NULL to show all weights.
2105 @slants: a NULL-terminated array of strings containing slant names which
2106 will be shown, or NULL to show all slants.
2107 @setwidths: a NULL-terminated array of strings containing setwidth names which
2108 will be shown, or NULL to show all setwidths.
2109 @spacings: a NULL-terminated array of strings containing spacings which
2110 will be shown, or NULL to show all spacings.
2111 @charsets: a NULL-terminated array of strings containing charset names which
2112 will be shown, or NULL to show all charsets.
2114 <!-- ##### FUNCTION gtk_identifier_get_type ##### -->
2116 Get the type of GtkIdentifier.
2119 @Returns: GtkType -- the enumerated type of something.
2121 <!-- ##### FUNCTION gtk_image_menu_item_add_image ##### -->
2129 <!-- ##### FUNCTION gtk_image_menu_item_get_type ##### -->
2136 <!-- ##### FUNCTION gtk_item_factory_dump_items ##### -->
2146 <!-- ##### FUNCTION gtk_item_factory_dump_rc ##### -->
2155 <!-- ##### FUNCTION gtk_item_factory_parse_rc ##### -->
2162 <!-- ##### FUNCTION gtk_item_factory_parse_rc_scanner ##### -->
2169 <!-- ##### FUNCTION gtk_item_factory_parse_rc_string ##### -->
2176 <!-- ##### FUNCTION gtk_item_factory_print_func ##### -->
2184 <!-- ##### FUNCTION gtk_label_set_markup_with_accel ##### -->
2193 <!-- ##### FUNCTION gtk_list_store_new_with_types ##### -->
2202 <!-- ##### FUNCTION gtk_list_store_set_cell ##### -->
2212 <!-- ##### FUNCTION gtk_list_store_set_column_type ##### -->
2221 <!-- ##### FUNCTION gtk_list_store_set_n_columns ##### -->
2229 <!-- ##### FUNCTION gtk_menu_ensure_uline_accel_group ##### -->
2237 <!-- ##### FUNCTION gtk_menu_get_uline_accel_group ##### -->
2245 <!-- ##### FUNCTION gtk_menu_item_configure ##### -->
2247 Sets whether the menu item should show a submenu indicator, which is a right
2251 @menu_item: the menu item
2252 @show_toggle_indicator: unused
2253 @show_submenu_indicator: whether to show the arrow or not
2255 <!-- ##### FUNCTION gtk_menu_item_set_placement ##### -->
2257 Specifies the placement of the submenu around the menu item. The placement
2258 is usually #GTK_LEFT_RIGHT for menu items in a popup menu and
2259 #GTK_TOP_BOTTOM in menu bars.
2262 This function is useless in usual applications.
2265 @menu_item: the menu item
2266 @placement: the submenu placement
2268 <!-- ##### FUNCTION gtk_object_arg_get ##### -->
2270 Private function to get an argument and argument info from an object.
2273 @object: the object whose argument should be retrieved.
2274 @arg: the argument, for the name on input, the rest is filled on output.
2275 @info: a #GtkArgInfo structure to optionally fill in.
2277 <!-- ##### FUNCTION gtk_object_arg_get_info ##### -->
2279 Query information about an argument type.
2282 @object_type: type of object to query about.
2283 @arg_name: name of the argument.
2284 @info_p: pointer to be filled in with a pointer to the GtkArgInfo.
2285 @Returns: an error message, or NULL on success.
2286 It is the caller's responsibility to call g_free() in the event of error.
2288 <!-- ##### FUNCTION gtk_object_arg_set ##### -->
2290 Private function to set an argument and argument info to an object.
2293 @object: the object whose argument should be set.
2295 @info: infomation about this type of argument in general.
2297 <!-- ##### FUNCTION gtk_object_args_collect ##### -->
2299 Private: Gets an array of #GtkArgs from a va_list C structure.
2302 @object_type: the type of object to collect arguments for.
2303 @arg_list_p: pointer to be filled in with a list of parsed arguments.
2304 @info_list_p: optional pointer for a returned list #GtkArgInfos.
2305 @first_arg_name: name of first argument.
2306 @var_args: value of first argument, followed by more key/value pairs,
2308 @Returns: an error message, or NULL on success.
2309 It is the caller's responsibility to call g_free() in the event of error.
2311 <!-- ##### FUNCTION gtk_object_class_add_signals ##### -->
2313 Add an array of signals to a #GtkObjectClass.
2314 Usually this is called when registering a new type of object.
2317 @klass: the object class to append signals to.
2318 @signals: the signals to append.
2319 @nsignals: the number of signals being appended.
2321 <!-- ##### FUNCTION gtk_object_class_user_signal_new ##### -->
2323 Define a signal-handler for a new signal on an already defined
2327 See the signal documentation for more general information.
2330 @klass: the object class to define the signal for.
2331 @name: the name of the signal.
2332 @signal_flags: the default emission behavior for the signal.
2333 See gtk_signal_new().
2334 @marshaller: a function that will take an array of GtkArgs
2335 and invoke the appropriate handler with the normal calling
2337 @return_val: specify the return-value type for the signal
2338 (or GTK_TYPE_NONE for no return-value).
2339 @nparams: specify the number of parameters the signal
2340 receives from the caller of gtk_signal_emit().
2341 @Varargs: list of nparams #GtkTypes to pass to the signal handlers.
2342 @Returns: the signal id. (See #GtkSignals)
2344 <!-- ##### FUNCTION gtk_object_class_user_signal_newv ##### -->
2346 Define a signal-handler for a new signal on an already defined
2350 @klass: the object class to define the signal for.
2351 @name: the name of the signal.
2352 @signal_flags: the default emission behavior for the signal.
2353 See gtk_signal_new().
2354 @marshaller: takes a GtkObject, a #GtkSignalFunc, and an array
2355 of arguments, and invokes the function using the appropriate
2356 calling conventions. Usually just select a function
2357 out of gtkmarshal.h.
2358 @return_val: specify the return-value type for the signal (possibly
2360 @nparams: specify the number of parameters the signal
2361 receives from the caller of gtk_signal_emit().
2362 @params: array of #GtkTypes the signal handlers for this signal
2363 should have in their prototype (of length nparams).
2364 @Returns: the signal id. (See #GtkSignals)
2366 <!-- ##### FUNCTION gtk_object_constructed ##### -->
2368 Mark an allocated object as constructed.
2369 This is used for situations
2370 that require precise control of the construction process.
2373 This is done when gtk_object_default_construct() is inadequate.
2374 In #GtkCList the need arises because #GtkCList does construction work that
2375 must happen <emphasis>after</emphasis> its derivers. This work
2376 cannot be done in an initializer function, so an alternate
2377 constructor is mandatory. It calls gtk_object_constructed() to
2378 indicate it has done its job, so that no other constructor will
2382 Normally this function is just automatically run from
2383 gtk_object_default_construct().
2386 @object: object which has been constructed. This is usually
2387 done automatically by gtk_object_new() and gtk_object_newv().
2389 <!-- ##### FUNCTION gtk_object_default_construct ##### -->
2391 This function is called to construct arguments that haven't been initialized
2392 but have the #GTK_ARG_CONSTRUCT flag set.
2395 All number arguments are set to 0. All pointers and strings
2399 Normally invoked by gtk_object_new() automatically; gtk_type_new() can
2400 be used to bypass it.
2403 @object: the object to initialize.
2405 <!-- ##### FUNCTION gtk_object_getv ##### -->
2407 Gets an array of argument values from an object.
2410 @object: the object to get arguments from.
2411 @n_args: the number of arguments to query.
2412 @args: the arguments to fill in.
2414 <!-- ##### FUNCTION gtk_object_newv ##### -->
2416 Construct an object with an array of arguments.
2419 @object_type: the type of the object to create.
2420 @n_args: the number of arguments to set.
2421 @args: an array of n_args arguments (which are name and value pairs).
2422 @Returns: the new GtkObject.
2424 <!-- ##### FUNCTION gtk_object_query_args ##### -->
2426 Get all the arguments that may be used for a given type.
2429 In Java, this type of mechanism is called
2430 <wordasword>introspection</wordasword>. It is used by applications
2431 like Glade, that have to determine what can be done to an object
2435 @class_type: the GtkType of the ObjectClass
2436 (returned from GTK_OBJECT_CLASS(class)->type for example).
2437 @arg_flags: if non-NULL, obtains the #GtkArgFlags that apply to
2438 each argument. You must g_free() this if you request it.
2439 @n_args: the number of arguments is returned in this field.
2440 @Returns: an array of arguments, that you must deallocate with g_free().
2442 <!-- ##### FUNCTION gtk_object_setv ##### -->
2444 Set an array of arguments.
2447 @object: the object whose arguments should be set.
2448 @n_args: the number of arguments to set.
2449 @args: the desired values, as an array of #GtkArgs (which contain
2450 the names, types, and values of the arguments).
2452 <!-- ##### FUNCTION gtk_packer_add ##### -->
2468 <!-- ##### FUNCTION gtk_packer_add_defaults ##### -->
2479 <!-- ##### MACRO gtk_packer_configure ##### -->
2485 <!-- ##### FUNCTION gtk_packer_new ##### -->
2492 <!-- ##### FUNCTION gtk_packer_reorder_child ##### -->
2501 <!-- ##### FUNCTION gtk_packer_set_child_packing ##### -->
2517 <!-- ##### FUNCTION gtk_packer_set_default_border_width ##### -->
2525 <!-- ##### FUNCTION gtk_packer_set_default_ipad ##### -->
2534 <!-- ##### FUNCTION gtk_packer_set_default_pad ##### -->
2543 <!-- ##### FUNCTION gtk_packer_set_spacing ##### -->
2551 <!-- ##### FUNCTION gtk_paned_compute_position ##### -->
2553 Internal function used by #GtkHPaned and #GtkVPaned
2561 <!-- ##### MACRO gtk_paned_handle_size ##### -->
2563 Old name for gtk_paned_set_handle_size().
2567 <!-- ##### FUNCTION gtk_paned_set_handle_size ##### -->
2569 Set the the handle size to @size x @size pixels.
2572 @paned: a paned widget
2573 @size: the size in pixels
2575 <!-- ##### FUNCTION gtk_pattern_match ##### -->
2586 <!-- ##### FUNCTION gtk_pattern_match_simple ##### -->
2595 <!-- ##### FUNCTION gtk_pattern_match_string ##### -->
2604 <!-- ##### FUNCTION gtk_pattern_spec_free_segs ##### -->
2611 <!-- ##### FUNCTION gtk_pattern_spec_init ##### -->
2619 <!-- ##### FUNCTION gtk_rc_init ##### -->
2625 <!-- ##### FUNCTION gtk_rc_load_image ##### -->
2627 Internal function. Loads an image using the current
2631 @colormap: the colormap to use for the image
2632 @transparent_color: the transparent color for the image
2633 @filename: the filename of the image file
2634 @Returns: a #GtkPixmap representing @filename
2636 <!-- ##### FUNCTION gtk_rc_set_image_loader ##### -->
2638 Sets the function that GTK+ will use to load images
2641 @loader: the #GtkImageLoader to use
2643 <!-- ##### FUNCTION gtk_ruler_draw_pos ##### -->
2648 @ruler: the gtkruler
2650 <!-- ##### FUNCTION gtk_ruler_draw_ticks ##### -->
2655 @ruler: the gtkruler
2657 <!-- ##### FUNCTION gtk_selection_clear ##### -->
2666 <!-- ##### FUNCTION gtk_selection_incr_event ##### -->
2675 <!-- ##### FUNCTION gtk_selection_notify ##### -->
2684 <!-- ##### FUNCTION gtk_selection_property_notify ##### -->
2693 <!-- ##### FUNCTION gtk_selection_request ##### -->
2702 <!-- ##### FUNCTION gtk_settings_get_global ##### -->
2709 <!-- ##### FUNCTION gtk_signal_add_emission_hook ##### -->
2711 Add an emission hook for a type of signal, for any object.
2714 @signal_id: the type of signal to hook for.
2715 @hook_func: the function to invoke to handle the emission hook.
2716 @data: the user data passed in to hook_func.
2717 @Returns: the id (that you may pass as a parameter
2718 to gtk_signal_remove_emission_hook()).
2723 <!-- ##### FUNCTION gtk_signal_add_emission_hook_full ##### -->
2725 Add an emission hook for a type of signal, for any object.
2726 (with control of what happens when the hook is
2730 @signal_id: the type of signal add the hook for.
2731 @hook_func: the function to invoke to handle the hook.
2732 @data: the user data passed in to hook_func.
2733 @destroy: a function to invoke when the hook is destroyed,
2734 to clean up any allocation done just for this
2736 @Returns: the id (that you may pass as a parameter
2737 to gtk_signal_remove_emission_hook()).
2739 <!-- ##### FUNCTION gtk_signal_handler_pending_by_id ##### -->
2741 Returns whether a connection id is valid (and optionally not blocked).
2744 @object: the object to search for the desired handler.
2745 @handler_id: the connection id.
2746 @may_be_blocked: whether it is acceptable to return a blocked
2748 @Returns: TRUE if the signal exists and wasn't blocked,
2749 unless #may_be_blocked was specified. FALSE otherwise.
2751 <!-- ##### FUNCTION gtk_signal_handlers_destroy ##### -->
2753 Destroy all the signal handlers connected to an object.
2754 This is done automatically when the object is destroyed.
2757 This function is labeled private.
2760 @object: the object whose signal handlers should be destroyed.
2762 <!-- ##### FUNCTION gtk_signal_init ##### -->
2768 <!-- ##### FUNCTION gtk_signal_n_emissions ##### -->
2770 Find out the recursion depth of emissions for a particular type
2771 of signal and object. (So it will
2772 always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified)
2773 This is a way to avoid recursion: you can see if
2774 you are currently running in that signal handler and emit it only
2777 <para>Another way to look at it is that this number increases
2778 by one when #gtk_signal_emit(), et al, are called,
2779 and decreases by one when #gtk_signal_emit() returns.
2782 @object: the object with the signal handler.
2783 @signal_id: the signal id.
2784 @Returns: the recursion depth of emissions of this signal for this
2787 <!-- ##### FUNCTION gtk_signal_n_emissions_by_name ##### -->
2789 Find out the recursion depth of emissions for a particular type
2790 of signal and object. Just like gtk_signal_n_emissions()
2791 except it will lookup the signal id for you.
2794 @object: the object with the signal handler.
2795 @name: the signal name.
2796 @Returns: the recursion depth of emissions of this signal for this
2799 <!-- ##### FUNCTION gtk_signal_query ##### -->
2801 Obtain information about a signal.
2804 @signal_id: the signal type identifier.
2805 @Returns: a pointer to a GtkSignalQuery structure
2806 which contains all the information, or NULL.
2807 The pointer is allocated just for you: you must g_free() it.
2809 <!-- ##### FUNCTION gtk_signal_remove_emission_hook ##### -->
2811 Delete an emission hook. (see gtk_signal_add_emission_hook())
2814 @signal_id: the id of the signal type.
2815 @hook_id: the id of the emission handler, returned by add_emission_hook().
2819 <!-- ##### FUNCTION gtk_signal_set_funcs ##### -->
2821 These set default functions to call when the user didn't
2822 supply a function when connecting. (These are rarely
2823 used, and probably only for language bindings)
2826 By default, there are no such functions.
2829 @marshal_func: the function to invoke on every handlers for which there
2830 isn't a function pointer. May be NULL.
2831 @destroy_func: the function to invoke when each hook is destroyed.
2834 <!-- ##### FUNCTION gtk_spin_button_set_shadow_type ##### -->
2836 Creates a border around the arrows of a #GtkSpinButton. The type of border is determined by @shadow_type.
2839 @spin_button: a #GtkSpinButton
2840 @shadow_type: the new border type.
2842 <!-- ##### FUNCTION gtk_stock_list_items ##### -->
2849 <!-- ##### FUNCTION gtk_text_buffer_paste_primary ##### -->
2858 <!-- ##### FUNCTION gtk_text_iter_reorder ##### -->
2866 <!-- ##### FUNCTION gtk_text_iter_spew ##### -->
2874 <!-- ##### FUNCTION gtk_text_view_set_text_window_size ##### -->
2883 <!-- ##### FUNCTION gtk_tips_query_get_type ##### -->
2890 <!-- ##### FUNCTION gtk_trace_referencing ##### -->
2892 Private: print debugging information while doing a gtk_object_ref() or
2893 a gtk_object_unref().
2896 @object: object to reference or unreference.
2897 @func: name of caller's function to print (used within macros).
2899 @line: line number (used within macros).
2900 @do_ref: whether to reference or unreference.
2902 <!-- ##### FUNCTION gtk_tree_model_ref_iter ##### -->
2910 <!-- ##### FUNCTION gtk_tree_model_sort_convert_iter ##### -->
2919 <!-- ##### FUNCTION gtk_tree_model_sort_convert_path ##### -->
2929 <!-- ##### FUNCTION gtk_tree_model_sort_new ##### -->
2936 <!-- ##### FUNCTION gtk_tree_model_sort_set_compare ##### -->
2944 <!-- ##### FUNCTION gtk_tree_model_sort_set_model ##### -->
2953 <!-- ##### FUNCTION gtk_tree_model_sort_set_sort_column ##### -->
2961 <!-- ##### FUNCTION gtk_tree_model_unref_iter ##### -->
2969 <!-- ##### FUNCTION gtk_tree_store_new_with_types ##### -->
2978 <!-- ##### FUNCTION gtk_tree_store_set_cell ##### -->
2988 <!-- ##### FUNCTION gtk_tree_store_set_column_type ##### -->
2998 <!-- ##### FUNCTION gtk_tree_store_set_n_columns ##### -->
3006 <!-- ##### FUNCTION gtk_tree_view_column_cell_event ##### -->
3019 <!-- ##### FUNCTION gtk_tree_view_column_set_cell_data ##### -->
3028 <!-- ##### FUNCTION gtk_tree_view_column_set_cell_renderer ##### -->
3036 <!-- ##### FUNCTION gtk_tree_view_column_set_width ##### -->
3045 <!-- ##### FUNCTION gtk_tree_view_set_rows_drag_dest ##### -->
3054 @location_droppable_func:
3057 <!-- ##### FUNCTION gtk_tree_view_set_rows_drag_source ##### -->
3067 @row_draggable_func:
3070 <!-- ##### FUNCTION gtk_type_check_class_cast ##### -->
3072 Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make
3073 sure that it's okay to cast something of that @klass into a @cast_type.
3076 @klass: GtkTypeClass*
3078 @Returns: Always return @klass.
3080 <!-- ##### FUNCTION gtk_type_check_object_cast ##### -->
3082 Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type,
3083 make sure that it's okay to cast @type_object into a @cast_type.
3086 @type_object: GtkTypeObject*
3088 @Returns: the same GtkTypeObject* as @type_object
3090 <!-- ##### FUNCTION gtk_type_children_types ##### -->
3092 Return the pointer to the type's children's types.
3096 @Returns: pointer to a GList
3098 <!-- ##### FUNCTION gtk_type_describe_heritage ##### -->
3100 Print the types @type inherits from.
3105 <!-- ##### FUNCTION gtk_type_describe_tree ##### -->
3107 Given a @type, describe all of its children, and their children. Only
3108 show the size if @show_size is true.
3112 @show_size: gboolean
3114 <!-- ##### FUNCTION gtk_type_free ##### -->
3116 Given the type of an object and a pointer to it, the object is freed.
3120 @mem: gpointer to the object
3122 <!-- ##### FUNCTION gtk_type_get_varargs_type ##### -->
3124 Get the varargs type associated with @foreign_type
3127 @foreign_type: GtkType
3130 <!-- ##### FUNCTION gtk_type_parent_class ##### -->
3132 Return the class of the parent. Initialize the class if necessary.
3133 Return NULL if anything goes wrong.
3137 @Returns: gpointer to the klass.
3139 <!-- ##### FUNCTION gtk_type_query ##### -->
3141 Given a type, return various interesting parameters of the type.
3145 @Returns: GtkTypeQuery*
3147 <!-- ##### FUNCTION gtk_type_register_enum ##### -->
3149 Register a new set of enum @values and give them the name in
3153 @type_name: must not be null.
3154 @values: GtkEnumValue*
3157 <!-- ##### FUNCTION gtk_type_register_flags ##### -->
3159 Register a new set of flags @values and give them the name in
3163 @type_name: must not be null.
3164 @values: GtkFlagValue*
3167 <!-- ##### FUNCTION gtk_type_set_chunk_alloc ##### -->
3169 Set the mem_chunk size so it will hold @n_chunks of the objects of that @type.
3172 @type: There must be an unlocked TypeNode associated with this type otherwise nothing happens.
3175 <!-- ##### FUNCTION gtk_type_set_varargs_type ##### -->
3177 Set the varargs type for a fundamental type @foreign_type.
3180 @foreign_type: Must be a GtkType with a sequence number of zero. Must not be a
3182 @varargs_type: Must be a GtkType which is either structured or flag, or NONE.
3184 <!-- ##### FUNCTION gtk_widget_accelerator_signal ##### -->
3195 <!-- ##### FUNCTION gtk_widget_accelerators_locked ##### -->
3203 <!-- ##### FUNCTION gtk_widget_activate_mnemonic ##### -->
3212 <!-- ##### FUNCTION gtk_widget_get_usize ##### -->
3221 <!-- ##### FUNCTION gtk_widget_lock_accelerators ##### -->
3228 <!-- ##### FUNCTION gtk_widget_pop_style ##### -->
3234 <!-- ##### FUNCTION gtk_widget_popup ##### -->
3243 <!-- ##### FUNCTION gtk_widget_push_style ##### -->
3250 <!-- ##### FUNCTION gtk_widget_remove_accelerators ##### -->
3259 <!-- ##### FUNCTION gtk_widget_set_default_style ##### -->
3266 <!-- ##### FUNCTION gtk_widget_unlock_accelerators ##### -->
3273 <!-- ##### FUNCTION gtk_window_activate_mnemonic ##### -->
3283 <!-- ##### FUNCTION gtk_window_get_default_accel_group ##### -->
3291 <!-- ##### FUNCTION gtk_window_get_resizeable ##### -->
3299 <!-- ##### FUNCTION gtk_window_set_decorations_hint ##### -->
3307 <!-- ##### FUNCTION gtk_window_set_functions_hint ##### -->
3315 <!-- ##### FUNCTION gtk_window_set_resizeable ##### -->