Menu Factory @obj: @object: @func: @func_data: @args: @buffer: @override_location: @time: @interactive: @default_editable: @GTK_TEXT_SCROLL_TO_TOP: @GTK_TEXT_SCROLL_TO_BOTTOM: @GTK_TEXT_SCROLL_PAGE_DOWN: @GTK_TEXT_SCROLL_PAGE_UP: @v: @path: @type: @accel_group: @widget: @subfactories: @widget: @selection: @object: @func: @func_data: @args: @buffer: @regexp: @start: @end: @Returns: @buffer: @iter: @str: @start: @end: @Returns: @buffer: @container: @object: @func: @func_data: @args: @object: @func: @func_data: @args: @object: @func: @func_data: @args: A set of bit flags used to specify the type of fonts shown when calling gtk_font_selection_dialog_set_filter() or gtk_font_selection_set_filter(). @GTK_FONT_BITMAP: bitmap fonts. @GTK_FONT_SCALABLE: scalable fonts. @GTK_FONT_SCALABLE_BITMAP: scaled bitmap fonts. @GTK_FONT_ALL: a bitwise combination of all of the above. Combine a fundemantal type and a sequence number to create a gtk type. @parent_t: @seqno: @factory: @path: @Returns: GtkIMContextSimple Internal function used by #GtkHPaned and #GtkVPaned @paned: @allocation: @child1_req: @child2_req: @textview: the object which received the signal. @arg1: @arg2: @arg3: Private: print debugging information while doing a gtk_object_ref() or a gtk_object_unref(). @object: object to reference or unreference. @func: name of caller's function to print (used within macros). @dummy: unused. @line: line number (used within macros). @do_ref: whether to reference or unreference. The first structured enumerated type value. @mark: @Returns: Signal Marshallers @textview: the object which received the signal. @arg1: Private Information @textview: the object which received the signal. @arg1: Add an emission hook for a type of signal, for any object. (with control of what happens when the hook is destroyed). @signal_id: the type of signal add the hook for. @hook_func: the function to invoke to handle the hook. @data: the user data passed in to hook_func. @destroy: a function to invoke when the hook is destroyed, to clean up any allocation done just for this signal handler. @Returns: the id (that you may pass as a parameter to gtk_signal_remove_emission_hook()). @object: @func: @func_data: @args: gtkenums.sgml @object: @func: @func_data: @args: Set the varargs type for a fundamental type @foreign_type. @foreign_type: Must be a GtkType with a sequence number of zero. Must not be a fundamental type. @varargs_type: Must be a GtkType which is either structured or flag, or NONE. @wid: @flag: @Returns: @GTK_MENU_FACTORY_MENU: @GTK_MENU_FACTORY_MENU_BAR: @GTK_MENU_FACTORY_OPTION_MENU: Sets one of the two font filters, to limit the fonts shown. @fontsel: a #GtkFontSelection. @filter_type: which of the two font filters to set, either #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter can be changed by the user, but the base filter is permanent. @font_type: the types of font to be shown. This is a bitwise combination of #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP, or #GTK_FONT_ALL to show all three font types. @foundries: a NULL-terminated array of strings containing foundry names which will be shown, or NULL to show all foundries. @weights: a NULL-terminated array of strings containing weight names which will be shown, or NULL to show all weights. @slants: a NULL-terminated array of strings containing slant names which will be shown, or NULL to show all slants. @setwidths: a NULL-terminated array of strings containing setwidth names which will be shown, or NULL to show all setwidths. @spacings: a NULL-terminated array of strings containing spacings which will be shown, or NULL to show all spacings. @charsets: a NULL-terminated array of strings containing charset names which will be shown, or NULL to show all charsets. @obj: No idea. @textview: the object which received the signal. @object: @func: @func_data: @args: @textview: the object which received the signal. @object: @func: @func_data: @args: @textview: the object which received the signal. @arg1: @arg2: @v: @visual: Hide the name of gtk_identifier_get_type @error_code: A structure used to return values from @gtk_type_query. @type: @type_name: @object_size: @class_size: @object: @func: @func_data: @args: @object: @func: @func_data: @args: @object: @func: @func_data: @args: The first "flat" (no struct) enumerated type value. @object: @func: @func_data: @args: @window: @focus: @wid: @flag: Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK @a: Return the pointer to the type's children's types. @type: GtkType @Returns: pointer to a GList @wid: @factory: @entries: @nentries: @obj: Get the type of GtkIdentifier. @Returns: GtkType -- the enumerated type of something. Given a @type, describe all of its children, and their children. Only show the size if @show_size is true. @type: GtkType @show_size: gboolean @path: @widget: Returns whether a connection id is valid (and optionally not blocked). @object: the object to search for the desired handler. @handler_id: the connection id. @may_be_blocked: whether it is acceptable to return a blocked handler. @Returns: TRUE if the signal exists and wasn't blocked, unless #may_be_blocked was specified. FALSE otherwise. Convert a gtk type into its sequence number @type: Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK @a: @obj: @object: @func: @func_data: @args: Register a new set of enum @values and give them the name in @type_name. @type_name: must not be null. @values: GtkEnumValue* @Returns: @object: @func: @func_data: @args: Sets one of the two font filters, to limit the fonts shown. @fsd: a #GtkFontSelectionDialog. @filter_type: which of the two font filters to set, either #GTK_FONT_FILTER_BASE or #GTK_FONT_FILTER_USER. The user filter can be changed by the user, but the base filter is permanent. @font_type: the types of font to be shown. This is a bitwise combination of #GTK_FONT_BITMAP, #GTK_FONT_SCALABLE and #GTK_FONT_SCALABLE_BITMAP, or #GTK_FONT_ALL to show all three font types. @foundries: a NULL-terminated array of strings containing foundry names which will be shown, or NULL to show all foundries. @weights: a NULL-terminated array of strings containing weight names which will be shown, or NULL to show all weights. @slants: a NULL-terminated array of strings containing slant names which will be shown, or NULL to show all slants. @setwidths: a NULL-terminated array of strings containing setwidth names which will be shown, or NULL to show all setwidths. @spacings: a NULL-terminated array of strings containing spacings which will be shown, or NULL to show all spacings. @charsets: a NULL-terminated array of strings containing charset names which will be shown, or NULL to show all charsets. Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN @a: @v: @visual: @PRIVATE_GTK_USER_STYLE: @PRIVATE_GTK_RESIZE_PENDING: @PRIVATE_GTK_RESIZE_NEEDED: @PRIVATE_GTK_LEAVE_PENDING: @PRIVATE_GTK_HAS_SHAPE_MASK: @PRIVATE_GTK_IN_REPARENT: @PRIVATE_GTK_DIRECTION_SET: @PRIVATE_GTK_DIRECTION_LTR: @mark: Obtain information about a signal. @signal_id: the signal type identifier. @Returns: a pointer to a GtkSignalQuery structure which contains all the information, or NULL. The pointer is allocated just for you: you must g_free() it. @object: @func: @func_data: @args: @mark: @Returns: @buffer: @time: @interactive: @default_editable: Given the type of an object and a pointer to it, the object is freed. @type: GtkType @mem: gpointer to the object @buffer: @time: @object: @func: @func_data: @args: @factory: @paths: @npaths: @factory: The last structured enumerated type value. Print the types @type inherits from. @type: GtkType @selection_data: @str: @Returns: @textview: the object which received the signal. @arg1: @arg2: @Returns: @obj: @object: @func: @func_data: @args: @object: @func: @func_data: @args: @window: @xid: @object: @func: @func_data: @args: Find out the recursion depth of emissions for a particular type of signal and object. (So it will always return 0 or 1 if #GTK_RUN_NO_RECURSE is specified) This is a way to avoid recursion: you can see if you are currently running in that signal handler and emit it only if you are. Another way to look at it is that this number increases by one when #gtk_signal_emit(), et al, are called, and decreases by one when #gtk_signal_emit() returns. @object: the object with the signal handler. @signal_id: the signal id. @Returns: the recursion depth of emissions of this signal for this object. @type: @action: @object: @func: @func_data: @args: Deprecated. Given a type, return various interesting parameters of the type. @type: GtkType @Returns: GtkTypeQuery* @textview: the object which received the signal. Controls whether opacity can be set with the #GtkColorSelection. If this functionality is enabled, the necessary additional widgets are added to the #GtkColorSelection and the opacity value can be retrieved via the fourth value in the color array returned by the gtk_color_selection_get_color() function. @colorsel: a #GtkColorSelection. @use_opacity: a boolean indicating whether the opacity selection is enabled. This is currently a hack left in for a scheme wrapper library. It may be removed. Don't use it. @object: The object which emits the signal. @data: The user data associated with the hook. @nparams: The number of parameters to the function. @args: The actual values of the arguments. @arg_types: The types of the arguments. @return_type: The type of the return value from the function or #GTK_TYPE_NONE for no return value. @obj: Functions to adapt C structures to native calling convention. @object: @func: @func_data: @args: @obj: @object: @func: @func_data: @args: These set default functions to call when the user didn't supply a function when connecting. (These are rarely used, and probably only for language bindings) By default, there are no such functions. @marshal_func: the function to invoke on every handlers for which there isn't a function pointer. May be NULL. @destroy_func: the function to invoke when each hook is destroyed. May be NULL. A function which you can use to clean up when the signal handler is destroyed. For example, if your handler requires a few variables that you made into a struct and allocated (using g_new() or something), then you will probably want to free it as soon as the hook is destroyed. This will allow you to do that. (For this in particular it is convenient to pass g_free() as a #GtkSignalDestroy function). @data: The user data associated with the hook that is being destroyed. Set the mem_chunk size so it will hold @n_chunks of the objects of that @type. @type: There must be an unlocked TypeNode associated with this type otherwise nothing happens. @n_chunks: #GtkSignal The signal handling functions (of which marshallers are really an implementation detail). @buffer: @iter: @pixmap: @mask: @GTK_TEXT_MOVEMENT_CHAR: @GTK_TEXT_MOVEMENT_POSITIONS: @GTK_TEXT_MOVEMENT_WORD: @GTK_TEXT_MOVEMENT_WRAPPED_LINE: @GTK_TEXT_MOVEMENT_LINE: @GTK_TEXT_MOVEMENT_LINE_ENDS: @GTK_TEXT_MOVEMENT_BUFFER_ENDS: @object: @func: @func_data: @args: @object: @func: @func_data: @args: What are Signal Marshallers? Marshals are functions which all have the same prototype: they take a #GtkObject, a #GtkSignalFunc, a #gpointer, and an array of argument values. The functions are names gtk_marshall_RETURNTYPE__PARAMTYPE1_PARAMTYPE2.... They then call a native function: the GtkObject is the first parameter passed in. The arguments are passed in the native calling convention: chars, shorts, ints, longs may be packed on the stack, or tucked in registers: it doesn't matter because the same calling convention will be generated inside the gtkmarshal code as is expected where you define your handlers. So the function named: gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*); will call the #GtkSignalFunc assuming it was a function with signature: gboolean sigfunc(gpointer,gint,gint,guint); Writing Custom Marshals Marshals are primarily used as arguments to gtk_signal_new(). Sometimes, you may find that a marshaller you need isn't available in the standard list. Then you have to write your own. If you wish to define a signal with a new type of argument list. Suppose you want 2 pointers and 2 integers. You would write: typedef int (*GtkSignal_INT__POINTER_POINTER_INT_INT)( gpointer, gpointer, gint, gint ); void marshal_INT__POINTER_POINTER_INT_INT(GtkObject* object, GtkSignalFunc func, gpointer func_data, GtkArg* args) { GtkSignal_NONE__POINTER_POINTER_INT_INT rfunc; gint* return_val; return_val = GTK_RETLOC_INT(args[4]); rfunc = (GtkSignal_INT__POINTER_POINTER_INT_INT)func; *return_val = (*rfunc)(object, GTK_VALUE_POINTER(args[0]), GTK_VALUE_POINTER(args[1]), GTK_VALUE_INT(args[2]), GTK_VALUE_INT(args[3]), func_data); } A set of bit flags used to specify the filter being set when calling gtk_font_selection_dialog_set_filter() or gtk_font_selection_set_filter(). @GTK_FONT_FILTER_BASE: the base filter, which can't be changed by the user. @GTK_FONT_FILTER_USER: the user filter, which can be changed from within the 'Filter' page of the #GtkFontSelection widget. @textview: the object which received the signal. @arg1: @arg2: @arg3: Get the number of signals defined by this object. @obj: the object to query. This structure contains all the information about a particular signal: its name, the type it affects, the signature of the handlers, and its unique identifying integer. @object_type: @signal_id: @signal_name: @is_user_signal: @signal_flags: @return_val: @nparams: @params: @Returns: @GTK_DEBUG_OBJECTS: @GTK_DEBUG_MISC: @GTK_DEBUG_SIGNALS: @GTK_DEBUG_DND: @GTK_DEBUG_PLUGSOCKET: @argc: @argv: @window: @defaultw: Get the varargs type associated with @foreign_type @foreign_type: GtkType @Returns: GtkType @text_view: @iter: @x: @y: Find out the recursion depth of emissions for a particular type of signal and object. Just like gtk_signal_n_emissions() except it will lookup the signal id for you. @object: the object with the signal handler. @name: the signal name. @Returns: the recursion depth of emissions of this signal for this object. @container: Internal function. The last "flat" (no struct) enumerated type value. @window: @xid: @object: @func: @func_data: @args: Register a new set of flags @values and give them the name in @type_name. @type_name: must not be null. @values: GtkFlagValue* @Returns: @textview: the object which received the signal. @arg1: @arg2: @type: @Returns: @w: @v: @widget: @visual: A marshaller that returns void and takes no extra parameters. @buffer: @text: @object: @func: @func_data: @args: Return the class of the parent. Initialize the class if necessary. Return NULL if anything goes wrong. @type: GtkType @Returns: gpointer to the klass. @obj: @GTK_TEXT_DELETE_CHAR: @GTK_TEXT_DELETE_HALF_WORD: @GTK_TEXT_DELETE_WHOLE_WORD: @GTK_TEXT_DELETE_HALF_WRAPPED_LINE: @GTK_TEXT_DELETE_WHOLE_WRAPPED_LINE: @GTK_TEXT_DELETE_HALF_LINE: @GTK_TEXT_DELETE_WHOLE_LINE: @GTK_TEXT_DELETE_WHITESPACE: @GTK_TEXT_DELETE_WHITESPACE_LEAVE_ONE: @buffer: @Returns: @object: @func: @func_data: @args: @object: @func: @func_data: @args: @factory: @entries: @nentries: Given a GtkTypeClass pointer @klass, and a GtkType @cast_type, make sure that it's okay to cast something of that @klass into a @cast_type. @klass: GtkTypeClass* @cast_type: GtkType @Returns: Always return @klass. @selection_data: @Returns: @widget: @user_data: @factory: @subfactory: @path: Debugging Given a pointer to a GtkTypeObject @type_object, and a GtkType @cast_type, make sure that it's okay to cast @type_object into a @cast_type. @type_object: GtkTypeObject* @cast_type: GtkType @Returns: the same GtkTypeObject* as @type_object @ruler: the gtkruler @model: @flags: @tree: @tab_offset: @button_pressed_node: @button_pressed_tree: @children: @width: @height: @hadjustment: @vadjustment: @bin_window: @header_window: @anchor: @cursor: @cursor_drag: @xor_gc: @drag_pos: @x_drag: @prelight_node: @prelight_tree: @prelight_offset: @selection: @columns: @column: @header_height: @object: @func: @func_data: @args: Destroy all the signal handlers connected to an object. This is done automatically when the object is destroyed. This function is labeled private. @object: the object whose signal handlers should be destroyed. @iter: @pixmap: @mask: @Returns: Get the array of signals defined for this object. @obj: the object to fetch the signals from. @object: @func: @func_data: @args: @iter: @start: @end: @Returns: @factory: @subfactory: @path: @path: @accelerator: @callback: @callback_data: @widget: @ruler: the gtkruler Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS @a: