1 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:Title ##### -->
5 <!-- ##### SIGNAL GtkEditable::cut-clipboard ##### -->
7 An action signal. Causes the characters in the current
8 selection to be copied to the clipboard and then deleted from
12 @editable: the object which received the signal.
14 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:Short_Description ##### -->
18 <!-- ##### MACRO gtk_marshal_NONE__BOXED ##### -->
24 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Long_Description ##### -->
26 <title>What are Signal Marshallers?</title>
28 Marshals are functions which all have the same prototype:
29 they take a #GtkObject, a #GtkSignalFunc, a #gpointer,
30 and an array of argument values.
31 The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2....
34 They then call a native function: the GtkObject is the first
35 parameter passed in. The arguments are passed in the native
36 calling convention: chars, shorts, ints, longs may be packed
37 on the stack, or tucked in registers: it doesn't matter
38 because the same calling convention will be generated
39 inside the gtkmarshal code as is expected where you define
43 So the function named:
45 gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*);
47 will call the #GtkSignalFunc assuming it was a function with signature:
49 gboolean sigfunc(gpointer,gint,gint,guint);
54 <title>Writing Custom Marshals</title>
56 Marshals are primarily used as arguments to gtk_signal_new().
57 Sometimes, you may find that a marshaller you need isn't available
58 in the standard list. Then you have to write your own.
61 If you wish to define a signal with a new type of argument list.
62 Suppose you want 2 pointers and 2 integers.
65 typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)(
66 gpointer, gpointer, gint, gint
69 void marshal_INT__POINTER_POINTER_INT_INT(GtkObject* object,
74 GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc;
76 return_val = GTK_RETLOC_INT(args[4]);
77 rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func;
78 *return_val = (*rfunc)(object,
79 GTK_VALUE_POINTER(args[0]),
80 GTK_VALUE_POINTER(args[1]),
81 GTK_VALUE_INT(args[2]),
82 GTK_VALUE_INT(args[3]),
90 <!-- ##### SECTION ./tmpl/gtkmenufactory.sgml:Short_Description ##### -->
94 <!-- ##### MACRO gtk_marshal_NONE__UINT_STRING ##### -->
100 <!-- ##### MACRO GTK_PRIVATE_UNSET_FLAG ##### -->
108 <!-- ##### MACRO GTK_WIDGET_REDRAW_PENDING ##### -->
115 <!-- ##### FUNCTION gtk_icon_factory_get_type ##### -->
122 <!-- ##### FUNCTION gtk_theme_engine_create_rc_style ##### -->
130 <!-- ##### MACRO gtk_marshal_NONE__ENUM_FLOAT ##### -->
136 <!-- ##### FUNCTION gtk_tree_store_new_with_values ##### -->
145 <!-- ##### SIGNAL GtkTextView::insert ##### -->
150 @textview: the object which received the signal.
153 <!-- ##### MACRO gtk_widget_set_default_visual ##### -->
161 <!-- ##### FUNCTION gtk_window_set_focus ##### -->
169 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:See_Also ##### -->
175 <!-- ##### ARG GtkTextTag:font_set ##### -->
181 <!-- ##### MACRO gtk_marshal_NONE__POINTER_UINT_ENUM ##### -->
187 <!-- ##### ARG GtkEditable:editable ##### -->
189 A boolean indicating whether the widget is editable by
194 <!-- ##### SECTION ./tmpl/gtkmenufactory.sgml:See_Also ##### -->
200 <!-- ##### FUNCTION gtk_font_selection_set_filter ##### -->
202 Sets one of the two font filters, to limit the fonts shown.
205 @fontsel: a #GtkFontSelection.
206 @filter_type: which of the two font filters to set, either
207 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
208 can be changed by the user, but the base filter is permanent.
209 @font_type: the types of font to be shown. This is a bitwise combination of
210 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
211 or #GTK_FONT_ALL to show all three font types.
212 @foundries: a NULL-terminated array of strings containing foundry names which
213 will be shown, or NULL to show all foundries.
214 @weights: a NULL-terminated array of strings containing weight names which
215 will be shown, or NULL to show all weights.
216 @slants: a NULL-terminated array of strings containing slant names which
217 will be shown, or NULL to show all slants.
218 @setwidths: a NULL-terminated array of strings containing setwidth names which
219 will be shown, or NULL to show all setwidths.
220 @spacings: a NULL-terminated array of strings containing spacings which
221 will be shown, or NULL to show all spacings.
222 @charsets: a NULL-terminated array of strings containing charset names which
223 will be shown, or NULL to show all charsets.
225 <!-- ##### FUNCTION gtk_container_unregister_toplevel ##### -->
232 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Title ##### -->
236 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Long_Description ##### -->
242 <!-- ##### STRUCT GtkTypeQuery ##### -->
244 A structure used to return values from @gtk_type_query.
252 <!-- ##### FUNCTION gtk_text_buffer_get_clipboard_contents ##### -->
260 <!-- ##### MACRO gtk_widget_pop_visual ##### -->
267 <!-- ##### FUNCTION gtk_marshal_NONE__C_CALLBACK ##### -->
277 <!-- ##### USER_FUNCTION GtkSignalMarshal ##### -->
279 This is currently a hack left in for a scheme wrapper library.
286 @object: The object which emits the signal.
287 @data: The user data associated with the hook.
288 @nparams: The number of parameters to the function.
289 @args: The actual values of the arguments.
290 @arg_types: The types of the arguments.
291 @return_type: The type of the return value from the function
292 or #GTK_TYPE_NONE for no return value.
294 <!-- ##### FUNCTION gtk_signal_add_emission_hook_full ##### -->
296 Add an emission hook for a type of signal, for any object.
297 (with control of what happens when the hook is
301 @signal_id: the type of signal add the hook for.
302 @hook_func: the function to invoke to handle the hook.
303 @data: the user data passed in to hook_func.
304 @destroy: a function to invoke when the hook is destroyed,
305 to clean up any allocation done just for this
307 @Returns: the id (that you may pass as a parameter
308 to gtk_signal_remove_emission_hook()).
310 <!-- ##### FUNCTION gtk_text_buffer_paste_primary_selection ##### -->
321 <!-- ##### FUNCTION gtk_marshal_BOOL__POINTER_INT_INT ##### -->
331 <!-- ##### SIGNAL GtkTextView::copy-text ##### -->
336 @textview: the object which received the signal.
338 <!-- ##### FUNCTION gtk_text_view_get_iter_at_pixel ##### -->
348 <!-- ##### STRUCT GtkThemeEngine ##### -->
354 <!-- ##### FUNCTION gtk_text_buffer_get_tags ##### -->
363 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Short_Description ##### -->
367 <!-- ##### FUNCTION gtk_identifier_get_type ##### -->
369 Get the type of GtkIdentifier.
372 @Returns: GtkType -- the enumerated type of something.
374 <!-- ##### FUNCTION gtk_theme_engine_get ##### -->
382 <!-- ##### MACRO gtk_marshal_BOOL__POINTER_INT_INT_UINT ##### -->
388 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_POINTER ##### -->
398 <!-- ##### FUNCTION gtk_theme_engine_ref ##### -->
405 <!-- ##### FUNCTION gtk_marshal_NONE__INT_INT ##### -->
415 <!-- ##### FUNCTION gtk_marshal_NONE__NONE ##### -->
425 <!-- ##### FUNCTION gtk_text_mark_deleted ##### -->
433 <!-- ##### MACRO gtk_marshal_BOOL__POINTER_STRING_STRING_POINTER ##### -->
439 <!-- ##### SIGNAL GtkEditable::set-editable ##### -->
441 Determines if the user can edit the text in the editable
442 widget or not. This is meant to be overriden by
443 child classes and should not generally useful to
447 @editable: the object which received the signal.
448 @is_editable: %TRUE if the user is allowed to edit the text
451 <!-- ##### SIGNAL GtkEditable::delete-text ##### -->
453 This signal is emitted when text is deleted from
454 the widget by the user. The default handler for
455 this signal will normally be responsible for inserting
456 the text, so by connecting to this signal and then
457 stopping the signal with gtk_signal_emit_stop(), it
458 is possible to modify the inserted text, or prevent
459 it from being inserted entirely. The @start_pos
460 and @end_pos parameters are interpreted as for
461 gtk_editable_delete_text()
464 @editable: the object which received the signal.
465 @start_pos: the starting position.
466 @end_pos: the end position.
468 <!-- ##### FUNCTION gtk_ruler_draw_ticks ##### -->
475 <!-- ##### SIGNAL GtkEditable::kill-line ##### -->
477 An action signal. Delete a single line.
480 @editable: the object which received the signal.
481 @direction: the direction in which to delete. Positive
482 indicates forward deletion, negative, backwards deletion.
484 <!-- ##### FUNCTION gtk_themes_init ##### -->
492 <!-- ##### FUNCTION gtk_type_register_enum ##### -->
494 Register a new set of enum @values and give them the name in
498 @type_name: must not be null.
499 @values: GtkEnumValue*
502 <!-- ##### SECTION ./tmpl/gtkmenufactory.sgml:Title ##### -->
506 <!-- ##### VARIABLE gtk_debug_flags ##### -->
512 <!-- ##### MACRO gtk_widget_set_visual ##### -->
522 <!-- ##### MACRO gtk_marshal_NONE__UINT_POINTER_UINT_ENUM_ENUM_POINTER ##### -->
528 <!-- ##### MACRO GTK_TYPE_SEQNO ##### -->
530 Convert a gtk type into its sequence number
535 <!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:See_Also ##### -->
541 <!-- ##### ENUM GtkMenuFactoryType ##### -->
546 @GTK_MENU_FACTORY_MENU:
547 @GTK_MENU_FACTORY_MENU_BAR:
548 @GTK_MENU_FACTORY_OPTION_MENU:
550 <!-- ##### MACRO gtk_marshal_NONE__STRING ##### -->
556 <!-- ##### MACRO gtk_marshal_NONE__POINTER_POINTER_UINT_UINT ##### -->
562 <!-- ##### MACRO GTK_WIDGET_IS_OFFSCREEN ##### -->
569 <!-- ##### MACRO GTK_MAX_COMPOSE_LEN ##### -->
575 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Short_Description ##### -->
579 <!-- ##### SIGNAL GtkTextView::cut-text ##### -->
584 @textview: the object which received the signal.
586 <!-- ##### FUNCTION gtk_theme_engine_unref ##### -->
593 <!-- ##### STRUCT GtkDialogButton ##### -->
599 <!-- ##### FUNCTION gtk_marshal_BOOL__POINTER ##### -->
609 <!-- ##### ARG GtkTextTag:overstrike_set ##### -->
615 <!-- ##### FUNCTION gtk_text_buffer_cut ##### -->
625 <!-- ##### SIGNAL GtkEditable::activate ##### -->
627 Indicates that the user has activated the widget
628 in some fashion. Generally, this will be done
629 with a keystroke. (The default binding for this
630 action is Return for #GtkEntry and
631 Control-Return for #GtkText.)
634 @editable: the object which received the signal.
636 <!-- ##### ENUM GtkTextViewMovementStep ##### -->
641 @GTK_TEXT_MOVEMENT_CHAR:
642 @GTK_TEXT_MOVEMENT_POSITIONS:
643 @GTK_TEXT_MOVEMENT_WORD:
644 @GTK_TEXT_MOVEMENT_WRAPPED_LINE:
645 @GTK_TEXT_MOVEMENT_LINE:
646 @GTK_TEXT_MOVEMENT_LINE_ENDS:
647 @GTK_TEXT_MOVEMENT_BUFFER_ENDS:
649 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_POINTER_INT_INT ##### -->
659 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:See_Also ##### -->
665 <!-- ##### MACRO GTK_CONTAINER_RESIZE_PENDING ##### -->
672 <!-- ##### SIGNAL GtkEditable::copy-clipboard ##### -->
674 An action signal. Causes the characters in the current selection to
675 be copied to the clipboard.
678 @editable: the object which received the signal.
680 <!-- ##### FUNCTION gtk_menu_factory_remove_entries ##### -->
689 <!-- ##### FUNCTION gtk_text_buffer_find_string ##### -->
701 <!-- ##### FUNCTION gtk_marshal_NONE__INT_POINTER_INT_INT_INT_POINTER ##### -->
711 <!-- ##### FUNCTION gtk_marshal_INT__INT ##### -->
721 <!-- ##### FUNCTION gtk_marshal_NONE__INT_FLOAT_BOOL ##### -->
731 <!-- ##### FUNCTION gtk_paned_compute_position ##### -->
733 Internal function used by #GtkHPaned and #GtkVPaned
741 <!-- ##### MACRO gtk_marshal_NONE__POINTER_STRING_STRING ##### -->
747 <!-- ##### FUNCTION gtk_trace_referencing ##### -->
749 Private: print debugging information while doing a gtk_object_ref() or
750 a gtk_object_unref().
753 @object: object to reference or unreference.
754 @func: name of caller's function to print (used within macros).
756 @line: line number (used within macros).
757 @do_ref: whether to reference or unreference.
759 <!-- ##### MACRO GTK_VALUE_CALLBACK ##### -->
761 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK
766 <!-- ##### MACRO gtk_marshal_NONE__ENUM_FLOAT_BOOL ##### -->
772 <!-- ##### ENUM GtkFontType ##### -->
774 A set of bit flags used to specify the type of fonts shown
775 when calling gtk_font_selection_dialog_set_filter() or
776 gtk_font_selection_set_filter().
779 @GTK_FONT_BITMAP: bitmap fonts.
780 @GTK_FONT_SCALABLE: scalable fonts.
781 @GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts.
782 @GTK_FONT_ALL: a bitwise combination of all of the above.
784 <!-- ##### MACRO GTK_TYPE_STRUCTURED_LAST ##### -->
786 The last structured enumerated type value.
790 <!-- ##### MACRO GTK_OBJECT_NSIGNALS ##### -->
792 Get the number of signals defined by this object.
795 @obj: the object to query.
797 <!-- ##### FUNCTION gtk_menu_factory_remove_subfactory ##### -->
806 <!-- ##### FUNCTION gtk_type_children_types ##### -->
808 Return the pointer to the type's children's types.
812 @Returns: pointer to a GList
814 <!-- ##### SIGNAL GtkEditable::move-page ##### -->
816 An action signal. Move the cursor by pages.
819 @editable: the object which received the signal.
820 @x: Number of pages to move the cursor horizontally.
821 @y: Number of pages to move the cursor vertically.
823 <!-- ##### FUNCTION gtk_type_register_flags ##### -->
825 Register a new set of flags @values and give them the name in
829 @type_name: must not be null.
830 @values: GtkFlagValue*
833 <!-- ##### SIGNAL GtkTextView::scroll-text ##### -->
838 @textview: the object which received the signal.
841 <!-- ##### ENUM GtkPrivateFlags ##### -->
846 @PRIVATE_GTK_USER_STYLE:
847 @PRIVATE_GTK_RESIZE_PENDING:
848 @PRIVATE_GTK_RESIZE_NEEDED:
849 @PRIVATE_GTK_LEAVE_PENDING:
850 @PRIVATE_GTK_HAS_SHAPE_MASK:
851 @PRIVATE_GTK_IN_REPARENT:
852 @PRIVATE_GTK_DIRECTION_SET:
853 @PRIVATE_GTK_DIRECTION_LTR:
855 <!-- ##### FUNCTION gtk_type_set_chunk_alloc ##### -->
857 Set the mem_chunk size so it will hold @n_chunks of the objects of that @type.
860 @type: There must be an unlocked TypeNode associated with this type otherwise nothing happens.
863 <!-- ##### MACRO GTK_TYPE_STRUCTURED_FIRST ##### -->
865 The first structured enumerated type value.
869 <!-- ##### STRUCT GtkSignalQuery ##### -->
871 This structure contains all the information about a particular
872 signal: its name, the type it affects, the signature of the handlers,
873 and its unique identifying integer.
885 <!-- ##### FUNCTION gtk_type_describe_tree ##### -->
887 Given a @type, describe all of its children, and their children. Only
888 show the size if @show_size is true.
894 <!-- ##### FUNCTION gtk_text_mark_is_visible ##### -->
902 <!-- ##### FUNCTION gtk_marshal_BOOL__POINTER_INT_INT_INT ##### -->
912 <!-- ##### SIGNAL GtkEditable::kill-char ##### -->
914 An action signal. Delete a single character.
917 @editable: the object which received the signal.
918 @direction: the direction in which to delete. Positive
919 indicates forward deletion, negative, backwards deletion.
921 <!-- ##### SECTION ./tmpl/gtkdebug.sgml:Long_Description ##### -->
927 <!-- ##### FUNCTION gtk_window_remove_embedded_xid ##### -->
935 <!-- ##### FUNCTION gtk_marshal_NONE__INT_FLOAT ##### -->
945 <!-- ##### FUNCTION gtk_text_iter_get_pixmap ##### -->
955 <!-- ##### SIGNAL GtkEditable::kill-word ##### -->
957 An action signal. Delete a single word.
960 @editable: the object which received the signal.
961 @direction: the direction in which to delete. Positive
962 indicates forward deletion, negative, backwards deletion.
964 <!-- ##### FUNCTION gtk_im_context_simple_add_table ##### -->
974 <!-- ##### MACRO gtk_marshal_NONE__POINTER_UINT_UINT ##### -->
980 <!-- ##### FUNCTION gtk_font_selection_dialog_set_filter ##### -->
982 Sets one of the two font filters, to limit the fonts shown.
985 @fsd: a #GtkFontSelectionDialog.
986 @filter_type: which of the two font filters to set, either
987 #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter
988 can be changed by the user, but the base filter is permanent.
989 @font_type: the types of font to be shown. This is a bitwise combination of
990 #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP,
991 or #GTK_FONT_ALL to show all three font types.
992 @foundries: a NULL-terminated array of strings containing foundry names which
993 will be shown, or NULL to show all foundries.
994 @weights: a NULL-terminated array of strings containing weight names which
995 will be shown, or NULL to show all weights.
996 @slants: a NULL-terminated array of strings containing slant names which
997 will be shown, or NULL to show all slants.
998 @setwidths: a NULL-terminated array of strings containing setwidth names which
999 will be shown, or NULL to show all setwidths.
1000 @spacings: a NULL-terminated array of strings containing spacings which
1001 will be shown, or NULL to show all spacings.
1002 @charsets: a NULL-terminated array of strings containing charset names which
1003 will be shown, or NULL to show all charsets.
1005 <!-- ##### SIGNAL GtkTextView::delete-text ##### -->
1010 @textview: the object which received the signal.
1014 <!-- ##### FUNCTION gtk_container_get_toplevels ##### -->
1021 <!-- ##### ARG GtkTextTag:offset_set ##### -->
1027 <!-- ##### MACRO GTK_TYPE_NUM_BUILTINS ##### -->
1033 <!-- ##### MACRO GTK_TYPE_MAKE ##### -->
1035 Combine a fundemantal type and a sequence number to create a gtk type.
1041 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Short_Description ##### -->
1042 Functions to adapt C structures to native calling convention.
1045 <!-- ##### MACRO GTK_TYPE_FLAT_LAST ##### -->
1047 The last "flat" (no struct) enumerated type value.
1051 <!-- ##### FUNCTION gtk_text_mark_unref ##### -->
1058 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER ##### -->
1068 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_INT_POINTER ##### -->
1078 <!-- ##### FUNCTION gtk_signal_handlers_destroy ##### -->
1080 Destroy all the signal handlers connected to an object.
1081 This is done automatically when the object is destroyed.
1084 This function is labeled private.
1087 @object: the object whose signal handlers should be destroyed.
1089 <!-- ##### ARG GtkTextTag:left_wrapped_line_margin ##### -->
1091 Pixel width of the left margin of the text for lines after the first
1092 line in a wrapped paragraph.
1096 <!-- ##### FUNCTION gtk_text_iter_in_region ##### -->
1106 <!-- ##### FUNCTION gtk_type_get_varargs_type ##### -->
1108 Get the varargs type associated with @foreign_type
1111 @foreign_type: GtkType
1114 <!-- ##### SIGNAL GtkEditable::changed ##### -->
1116 Indicates that the user has changed the contents
1120 @editable: the object which received the signal.
1122 <!-- ##### STRUCT GtkMenuFactory ##### -->
1133 <!-- ##### SIGNAL GtkTextView::delete-at-cursor ##### -->
1138 @textview: the object which received the signal.
1142 <!-- ##### MACRO GTK_VALUE_FOREIGN ##### -->
1144 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN
1149 <!-- ##### SIGNAL GtkTextView::paste-text ##### -->
1154 @textview: the object which received the signal.
1156 <!-- ##### MACRO GTK_PRIVATE_SET_FLAG ##### -->
1164 <!-- ##### FUNCTION gtk_ruler_draw_pos ##### -->
1169 @ruler: the gtkruler
1171 <!-- ##### MACRO GTK_WIDGET_USER_STYLE ##### -->
1178 <!-- ##### ENUM GtkDebugFlag ##### -->
1187 @GTK_DEBUG_PLUGSOCKET:
1189 <!-- ##### FUNCTION gtk_menu_factory_remove_paths ##### -->
1198 <!-- ##### FUNCTION gtk_type_query ##### -->
1200 Given a type, return various interesting parameters of the type.
1204 @Returns: GtkTypeQuery*
1206 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Long_Description ##### -->
1212 <!-- ##### MACRO GTK_TYPE_IDENTIFIER ##### -->
1214 Hide the name of gtk_identifier_get_type
1218 <!-- ##### FUNCTION gtk_marshal_NONE__INT_POINTER_INT_INT_INT ##### -->
1228 <!-- ##### MACRO gtk_marshal_NONE__ENUM ##### -->
1234 <!-- ##### FUNCTION gtk_signal_handler_pending_by_id ##### -->
1236 Returns whether a connection id is valid (and optionally not blocked).
1239 @object: the object to search for the desired handler.
1240 @handler_id: the connection id.
1241 @may_be_blocked: whether it is acceptable to return a blocked
1243 @Returns: TRUE if the signal exists and wasn't blocked,
1244 unless #may_be_blocked was specified. FALSE otherwise.
1246 <!-- ##### MACRO GTK_PRIVATE_FLAGS ##### -->
1253 <!-- ##### FUNCTION gtk_marshal_BOOL__NONE ##### -->
1263 <!-- ##### FUNCTION gtk_type_free ##### -->
1265 Given the type of an object and a pointer to it, the object is freed.
1269 @mem: gpointer to the object
1271 <!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:Short_Description ##### -->
1275 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_POINTER_POINTER ##### -->
1285 <!-- ##### STRUCT GtkMenuPath ##### -->
1293 <!-- ##### MACRO gtk_marshal_NONE__POINTER_UINT ##### -->
1299 <!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### -->
1303 <!-- ##### FUNCTION gtk_theme_engine_register_type ##### -->
1314 <!-- ##### FUNCTION gtk_menu_factory_find ##### -->
1323 <!-- ##### STRUCT GtkMenuEntry ##### -->
1334 <!-- ##### SIGNAL GtkEditable::paste-clipboard ##### -->
1336 An action signal. Causes the contents of the clipboard to
1337 be pasted into the editable widget at the current cursor
1341 @editable: the object which received the signal.
1343 <!-- ##### FUNCTION gtk_window_add_embedded_xid ##### -->
1351 <!-- ##### FUNCTION gtk_marshal_NONE__BOOL ##### -->
1361 <!-- ##### FUNCTION gtk_color_selection_set_opacity ##### -->
1363 Controls whether opacity can be set with the #GtkColorSelection.
1364 If this functionality is enabled, the necessary additional widgets
1365 are added to the #GtkColorSelection and the opacity value can be
1366 retrieved via the fourth value in the color array returned by
1367 the gtk_color_selection_get_color() function.
1370 @colorsel: a #GtkColorSelection.
1371 @use_opacity: a boolean indicating whether the opacity selection
1374 <!-- ##### FUNCTION gtk_marshal_INT__POINTER ##### -->
1384 <!-- ##### SECTION ./tmpl/gtkmarshal.sgml:See_Also ##### -->
1389 <term>#GtkSignal</term>
1390 <listitem><para>The signal handling functions (of which marshallers are
1391 really an implementation detail).</para></listitem>
1398 <!-- ##### SIGNAL GtkEditable::move-word ##### -->
1400 An action signal. Move the cursor by words.
1403 @editable: the object which received the signal.
1404 @num_words: The number of words to move the
1405 cursor. (Can be negative).
1407 <!-- ##### STRUCT GtkTreeViewPrivate ##### -->
1416 @button_pressed_node:
1417 @button_pressed_tree:
1439 <!-- ##### MACRO GTK_WIDGET_RESIZE_NEEDED ##### -->
1446 <!-- ##### MACRO GTK_NOTE ##### -->
1454 <!-- ##### ENUM GtkTextViewDeleteType ##### -->
1459 @GTK_TEXT_DELETE_CHAR:
1460 @GTK_TEXT_DELETE_HALF_WORD:
1461 @GTK_TEXT_DELETE_WHOLE_WORD:
1462 @GTK_TEXT_DELETE_HALF_WRAPPED_LINE:
1463 @GTK_TEXT_DELETE_WHOLE_WRAPPED_LINE:
1464 @GTK_TEXT_DELETE_HALF_LINE:
1465 @GTK_TEXT_DELETE_WHOLE_LINE:
1466 @GTK_TEXT_DELETE_WHITESPACE:
1467 @GTK_TEXT_DELETE_WHITESPACE_LEAVE_ONE:
1469 <!-- ##### STRUCT GtkIMContextSimple ##### -->
1478 @tentative_match_len:
1480 <!-- ##### MACRO GTK_TYPE_FLAT_FIRST ##### -->
1482 The first "flat" (no struct) enumerated type value.
1486 <!-- ##### FUNCTION gtk_menu_factory_new ##### -->
1494 <!-- ##### MACRO gtk_marshal_NONE__UINT_POINTER_UINT_UINT_ENUM ##### -->
1500 <!-- ##### FUNCTION gtk_text_buffer_spew ##### -->
1507 <!-- ##### STRUCT GtkTextTabArray ##### -->
1513 <!-- ##### ARG GtkTextTag:overstrike ##### -->
1519 <!-- ##### MACRO GTK_TREE_SELECTION ##### -->
1521 A macro that returns a GList that contains the selection of the root tree of @obj.
1524 @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.
1526 <!-- ##### FUNCTION gtk_editable_changed ##### -->
1528 Causes the "changed" signal to be emitted.
1531 @editable: a #GtkEditable widget.
1533 <!-- ##### SIGNAL GtkTextView::move ##### -->
1538 @textview: the object which received the signal.
1543 <!-- ##### MACRO GTK_WIDGET_HAS_SHAPE_MASK ##### -->
1550 <!-- ##### FUNCTION gtk_text_buffer_copy ##### -->
1558 <!-- ##### FUNCTION gtk_text_mark_ref ##### -->
1566 <!-- ##### ARG GtkTextTag:offset ##### -->
1568 Pixels to offset the text horizontally or vertically, useful to
1569 produce superscript and subscript.
1573 <!-- ##### SIGNAL GtkEditable::insert-text ##### -->
1575 This signal is emitted when text is inserted into
1576 the widget by the user. The default handler for
1577 this signal will normally be responsible for inserting
1578 the text, so by connecting to this signal and then
1579 stopping the signal with gtk_signal_emit_stop(), it
1580 is possible to modify the inserted text, or prevent
1581 it from being inserted entirely.
1584 @editable: the object which received the signal.
1585 @new_text: the new text to insert.
1586 @new_text_length: the length of the new text.
1587 @position: the position at which to insert the new text.
1588 this is an in-out paramter. After the signal
1589 emission is finished, it should point after
1590 the newly inserted text.
1592 <!-- ##### FUNCTION gtk_editable_claim_selection ##### -->
1594 Claim or disclaim ownership of the PRIMARY X selection.
1597 @editable: a #GtkEditable widget.
1598 @claim: if %TRUE, claim the selection, otherwise, disclaim it.
1599 @time: the timestamp for claiming the selection.
1601 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_INT ##### -->
1611 <!-- ##### MACRO GTK_OBJECT_SIGNALS ##### -->
1613 Get the array of signals defined for this object.
1616 @obj: the object to fetch the signals from.
1618 <!-- ##### SIGNAL GtkEditable::move-to-column ##### -->
1620 An action signal. Move the cursor to the given column.
1623 @editable: the object which received the signal.
1624 @column: the column to move to. (A negative value indicates
1627 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Title ##### -->
1631 <!-- ##### FUNCTION gtk_marshal_NONE__INT_INT_POINTER ##### -->
1641 <!-- ##### USER_FUNCTION GtkMenuCallback ##### -->
1649 <!-- ##### FUNCTION gtk_type_check_object_cast ##### -->
1651 Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type,
1652 make sure that it's okay to cast @type_object into a @cast_type.
1655 @type_object: GtkTypeObject*
1657 @Returns: the same GtkTypeObject* as @type_object
1659 <!-- ##### FUNCTION gtk_themes_exit ##### -->
1666 <!-- ##### FUNCTION gtk_marshal_BOOL__POINTER_POINTER_POINTER_POINTER ##### -->
1676 <!-- ##### ARG GtkEditable:text_position ##### -->
1678 The position of the cursor.
1682 <!-- ##### MACRO gtk_marshal_NONE__OBJECT ##### -->
1688 <!-- ##### SECTION ./tmpl/gtkmenufactory.sgml:Long_Description ##### -->
1694 <!-- ##### FUNCTION gtk_type_set_varargs_type ##### -->
1696 Set the varargs type for a fundamental type @foreign_type.
1699 @foreign_type: Must be a GtkType with a sequence number of zero. Must not be a
1701 @varargs_type: Must be a GtkType which is either structured or flag, or NONE.
1703 <!-- ##### FUNCTION gtk_type_check_class_cast ##### -->
1705 Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make
1706 sure that it's okay to cast something of that @klass into a @cast_type.
1709 @klass: GtkTypeClass*
1711 @Returns: Always return @klass.
1713 <!-- ##### FUNCTION gtk_menu_factory_destroy ##### -->
1720 <!-- ##### FUNCTION gtk_signal_n_emissions ##### -->
1722 Find out the recursion depth of emissions for a particular type
1723 of signal and object. (So it will
1724 always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified)
1725 This is a way to avoid recursion: you can see if
1726 you are currently running in that signal handler and emit it only
1729 <para>Another way to look at it is that this number increases
1730 by one when #gtk_signal_emit(), et al, are called,
1731 and decreases by one when #gtk_signal_emit() returns.
1734 @object: the object with the signal handler.
1735 @signal_id: the signal id.
1736 @Returns: the recursion depth of emissions of this signal for this
1739 <!-- ##### FUNCTION gtk_text_buffer_insert_pixmap ##### -->
1749 <!-- ##### FUNCTION gtk_marshal_NONE__C_CALLBACK_C_CALLBACK ##### -->
1759 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_INT_INT_POINTER_INT_INT ##### -->
1769 <!-- ##### MACRO GTK_VALUE_ARGS ##### -->
1771 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS
1776 <!-- ##### FUNCTION gtk_menu_factory_add_entries ##### -->
1785 <!-- ##### SIGNAL GtkEditable::move-to-row ##### -->
1787 An action signal. Move the cursor to the given row.
1790 @editable: the object which received the signal.
1791 @row: the row to move to. (A negative value indicates
1794 <!-- ##### FUNCTION gtk_signal_set_funcs ##### -->
1796 These set default functions to call when the user didn't
1797 supply a function when connecting. (These are rarely
1798 used, and probably only for language bindings)
1801 By default, there are no such functions.
1804 @marshal_func: the function to invoke on every handlers for which there
1805 isn't a function pointer. May be NULL.
1806 @destroy_func: the function to invoke when each hook is destroyed.
1809 <!-- ##### FUNCTION gtk_im_context_simple_new ##### -->
1816 <!-- ##### FUNCTION gtk_type_describe_heritage ##### -->
1818 Print the types @type inherits from.
1823 <!-- ##### FUNCTION gtk_text_buffer_set_clipboard_contents ##### -->
1831 <!-- ##### ENUM GtkFontFilterType ##### -->
1833 A set of bit flags used to specify the filter being set
1834 when calling gtk_font_selection_dialog_set_filter() or
1835 gtk_font_selection_set_filter().
1838 @GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user.
1839 @GTK_FONT_FILTER_USER: the user filter, which can be changed from within the
1840 'Filter' page of the #GtkFontSelection widget.
1842 <!-- ##### SIGNAL GtkEditable::move-cursor ##### -->
1844 An action signal. Move the cursor position.
1847 @editable: the object which received the signal.
1848 @x: horizontal distance to move the cursor.
1849 @y: vertical distance to move the cursor.
1851 <!-- ##### FUNCTION gtk_type_parent_class ##### -->
1853 Return the class of the parent. Initialize the class if necessary.
1854 Return NULL if anything goes wrong.
1858 @Returns: gpointer to the klass.
1860 <!-- ##### USER_FUNCTION GtkSignalDestroy ##### -->
1862 A function which you can use to clean up when the
1863 signal handler is destroyed.
1866 For example, if your handler requires a few variables
1867 that you made into a struct and allocated (using g_new()
1868 or something), then you will probably want to free
1869 it as soon as the hook is destroyed. This will
1870 allow you to do that. (For this in particular
1871 it is convenient to pass g_free() as a #GtkSignalDestroy
1875 @data: The user data associated with the hook that is being
1878 <!-- ##### FUNCTION gtk_window_set_default ##### -->
1886 <!-- ##### FUNCTION gtk_marshal_NONE__INT ##### -->
1896 <!-- ##### MACRO GTK_WIDGET_LEAVE_PENDING ##### -->
1903 <!-- ##### MACRO gtk_marshal_NONE__UINT ##### -->
1909 <!-- ##### MACRO GTK_WIDGET_IN_REPARENT ##### -->
1916 <!-- ##### FUNCTION gtk_accel_group_marshal_add ##### -->
1926 <!-- ##### FUNCTION gtk_marshal_INT__POINTER_CHAR_CHAR ##### -->
1936 <!-- ##### FUNCTION gtk_marshal_NONE__POINTER_INT_INT ##### -->
1946 <!-- ##### FUNCTION gtk_accel_group_marshal_remove ##### -->
1956 <!-- ##### MACRO gtk_marshal_NONE__STRING_INT_POINTER ##### -->
1962 <!-- ##### FUNCTION gtk_marshal_NONE__INT_POINTER ##### -->
1972 <!-- ##### FUNCTION gtk_rc_init ##### -->
1978 <!-- ##### FUNCTION gtk_signal_query ##### -->
1980 Obtain information about a signal.
1983 @signal_id: the signal type identifier.
1984 @Returns: a pointer to a GtkSignalQuery structure
1985 which contains all the information, or NULL.
1986 The pointer is allocated just for you: you must g_free() it.
1988 <!-- ##### FUNCTION gtk_signal_n_emissions_by_name ##### -->
1990 Find out the recursion depth of emissions for a particular type
1991 of signal and object. Just like gtk_signal_n_emissions()
1992 except it will lookup the signal id for you.
1995 @object: the object with the signal handler.
1996 @name: the signal name.
1997 @Returns: the recursion depth of emissions of this signal for this
2000 <!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:See_Also ##### -->
2006 <!-- ##### SIGNAL GtkTextView::delete ##### -->
2011 @textview: the object which received the signal.
2015 <!-- ##### FUNCTION gtk_container_register_toplevel ##### -->
2022 <!-- ##### MACRO gtk_widget_push_visual ##### -->
2030 <!-- ##### MACRO gtk_marshal_ENUM__ENUM ##### -->
2036 <!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:Title ##### -->
2040 <!-- ##### MACRO gtk_marshal_NONE__POINTER_INT_INT_POINTER_UINT_UINT ##### -->
2046 <!-- ##### ARG GtkTextTag:left_wrapped_line_margin_set ##### -->
2052 <!-- ##### MACRO GTK_VALUE_C_CALLBACK ##### -->
2054 Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK
2059 <!-- ##### FUNCTION gtk_marshal_BOOL__POINTER_POINTER_INT_INT ##### -->
2069 <!-- ##### SIGNAL GtkTextView::move-insert ##### -->
2074 @textview: the object which received the signal.
2079 <!-- ##### SECTION ./tmpl/gtkimcontextsimple.sgml:Long_Description ##### -->
2085 <!-- ##### FUNCTION gtk_text_buffer_find_regexp ##### -->
2096 <!-- ##### FUNCTION gtk_menu_factory_add_subfactory ##### -->
2105 <!-- ##### ENUM GtkTextViewScrollType ##### -->
2110 @GTK_TEXT_SCROLL_TO_TOP:
2111 @GTK_TEXT_SCROLL_TO_BOTTOM:
2112 @GTK_TEXT_SCROLL_PAGE_DOWN:
2113 @GTK_TEXT_SCROLL_PAGE_UP:
2115 <!-- ##### STRUCT GtkTextBTree ##### -->