📄 gtk-unused.sgml
字号:
<!-- ##### SECTION ./tmpl/gtkarg.sgml:Long_Description ##### --><para>All the functions in here are marked a Non-public.We describe it anyway because it is occasionally usefulto understand how the work is done.</para><para>Arguments are a way of describing a named parameter to a function.They have two important roles within gtk+:<itemizedlist><listitem><para>they describe <wordasword>object properties</wordasword>.This means that they present an interface to get and set a named-typefor any type of object in a consistent way.(All the relevant functions to do this start with gtk_object_setor gtk_object_get).</para></listitem><listitem><para>they describe <wordasword>signal arguments</wordasword>.This is a lot less often needed but still useful.Usually if you are just emitting or creating a particular signalit is more convenient to just use gtk_signal_emit() or gtk_signal_new().However if you are writing a function to emit or create an arbitrarysignal, you must use gtk_signal_emitv() or gtk_signal_newv().</para></listitem></itemizedlist></para><!-- ##### SECTION ./tmpl/gtkarg.sgml:See_Also ##### --><para>#GtkObject.</para><!-- ##### SECTION ./tmpl/gtkarg.sgml:Short_Description ##### -->Utility function to manipulate lists of named, typed arguments.<!-- ##### SECTION ./tmpl/gtkarg.sgml:Title ##### -->Implementation of Object Properties<!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:Long_Description ##### --><para></para><!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:Short_Description ##### --><!-- ##### SECTION ./tmpl/gtkcellrenderertextpixbuf.sgml:Title ##### -->GtkCellRendererTextPixbuf<!-- ##### SECTION ./tmpl/gtkdata.sgml:Long_Description ##### --><para>The #GtkData object is a very simple object intended to be used as a baseclass for objects which contain data (i.e. the 'Model' in the object-orientedModel/View/Controller framework).</para><para>Currently it is not very useful since all it provides is a "disconnect" signal.This signal could be emitted by a #GtkData subclass to notify any 'Views'that they should disconnect from the #GtkData (the 'Model'), possibly justbefore the #GtkData is destroyed.</para><!-- ##### SECTION ./tmpl/gtkdata.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/gtkdata.sgml:Short_Description ##### -->abstract base class for objects containing data.<!-- ##### SECTION ./tmpl/gtkdata.sgml:Title ##### -->GtkData<!-- ##### SECTION ./tmpl/gtkdebug.sgml:Title ##### -->Debugging<!-- ##### SECTION ./tmpl/gtkenums.sgml.sgml:Title ##### -->gtkenums.sgml<!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Long_Description ##### --><refsect2><title>What are Signal Marshallers?</title><para>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....</para><para>They then call a native function: the GtkObject is the firstparameter passed in. The arguments are passed in the nativecalling convention: chars, shorts, ints, longs may be packedon the stack, or tucked in registers: it doesn't matterbecause the same calling convention will be generatedinside the gtkmarshal code as is expected where you defineyour handlers.</para><para>So the function named:<programlisting>gtk_marshal_BOOL__POINTER_INT_INT_UINT(GtkObject*, GtkSignalFunc, gpointer, GtkArg*);</programlisting>will call the #GtkSignalFunc assuming it was a function with signature:<programlisting>gboolean sigfunc(gpointer,gint,gint,guint);</programlisting></para></refsect2><refsect2><title>Writing Custom Marshals</title><para>Marshals are primarily used as arguments to gtk_signal_new().Sometimes, you may find that a marshaller you need isn't availablein the standard list. Then you have to write your own.</para><para>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:<programlisting>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);}</programlisting></para></refsect2><!-- ##### SECTION ./tmpl/gtkmarshal.sgml:See_Also ##### --><para><variablelist><varlistentry><term>#GtkSignal</term><listitem><para>The signal handling functions (of which marshallers are really an implementation detail).</para></listitem></varlistentry></variablelist></para><!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Short_Description ##### -->Functions to adapt C structures to native calling convention.<!-- ##### SECTION ./tmpl/gtkmarshal.sgml:Title ##### -->Signal Marshallers<!-- ##### SECTION ./tmpl/gtkpacker.sgml:Long_Description ##### --><para></para><!-- ##### SECTION ./tmpl/gtkpacker.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/gtkpacker.sgml:Short_Description ##### --><!-- ##### SECTION ./tmpl/gtkpacker.sgml:Title ##### -->GtkPacker<!-- ##### SECTION ./tmpl/gtkprivate.sgml:Title ##### -->Private Information<!-- ##### SECTION ./tmpl/gtkthemes.sgml:Long_Description ##### --><para></para><!-- ##### SECTION ./tmpl/gtkthemes.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/gtkthemes.sgml:Short_Description ##### --><!-- ##### SECTION ./tmpl/gtkthemes.sgml:Stability_Level ##### --><!-- ##### SECTION ./tmpl/gtkthemes.sgml:Title ##### -->Themes<!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Long_Description ##### --><para></para><!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:See_Also ##### --><para></para><!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Short_Description ##### --><!-- ##### SECTION ./tmpl/gtktreemodelsimple.sgml:Title ##### -->GtkModelSimple<!-- ##### MACRO GTK_CLIST_CHILD_HAS_FOCUS ##### --><para>A macro to check whether a child widget of the CListhas the focus.</para>@clist: The #GtkCList widget to check.<!-- ##### MACRO GTK_ICON_SIZE_BUTTON ##### --><para></para><!-- ##### MACRO GTK_ICON_SIZE_DIALOG ##### --><para></para><!-- ##### MACRO GTK_ICON_SIZE_LARGE_TOOLBAR ##### --><para></para><!-- ##### MACRO GTK_ICON_SIZE_MENU ##### --><para></para><!-- ##### MACRO GTK_ICON_SIZE_SMALL_TOOLBAR ##### --><para></para><!-- ##### MACRO GTK_IS_TIPS_QUERY ##### --><para></para>@obj: <!-- ##### MACRO GTK_IS_TIPS_QUERY_CLASS ##### --><para></para>@klass: <!-- ##### MACRO GTK_OBJECT_CONNECTED ##### --><para>Tests whether a #GtkObject has had a signal connected to it.</para>@obj: the object to examine.<!-- ##### MACRO GTK_OBJECT_CONSTRUCTED ##### --><para>Test whether a GtkObject's arguments have been prepared.</para>@obj: the object to examine.<!-- ##### MACRO GTK_OBJECT_DESTROYED ##### --><para>Test whether a GtkObject has had gtk_object_destroy() invoked on it.</para>@obj: the object to examine.<!-- ##### MACRO GTK_OBJECT_NSIGNALS ##### --><para>Get the number of signals defined by this object.</para>@obj: the object to query.<!-- ##### MACRO GTK_OBJECT_SET_FLAGS ##### --><para>Turns on certain object flags. (Private)</para>@obj: the object to affect.@flag: the flags to set.<!-- ##### MACRO GTK_OBJECT_SIGNALS ##### --><para>Get the array of signals defined for this object.</para>@obj: the object to fetch the signals from.<!-- ##### MACRO GTK_OBJECT_UNSET_FLAGS ##### --><para>Turns off certain object flags. (Private)</para>@obj: the object to affect.@flag: the flags to unset.<!-- ##### MACRO GTK_PRINT_SETTINGS_NUM_COPIES ##### --><para></para><!-- ##### MACRO GTK_PRINT_SETTINGS_PRINT_TO_FILE ##### --><para></para><!-- ##### MACRO GTK_STOCK_BUTTON_APPLY ##### --><para></para><!-- ##### MACRO GTK_STOCK_BUTTON_CANCEL ##### --><para></para><!-- ##### MACRO GTK_STOCK_BUTTON_CLOSE ##### --><para></para><!-- ##### MACRO GTK_STOCK_BUTTON_NO ##### --><para></para><!-- ##### MACRO GTK_STOCK_BUTTON_OK ##### --><para></para><!-- ##### MACRO GTK_STOCK_BUTTON_YES ##### --><para></para><!-- ##### MACRO GTK_TIPS_QUERY ##### --><para></para>@obj: <!-- ##### MACRO GTK_TIPS_QUERY_CLASS ##### --><para></para>@klass: <!-- ##### MACRO GTK_TIPS_QUERY_GET_CLASS ##### --><para></para>@obj: <!-- ##### MACRO GTK_TREE_MODEL_GET_IFACE ##### --><para></para>@obj: <!-- ##### MACRO GTK_TREE_SELECTION ##### --><para>A macro that returns a GList that contains the selection of the root tree of @obj.</para>@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.<!-- ##### MACRO GTK_TYPE_FLAT_FIRST ##### --><para>The first "flat" (no struct) enumerated type value.</para><!-- ##### MACRO GTK_TYPE_FLAT_LAST ##### --><para>The last "flat" (no struct) enumerated type value.</para><!-- ##### MACRO GTK_TYPE_IDENTIFIER ##### --><para>Hide the name of gtk_identifier_get_type</para><!-- ##### MACRO GTK_TYPE_MAKE ##### --><para>Combine a fundemantal type and a sequence number to create a gtk type.</para>@parent_t: @seqno: <!-- ##### MACRO GTK_TYPE_NUM_BUILTINS ##### --><para>No idea.</para><!-- ##### MACRO GTK_TYPE_SEQNO ##### --><para>Convert a gtk type into its sequence number</para>@type: <!-- ##### MACRO GTK_TYPE_STRUCTURED_FIRST ##### --><para>The first structured enumerated type value.</para><!-- ##### MACRO GTK_TYPE_STRUCTURED_LAST ##### --><para>The last structured enumerated type value.</para><!-- ##### MACRO GTK_TYPE_TIPS_QUERY ##### --><para></para><!-- ##### MACRO GTK_TYPE_TREE_COLUMN ##### --><para></para><!-- ##### MACRO GTK_TYPE_TREE_VIEW_COLUMN ##### --><para></para><!-- ##### MACRO GTK_VALUE_ARGS ##### --><para>Use to get the value of a GtkArg whose GtkType is GTK_TYPE_ARGS</para>@a: <!-- ##### MACRO GTK_VALUE_CALLBACK ##### --><para>Use to get the value of a GtkArg whose GtkType is GTK_TYPE_CALLBACK</para>@a: <!-- ##### MACRO GTK_VALUE_C_CALLBACK ##### --><para>Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_CALLBACK</para>@a: <!-- ##### MACRO GTK_VALUE_FOREIGN ##### --><para>Use to get the value of a GtkArg whose GtkType is GTK_TYPE_C_FOREIGN</para>@a: <!-- ##### USER_FUNCTION GValueCompareFunc ##### --><para></para>@a: @b: @Returns: <!-- ##### ARG GtkAboutDialog:link-color ##### --><para></para><!-- ##### ARG GtkAboutDialog:name ##### --><para></para><!-- ##### STRUCT GtkAccelEntry ##### --><para>This is a private struct used by GTK+ internally, don't worry about it.</para>@accel_group: @accelerator_key: @accelerator_mods: @accel_flags: @object: @signal_id: <!-- ##### ARG GtkAccelLabel:accel-object ##### --><para></para><!-- ##### ARG GtkAccelLabel:accel-width ##### --><para></para><!-- ##### USER_FUNCTION GtkAccelMapNotify ##### --><para></para>@data: @accel_path_quark: @accel_key: @accel_mods: @accel_group: @old_accel_key: @old_accel_mods: <!-- ##### SIGNAL GtkAction::connect-proxy ##### --><para></para>@action: the object which received the signal.@widget: <!-- ##### SIGNAL GtkAction::disconnect-proxy ##### --><para></para>@action: the object which received the signal.@widget: <!-- ##### USER_FUNCTION GtkArgGetFunc ##### --><para>Define a function pointer. Deprecated.</para>@object: @arg: @arg_id: <!-- ##### STRUCT GtkArgInfo ##### --><para>A structure containing information about the argument.Returned by gtk_arg_get_info().</para>@class_type: if the argument is an object, this is the object class type.@name: the name of the argument.@type: the type of the argument; it may be an object's typeor a fundamental type.@arg_flags: flags applicable to the argument (i.e. readable, writable,and whether it needs to be constructed).@full_name: the object name and argument name separated by ::,e.g. "GtkObject::user_data" or "GtkButton::label".@arg_id: the unique argument identified.@seq_id: ???<!-- ##### USER_FUNCTION GtkArgSetFunc ##### --><para>Define a function pointer. Deprecated.</para>@object: @arg: @arg_id: <!-- ##### STRUCT GtkBuilderClass ##### --><para>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -