cvs: php-gtk /docs manual.xml.in /docs/en/classes gtkbin.xml gtkcontainer.xml gtkobject.xml gtkwidget.xml gtkwindow.xml

From: Date: Fri, 20 Apr 2001 02:43:13 +0000
Subject: cvs: php-gtk /docs manual.xml.in /docs/en/classes gtkbin.xml gtkcontainer.xml gtkobject.xml gtkwidget.xml gtkwindow.xml
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1451@lists.php.net to get a copy of this message
sfox Thu Apr 19 19:43:13 2001 EDT Modified files: /php-gtk/docs manual.xml.in /php-gtk/docs/en/classes gtkbin.xml gtkcontainer.xml gtkobject.xml gtkwidget.xml gtkwindow.xml Log: These are not placeholders. Most of the parameters are now in place in the existing files. Few queries.

Index: php-gtk/docs/manual.xml.in diff -u php-gtk/docs/manual.xml.in:1.20 php-gtk/docs/manual.xml.in:1.21 --- php-gtk/docs/manual.xml.in:1.20 Wed Apr 11 09:42:54 2001 +++ php-gtk/docs/manual.xml.in Thu Apr 19 19:43:12 2001 @@ -56,11 +56,12 @@ &classes.gtkdata; &classes.gtkitemfactory; &classes.gtkmisc; - &classes.gtkcontainer; - &classes.gtkbin; &classes.gtklabel; &classes.gtkaccellabel; &classes.gtktipsquery; + &classes.gtkcontainer; + &classes.gtkbin; + &classes.gtkwindow; </classset> <part id="appendixes"> Index: php-gtk/docs/en/classes/gtkbin.xml diff -u php-gtk/docs/en/classes/gtkbin.xml:1.2 php-gtk/docs/en/classes/gtkbin.xml:1.3 --- php-gtk/docs/en/classes/gtkbin.xml:1.2 Fri Apr 13 07:05:13 2001 +++ php-gtk/docs/en/classes/gtkbin.xml Thu Apr 19 19:43:12 2001 @@ -5,10 +5,10 @@ <shortdesc>Base container class allowing a single child widget</shortdesc> <desc> <para> - GtkBin is a base object for container class widgets which contain only one - child widget. This object is not directly accessible from PHP, acting more - or less as a wrapper for GtkContainer. It does not have any methods or signals - of its own. + GtkBin is a base object for container class widgets which contain only one + child widget. This object is not directly accessible from PHP, acting more + or less as a wrapper for GtkContainer. It does not have any methods or + signals of its own. </para> </desc> </classmeta> Index: php-gtk/docs/en/classes/gtkcontainer.xml diff -u php-gtk/docs/en/classes/gtkcontainer.xml:1.4 php-gtk/docs/en/classes/gtkcontainer.xml:1.5 --- php-gtk/docs/en/classes/gtkcontainer.xml:1.4 Sun Apr 15 08:45:31 2001 +++ php-gtk/docs/en/classes/gtkcontainer.xml Thu Apr 19 19:43:12 2001 @@ -9,7 +9,7 @@ that is, any widget which contains other widgets. This object is not directly accessible from PHP. However, the class methods described here are inherited by all subsequent - object classes. + object classes, except where overridden locally. </para> </desc> </classmeta> @@ -20,39 +20,361 @@ <funcsynopsis> <funcprototype> <funcdef> - int <function>set_border_width</function> + void <function>set_border_width</function> </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> + <paramdef>int <parameter>width</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - Sets the border width of a container object. + Sets border width. </shortdesc> <desc> - <simpara> - Longer definition to go in here inc samples. - </simpara> + <para> + Sets the border width of a container object. + <programlisting>$widget-&gt;set_border_width(10);</programlisting> + </para> </desc> </method> - </methods> + <method id="gtk.gtkcontainer.method.add"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>add</function> + </funcdef> + <paramdef>object <parameter>widget</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Adds a widget. + </shortdesc> + <desc> + <para> + Adds a smaller widget into a container object. + <programlisting>$window-&gt;add($button);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.remove"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>remove</function> + </funcdef> + <paramdef>object <parameter>widget</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Removes a widget. + </shortdesc> + <desc> + <para> + Removes a smaller widget from a widget. + <programlisting>$window-&gt;remove($hbox);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.set_resize_mode"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_resize_mode</function> + </funcdef> + <paramdef>enum <parameter>resize_mode</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets resize mode. + </shortdesc> + <desc> + <para> + Sets resize mode. The options are: + <simplelist> + <member>GTK_RESIZE_PARENT - Passes resize request to the parent</member> + <member>GTK_RESIZE_QUEUE - Queues resizes on this widget</member> + <member>GTK_RESIZE_IMMEDIATE - Performs the resizes now</member> + </simplelist> + <programlisting>$window-&gt;set_resize_mode(GTK_RESIZE_QUEUE);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.check_resize"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>check_resize</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;check_resize();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.children"> + <funcsynopsis> + <funcprototype> + <funcdef> + list <function>children</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <!-- serious verwirren - What is a GList?? and how does it relate here? sf --> + <programlisting>$window-&gt;children();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.focus"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>focus</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + focus + </shortdesc> + <desc> + <para> + - - - + <!-- Is this anything to do with these? + GTK_DIR_TAB_FORWARD, + GTK_DIR_TAB_BACKWARD, + GTK_DIR_UP, + GTK_DIR_DOWN, + GTK_DIR_LEFT, + GTK_DIR_RIGHT sf --> + <programlisting>$window-&gt;focus;</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.set_reallocate_redraws"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_reallocate_redraws</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - <!-- unable to find anything on this at all to date. sf --> + <programlisting>$window-&gt;set_reallocate_redraws;</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.set_focus_child"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_focus_child</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;set_focus_child($child);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.set_focus_vadjustment"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_focus_vadjustment</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;set_focus_vadjustment($adjustment);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.set_focus_hadjustment"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_focus_hadjustment</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;set_focus_hadjustment($adjustment);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.register_toplevel"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>register_toplevel</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Registers widget as toplevel. + </shortdesc> + <desc> + <para> + Registers $window as toplevel. + <programlisting>$window-&gt;register_toplevel();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.unregister_toplevel"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>unregister_toplevel</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Undoes toplevel registration. + </shortdesc> + <desc> + <para> + Undoes toplevel registration for $window. + <programlisting>$window-&gt;unregister_toplevel();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.resize_children"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>resize_children</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;resize_children();</programlisting> + </para> + </desc> + </method> - <signals> + <method id="gtk.gtkcontainer.method.child_type"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>child_type</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;child_type();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkcontainer.method.queue_resize"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>queue_resize</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;queue_resize();</programlisting> + </para> + </desc> + </method> - <signal id="gtk.gtkcontainer.signal.add"> - <signalname>add</signalname> - <firedwhen>fired when tba</firedwhen> - <shortdesc>Indicates tba</shortdesc> + <method id="gtk.gtkcontainer.method.clear_resize_widgets"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>clear_resize_widgets</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> <desc> - <simpara> - tba - </simpara> + <para> + - - - + <programlisting>$window-&gt;clear_resize_widgets();</programlisting> + </para> </desc> - </signal> + </method> + <method id="gtk.gtkcontainer.method.child_composite_name"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>child_composite_name</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$window-&gt;child_composite_name($child);</programlisting> + </para> + </desc> + </method> - </signals> + </methods> </classentry> Index: php-gtk/docs/en/classes/gtkobject.xml diff -u php-gtk/docs/en/classes/gtkobject.xml:1.9 php-gtk/docs/en/classes/gtkobject.xml:1.10 --- php-gtk/docs/en/classes/gtkobject.xml:1.9 Tue Apr 17 07:45:29 2001 +++ php-gtk/docs/en/classes/gtkobject.xml Thu Apr 19 19:43:12 2001 @@ -28,13 +28,12 @@ </classmeta> <methods> -<!--TODO: GtkObject - all methods need checking for technical accuracy, Markus -is aware --> + <method id="gtk.gtkobject.method.get_type"> <funcsynopsis> <funcprototype> <funcdef> - void <function>get_type</function> + static GtkType <function>get_type</function> </funcdef> </funcprototype> </funcsynopsis> @@ -43,8 +42,12 @@ </shortdesc> <desc> <para> - Returns an integer uniquely identifying <literal>$object</literal>. In this way GTK+ is able to determine the type of an object. + Returns an integer uniquely identifying <literal>$object</literal>. + In this way GTK+ is able to determine the type of an object: <programlisting>$object-&gt;get_type();</programlisting> + A useful example of <literal>get_type()</literal> would be in combination + with <classname>GtkItemFactory</classname>: + <programlisting>$if = &amp;GtkItemFactory(GtkMenuBar::get_type(), &quot;&lt;menu&gt;&quot;, $accel);</programlisting> </para> </desc> </method> @@ -92,7 +95,7 @@ <para> Sets the flags for <literal>$object</literal>. <programlisting>$object-&gt;set_flags(GTK_FLOATING);</programlisting> - <!-- MARKUS - These can be any flags, can't they? Do you have any idea where they might be listed, or whether these too are inherited? sf. --> + <!-- TODO: Check where flags are to be listed, create a link here. sf. --> </para> </desc> </method> @@ -160,9 +163,7 @@ Normally this function is automatically run from gtk_object_default_construct(). <programlisting>$object-&gt;constructed();</programlisting> - <!-- MARKUS - I don't believe this will ever be needed as part of - programming within PHP-GTK, I think it's a GTK+ thingy which we get - automatically as part of PHP? but I could be wrong? sf --> + <!-- TODO Get this entry ratified by either Andrei or James, we haven't understood it at all between us! --> </para> </desc> </method> @@ -255,7 +256,8 @@ <funcdef> void <function>set_data</function> </funcdef> - <paramdef>char <parameter>$key</parameter></paramdef> + <paramdef>char <parameter>key</parameter></paramdef> + <paramdef>mixed <parameter>data</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -266,7 +268,8 @@ Binds any kind of data (not just objects) to associate with <literal>$object</literal>, using a named key. This can be useful, as the binding is global, i.e. it is not necessary to declare bound data as global within a function that is - not local to it when using this construct. + not local to it when using this construct. If an associoation with that + name already exists, the old one will be destroyed. <programlisting>$object-&gt;set_data($key, $data);</programlisting> </para> </desc> @@ -276,9 +279,9 @@ <funcsynopsis> <funcprototype> <funcdef> - void <function>remove_data</function> + mixed <function>remove_data</function> </funcdef> - <paramdef>char <parameter>$key</parameter></paramdef> + <paramdef>char <parameter>key</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -286,7 +289,8 @@ </shortdesc> <desc> <para> - Removes data associated with <literal>$key</literal> from <literal>$object</literal> data associations. + Removes data associated with <literal>key</literal> from + <literal>$object</literal> data associations. <programlisting>$object-&gt;remove_data($key);</programlisting> </para> </desc> @@ -298,7 +302,7 @@ <funcdef> void <function>get_data</function> </funcdef> - <paramdef>char <parameter>$key</parameter></paramdef> + <paramdef>char <parameter>key</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -306,7 +310,8 @@ </shortdesc> <desc> <para> - Retrieves bound data associated with <literal>$key</literal> from <literal>$object</literal>. + Retrieves bound data associated with <literal>$key</literal> from + <literal>$object</literal>. <programlisting>$object-&gt;get_data($key);</programlisting> </para> </desc> @@ -332,10 +337,6 @@ </desc> </method> - <!-- MARKUS - In the GTK docs the rest of these come under gtk-signals. NB I - don't understand signals very well, so if you want to rewrite any of these - descs please do so, and I will check the English when this comes back. sf --> - <method id="gtk.gtkobject.method.signal_emit_stop"> <funcsynopsis> <funcprototype> @@ -351,8 +352,9 @@ <desc> <para> Aborts a signal's current emission. + <!-- TODO Neither of us has understood this entry, please ratify. --> <programlisting>$object-&gt;signal_emit_stop($signal_id)</programlisting> - <!-- total crib from the GTK docs here I'm afraid --> + <!-- Currently this is a total crib from the GTK docs I'm afraid --> This method will prevent the default method from running, if the signal was GTK_RUN_LAST and connected normally (i.e. without the "after" flag). It will also print a warning if used on a signal which isn't being emitted. @@ -385,10 +387,11 @@ <funcsynopsis> <funcprototype> <funcdef> - void <function>connect</function> + int <function>connect</function> </funcdef> <paramdef>char <parameter>signal_name</parameter></paramdef> - <paramdef>char <parameter>event_handler</parameter></paramdef> + <paramdef>function <parameter>event_handler</parameter></paramdef> + <paramdef>mixed <parameter>[additional arguments]</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -396,24 +399,28 @@ </shortdesc> <desc> <para> - Associates a connect signal with an object and an event handler. + Associates a connect signal with an object and an event handler. The + first two parameters are mandatory. Additional arguments will be passed + transparently to the event_handler. Returns an id unique to that + connection. <programlisting>$object-&gt;connect(&quot;signal_name&quot;, &quot;function&quot;);</programlisting> or <programlisting>$object-&gt;connect(&quot;signal_name&quot;, array($source_object, &quot;function&quot;);</programlisting> </para> </desc> </method> - <!-- Is there a list of standard signal names anywhere, does anyone happen to - know? --> + <!-- TODO: Find or write a list of standard signal names and link to it from + here --> <method id="gtk.gtkobject.method.connect_after"> <funcsynopsis> <funcprototype> <funcdef> - void <function>connect_after</function> + int <function>connect_after</function> </funcdef> <paramdef>char <parameter>signal_name</parameter></paramdef> - <paramdef>char <parameter>event_handler</parameter></paramdef> + <paramdef>function <parameter>event_handler</parameter></paramdef> + <paramdef>mixed <parameter>[additional arguments]</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -421,7 +428,9 @@ </shortdesc> <desc> <para> - This signal handler will be called after other calls. + This signal handler will be called after other calls. Additional arguments + will be passed transparently to the event_handler. Returns an id unique to + that connection. <programlisting>$object-&gt;connect_after(&quot;signal_name&quot;, &quot;function&quot;);</programlisting> or <programlisting>$object-&gt;connect_after(&quot;signal_name&quot; array($source_object, &quot;function&quot;);</programlisting> @@ -433,11 +442,11 @@ <funcsynopsis> <funcprototype> <funcdef> - void <function>connect_object</function> + int <function>connect_object</function> </funcdef> <paramdef>char <parameter>signal_name</parameter></paramdef> - <paramdef>char <parameter>event_handler</parameter></paramdef> - <paramdef>char <parameter>target_object</parameter></paramdef> + <paramdef>function <parameter>event_handler</parameter></paramdef> + <paramdef>mixed <parameter>[additional arguments]</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -446,7 +455,9 @@ <desc> <para> Connects a signal to an event handler on behalf of another object. - This is useful for passing a standard function as a callback. + This is useful for passing a standard function as a callback. Additional + arguments will be passed transparently to the event_handler. Returns an id + unique to that connection. <programlisting>$object-&gt;(&quot;signal_name&quot;, &quot;function&quot;, $target_object);</programlisting> </para> </desc> @@ -456,11 +467,11 @@ <funcsynopsis> <funcprototype> <funcdef> - void <function>connect_object_after</function> + int <function>connect_object_after</function> </funcdef> <paramdef>char <parameter>signal_name</parameter></paramdef> <paramdef>char <parameter>event_handler</parameter></paramdef> - <paramdef>char <parameter>target_object</parameter></paramdef> + <paramdef>mixed <parameter>[additional arguments]</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -469,7 +480,9 @@ <desc> <para> Exactly the same as <literal>connect_object</literal>, but calling the - handler after other handlers have been called. + handler after other handlers have been called. Additional arguments will + be passed transparently to the event_handler. Returns an id unique to that + connection. <programlisting>$object-&gt;(&quot;signal_name&quot;, &quot;function&quot;, $target_object);</programlisting> </para> </desc> @@ -541,7 +554,7 @@ <funcsynopsis> <funcprototype> <funcdef> - void <function>signal_handler_pending</function> + integer <function>signal_handler_pending</function> </funcdef> <paramdef>int <parameter>signal_id</parameter></paramdef> <paramdef>bool <parameter>blocked_ok</parameter></paramdef> @@ -563,7 +576,7 @@ <funcsynopsis> <funcprototype> <funcdef> - void <function>signal_handler_pending_by_id</function> + int <function>signal_handler_pending_by_id</function> </funcdef> <paramdef>int <parameter>signal_id</parameter></paramdef> <paramdef>bool <parameter>blocked_ok</parameter></paramdef> @@ -574,8 +587,8 @@ </shortdesc> <desc> <para> - Returns whether a connection id is valid and also, optionally, whether it is blocked. -<programlisting>$object-&gt;signal_handler_pending_by_id($signal_id);</programlisting> + Returns whether a connection id is valid and also, optionally, whether + it is blocked. <programlisting>$object-&gt;signal_handler_pending_by_id($signal_id);</programlisting> or <programlisting>$object-&gt;signal_handler_pending_by_id($signal_id, TRUE);</programlisting> </para> @@ -595,7 +608,8 @@ </shortdesc> <desc> <para> - Destroys all handlers connected to <literal>$object</literal>. (This is normally done automatically when an object is destroyed.) + Destroys all handlers connected to <literal>$object</literal>. (This is + normally done automatically when an object is destroyed.) <programlisting>$object-&gt;destroy();</programlisting> </para> </desc> @@ -603,8 +617,10 @@ </methods> +<!--TODO: Properties documentation needs EVERYTHING sorting except where to get the info (ty Andrei) --> + <signals> - <!--TODO: Signals documentation for GtkObject (only one signal here :) --> + <!--TODO: Signals documentation for GtkObject (only one signal here :) Layout for signals is being redesigned by Markus at present --> <signal id="gtk.gtkobject.signal.destroy"> <signalname>destroy</signalname> <firedwhen>when an object is destroyed</firedwhen> @@ -619,4 +635,4 @@ </signals> -</classentry> \ No newline at end of file +</classentry> Index: php-gtk/docs/en/classes/gtkwidget.xml diff -u php-gtk/docs/en/classes/gtkwidget.xml:1.5 php-gtk/docs/en/classes/gtkwidget.xml:1.6 --- php-gtk/docs/en/classes/gtkwidget.xml:1.5 Sun Apr 15 14:22:56 2001 +++ php-gtk/docs/en/classes/gtkwidget.xml Thu Apr 19 19:43:12 2001 @@ -6,57 +6,1618 @@ <shortdesc>Base widget object of GTK hierarchy</shortdesc> <desc> <simpara> - GtkWidget is an abstract class object which underpins all other widgets - within GTK, ItemFactory and Data classes notwithstanding. Methods and - signals described here are inherited by all subsequent widget class objects. + GtkWidget is an abstract class object which underpins all the other widgets + within GTK, ItemFactory and Data classes notwithstanding. Methods and + signals described here are inherited by all subsequent widget class objects + unless overridden locally (see <classentry>GtkObject</classentry>. </simpara> </desc> </classmeta> <methods> - <method id="gtk.gtkwidget.method.drag_highlight"> + <method id="gtk.gtkwidget.method.drag_highlight"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>drag_highlight</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Highlights an object. + </shortdesc> + <desc> + <para> + Draw a highlight around $widget, attaching handlers to "expose_event" and + "draw". The highlight will continue to be displayed until drag_unhighlight + is called. + <programlisting>$widget-&gt;drag_highlight();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.drag_unhighlight"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>drag_unhighlight</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Switches highlight off. + </shortdesc> + <desc> + <para> + Removes a highlight previously set by <literal>drag_highlight</literal>. + <programlisting>$widget-&gt;drag_unhighlight();</programlisting> + </para> + </desc> + </method> - <funcsynopsis> - <funcprototype> - <funcdef> - dtype <function>drag_highlight</function> - </funcdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - <paramdef>dtype <parameter>tba</parameter></paramdef> - </funcprototype> - </funcsynopsis> + <method id="gtk.gtkwidget.method.drag_dest_unset"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>drag_dest_unset</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Clears drop destination. + </shortdesc> + <desc> + <para> + Clears information about a drop destination set with drag_dest_set(), so + that $widget no longer receives notification of drags. + <programlisting>$widget-&gt;drag_dest_unset();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.drag_source_unset"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>drag_source_unset</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Ends a drag sequence. + </shortdesc> + <desc> + <para> + Clears information about a drag set with drag_source_set(). + <programlisting>$widget-&gt;drag_source_unset();</programlisting> + </para> + </desc> + </method> + +<!-- All, I really haven't understood this next one. Datatypes and + description probably need changing. Soz. sf --> + + <method id="gtk.gtkwidget.method.drag_source_set_icon"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>drag_source_set_icon</function> + </funcdef> + <paramdef>char <parameter>colormap</parameter></paramdef> + <paramdef>resource <parameter>pixmap</parameter></paramdef> + <paramdef>resource <parameter>mask</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets the icon used for drags. + </shortdesc> + <desc> + <para> + <!-- TODO: Rewrite when understood, this is currently a direct lift from GTK docs --> + Sets the icon that will be used for drags from a particular widget. GTK+ + retains a reference count for the arguments, and will release them when + they are no longer needed. + <programlisting>$widget-&gt;drag_source_set_icon($colormap, $pixmap, $bitmap);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.selection_owner_set"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>selection_owner_set</function> + </funcdef> + <paramdef>int <parameter>selection</parameter></paramdef> + <paramdef>int <parameter>time</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets ownership of a selection. + </shortdesc> + <desc> + <para> + Sets $widget's ownership of a selection. + <!--TODO: Add sane & meaningful info when have it! sf --> + <programlisting>$widget-&gt;selection_owner_set($selection, $unix_time);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.selection_add_target"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>selection_add_target</function> + </funcdef> + <paramdef>int <parameter>selection</parameter></paramdef> + <paramdef>int <parameter>target</parameter></paramdef> + <paramdef>int <parameter>info</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Adds target. + </shortdesc> + <desc> + <para> + Adds specified target to the list of supported targets for a given widget + and selection. + <!--TODO: Add sane & meaningful info when have it! sf --> + <programlisting>$widget-&gt;selection_add_target($selection, $target, $info);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.selection_convert"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>selection_convert</function> + </funcdef> + <paramdef>int <parameter>selection</parameter></paramdef> + <paramdef>int <parameter>target</parameter></paramdef> + <paramdef>int <parameter>time</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Requests selection contents. + </shortdesc> + <desc> + <para> + Requests the contents of a selection. When received, a "selection_received" + signal will be generated. + <!--TODO: Add sane & meaningful info when have it! sf --> + <programlisting>$widget-&gt;selection_convert($selection, $target, $unix_time);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.selection_remove_all"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>selection_remove_all</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Clears selections. + </shortdesc> + <desc> + <para> + Removes all handlers and unsets ownership of all $widget's selections. + This happens automatically when $widget is destroyed and will rarely need + to be used as part of a script. + <programlisting>$widget-&gt;selection_remove_all();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.ref"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>ref</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Increases the reference count. + </shortdesc> + <desc> + <para> + Increases the reference count of <literal>$widget</literal> by one. + <programlisting>$widget-&gt;ref();</programlisting> + </para> + </desc> + </method> + <method id="gtk.gtkwidget.method.unref"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>unref</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Decreases the reference count. + </shortdesc> + <desc> + <para> + Decreases the reference count of <literal>$widget</literal> by one. When + the reference count is zero, <literal>$widget</literal> will be destroyed. + <programlisting>$widget-&gt;unref();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.destroy"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>destroy</function> + </funcdef> + </funcprototype> + </funcsynopsis> <shortdesc> - Short definition to go in here. + Destroys an object. </shortdesc> - <desc> - <simpara> - Longer definition to go in here inc samples. - </simpara> - </desc> + <para> + Destroys <literal>$widget</literal> by calling its shutdown handler. + <programlisting>$widget-&gt;destroy();</programlisting> + </para> + </desc> + </method> - </method> + <method id="gtk.gtkwidget.method.unparent"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>unparent</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + <!--TODO: Need to experiment with this to find out what it does! --> + <programlisting>$widget-&gt;unparent();</programlisting> + </para> + </desc> + </method> - </methods> + <method id="gtk.gtkwidget.method.show"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>show</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Displays object. + </shortdesc> + <desc> + <para> + Displays $widget. + <programlisting>$widget-&gt;show();</programlisting> + </para> + </desc> + </method> - <signals> + <method id="gtk.gtkwidget.method.show_now"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>show_now</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + <!-- Need to play with this one, too! --> + <programlisting>$widget-&gt;show_now();</programlisting> + </para> + </desc> + </method> - <signal id="gtk.gtkwidget.signal.show"> + <method id="gtk.gtkwidget.method.hide"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>hide</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Hides object. + </shortdesc> + <desc> + <para> + Hides $widget without actually destroying it. + <programlisting>$widget-&gt;hide();</programlisting> + </para> + </desc> + </method> - <signalname>show</signalname> - <firedwhen>tba</firedwhen> + <method id="gtk.gtkwidget.method.show_all"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>show_all</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Displays object including its children. + </shortdesc> + <desc> + <para> + Displays $widget, including all $widget's children. + <programlisting>$widget-&gt;show_all();</programlisting> + </para> + </desc> + </method> - <shortdesc>Short description here.</shortdesc> + <method id="gtk.gtkwidget.method.hide_all"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>hide_all</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Hides object including its children. + </shortdesc> + <desc> + <para> + Hides $widget, including all $widget's children, without destroying them. + <programlisting>$widget-&gt;hide_all();</programlisting> + </para> + </desc> + </method> - <desc> - <simpara> - Longer description will go in here. - </simpara> - </desc> - </signal> + <method id="gtk.gtkwidget.method.map"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>map</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;map();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.unmap"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>unmap</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;unmap();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.realize"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>realize</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;realize();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.unrealize"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>unrealize</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;unrealize();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.queue_draw"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>queue_draw</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;queue_draw();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.queue_draw_area"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>queue_draw_area</function> + </funcdef> + <paramdef>int <parameter>x-coordinate</parameter></paramdef> + <paramdef>int <parameter>y-coordinate</parameter></paramdef> + <paramdef>int <parameter>width</parameter></paramdef> + <paramdef>int <parameter>height</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;queue_draw_area(0, 0, $width, $height);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.queue_clear"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>queue_clear</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;queue_clear();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.queue_clear_area"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>queue_clear_area</function> + </funcdef> + <paramdef>int <parameter>x-coordinate</parameter></paramdef> + <paramdef>int <parameter>y-coordinate</parameter></paramdef> + <paramdef>int <parameter>width</parameter></paramdef> + <paramdef>int <parameter>height</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;queue_clear_area($x, $y, $width, $height);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.queue_resize"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>queue_resize</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;queue_resize();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.draw"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>draw</function> + </funcdef> + <paramdef>tba <parameter>area</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;draw($area);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.draw_focus"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>draw_focus</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;draw_focus();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.draw_default"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>draw_default</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;draw_default();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.add_accelerator"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>add_accelerator</function> + </funcdef> + <paramdef>char <parameter>accel_signal</parameter></paramdef> + <paramdef>resource <parameter>accel_group</parameter></paramdef> + <paramdef>int <parameter>accel_key</parameter></paramdef> + <paramdef>int <parameter>accel_mods</parameter></paramdef> + <paramdef>enum <parameter>accel_flags</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + The choices of accelerator flags determining how the accelerator appears in $widget's display are as follows: + <simplelist> + <member>GTK_ACCEL_VISIBLE</member> + <member>GTK_ACCEL_SIGNAL_VISIBLE</member> + <member>GTK_ACCEL_LOCKED</member> + <member>GTK_ACCEL_MASK</member> + </simplelist> + <programlisting>$widget-&gt;add_accelerator(&quot;clicked&quot;, $accel_group, $accel_key, $accel_mods, GTK_ACCEL_VISIBLE);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.remove_accelerator"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>remove_accelerator</function> + </funcdef> + <paramdef>resource <parameter>accel_group</parameter></paramdef> + <paramdef>int <parameter>accel_key</parameter></paramdef> + <paramdef>int <parameter>accel_mods</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Removes accelerator? + </shortdesc> + <desc> + <para> + Removes accelerator. + <programlisting>$widget-&gt;remove_accelerator($accel_group, $accel_key, $accel_mods);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.remove_accelerators"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>remove_accelerators</function> + </funcdef> + <paramdef>char <parameter>accel_signal</parameter></paramdef> + <paramdef>bool <parameter>visible_only</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Removes accelerators? + </shortdesc> + <desc> + <para> + Removes accelerators. + <programlisting>$widget-&gt;remove_accelerators(&quot;clicked&quot;, TRUE);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.accelerator_signal"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>accelerator_signal</function> + </funcdef> + <paramdef>resource <parameter>accel_group</parameter></paramdef> + <paramdef>int <parameter>accel_key</parameter></paramdef> + <paramdef>int <parameter>accel_mods</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;accelerator_signal($accel_group, $accel_key, $accel_mods);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.lock_accelerators"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>lock_accelerators</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Locks accelerators. + </shortdesc> + <desc> + <para> + Locks accelerators. + <programlisting>$widget-&gt;lock_accelerators();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.unlock_accelerators"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>unlock_accelerators</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Unlocks accelerators. + </shortdesc> + <desc> + <para> + Unlocks accelerators. + <programlisting>$widget-&gt;unlock_accelerators();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.accelerators_locked"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>accelerators_locked</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - <!-- I've absolutely no idea where this one comes from or whether it + has any parameters..... sf --> + <programlisting>$widget-&gt;accelerators_locked();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.event"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>event</function> + </funcdef> + <paramdef>tba <parameter>gdkevent</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;event(gdkevent);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.activate"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>activate</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;activate();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_scroll_adjustment"> + <funcsynopsis> + <funcprototype> + <funcdef> + bool <function>set_scroll_adjustment</function> + </funcdef> + <paramdef>char <parameter>hadjustment</parameter></paramdef> + <paramdef>char <parameter>vadjustment</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets scroll adjustment. + </shortdesc> + <desc> + <para> + Sets scroll adjustment. Parameters are GtkAdjustment objects. + <programlisting>$widget-&gt;set_scroll_adjustment($hadjustment, $vadjustment);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.reparent"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>reparent</function> + </funcdef> + <paramdef>char <parameter>new_parent</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Defines new parent. + </shortdesc> + <desc> + <para> + Defines new parent. + <programlisting>$widget-&gt;reparent($new_parent_widget);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.popup"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>popup</function> + </funcdef> + <paramdef>int <parameter>x_coordinate</parameter></paramdef> + <paramdef>int <parameter>y_coordinate</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Defines window as popup. + </shortdesc> + <desc> + <para> + Defines window as popup. Use instead of the show(); method. + <programlisting>$widget-&gt;popup($x, $y);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.intersect"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>intersect</function> + </funcdef> + <paramdef>int <parameter>area</parameter></paramdef> + <paramdef>int <parameter>intersection</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - <!-- Way to define these Gdk parameters? --> + <programlisting>$widget-&gt;intersect($intersection, $area);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.grab_focus"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>grab_focus</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets focus to current widget. + </shortdesc> + <desc> + <para> + Sets focus to $widget. + <programlisting>$widget-&gt;grab_focus();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.grab_default"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>grab_default</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;grab_default();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_name"> + <funcsynopsis> + <funcprototype> + <funcdef> + char <function>set_name</function> + </funcdef> + <paramdef>char <parameter>name</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets name of widget. + </shortdesc> + <desc> + <para> + Sets $widget's name. + <programlisting>$widget-&gt;set_name(&quot;widget_name&quot;);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_name"> + <funcsynopsis> + <funcprototype> + <funcdef> + char <function>get_name</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Gets name of widget. + </shortdesc> + <desc> + <para> + Gets $widget's name. + <programlisting>$widget-&gt;get_name();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_state"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_state</function> + </funcdef> + <paramdef>enum <parameter>state</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets state.? + </shortdesc> + <desc> + <para> + Sets current state of $widget. Choices are as follows: + <simplelist> + <member>GTK_STATE_NORMAL</member> + <member>GTK_STATE_ACTIVE</member> + <member>GTK_STATE_PRELIGHT - mouseover</member> + <member>GTK_STATE_SELECTED</member> + <member>GTK_STATE_INSENSITIVE - cannot be changed by user</member> + </simplelist> + <programlisting>$widget-&gt;set_state(GTK_STATE_PRELIGHT);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_sensitive"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_sensitive</function> + </funcdef> + <paramdef>bool <parameter>sensitive</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Toggles &quot;sensitive&quot;. + </shortdesc> + <desc> + <para> + Defines whether $widget can be changed by the user or not. + <programlisting>$widget-&gt;set_sensitive(TRUE);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_app_paintable"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_app_paintable</function> + </funcdef> + <paramdef>bool <parameter>paintable</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Toggle for &quot;paintable&quot;. + </shortdesc> + <desc> + <para> + Sets whether the application is paintable or not. + <programlisting>$widget-&gt;set_app_paintable(TRUE);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_parent"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_parent</function> + </funcdef> + <paramdef>char <parameter>parent</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets parent widget. + </shortdesc> + <desc> + <para> + Sets parent for $widget. + <programlisting>$widget-&gt;set_parent($parent_widget);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_parent_window"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_parent_window</function> + </funcdef> + <paramdef>char <parameter>window</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets parent window. + </shortdesc> + <desc> + <para> + Sets parent window for $widget. + <programlisting>$widget-&gt;set_parent_window($parent_window);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_parent_window"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_parent_window</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Gets parent window. + </shortdesc> + <desc> + <para> + Gets parent window. + <programlisting>$widget-&gt;get_parent_window();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_uposition"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_uposition</function> + </funcdef> + <paramdef>int <parameter>x_coordinate</parameter></paramdef> + <paramdef>int <parameter>y_coordinate</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets screen position. + </shortdesc> + <desc> + <para> + Sets position of $widget on screen. + <programlisting>$widget-&gt;set_uposition(0, 0);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_usize"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_usize</function> + </funcdef> + <paramdef>int <parameter>width</parameter></paramdef> + <paramdef>int <parameter>height</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets size. + </shortdesc> + <desc> + <para> + Sets size of $widget in pixels. + <programlisting>$widget-&gt;set_usize(320, 200);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_events"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_events</function> + </funcdef> + <paramdef>int <parameter>events</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;set_events($events);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.add_events"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>add_events</function> + </funcdef> + <paramdef>int <parameter>events</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;add_events($events);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_toplevel"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_toplevel</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_toplevel();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_ancestor"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_ancestor</function> + </funcdef> + <paramdef>int <parameter>type</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_ancestor($type);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_colormap"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_colormap</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_colormap();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_visual"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_visual</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_visual();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_colormap"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_colormap</function> + </funcdef> + <paramdef>tba <parameter>gdkcolormap</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;set_colormap($gdkcolormap);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_visual"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_visual</function> + </funcdef> + <paramdef>tba <parameter>gdkvisual</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;set_visual($gdkvisual);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_events"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_events</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_events();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_pointer"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_pointer</function> + </funcdef> + <paramdef>int <parameter>x</parameter></paramdef> + <paramdef>int <parameter>y</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_pointer($x, $y);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.is_ancestor"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>is_ancestor</function> + </funcdef> + <paramdef>char <parameter>other_widget</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Tests for ancestry. + </shortdesc> + <desc> + <para> + Tests for ancestry. Returns <literal>TRUE</literal> or <literal>FALSE</literal>. + <programlisting>$widget-&gt;is_ancestor($button);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.hide_on_delete"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>hide_on_delete</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;hide_on_delete();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_style"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_style</function> + </funcdef> + <paramdef>char <parameter>style</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets style. + </shortdesc> + <desc> + <para> + Sets $widget to use a predefined <classname>GtkStyle</classname>. + <programlisting>$widget-&gt;set_style($style);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_rc_style"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_rc_style</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;set_rc_style();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.ensure_style"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>ensure_style</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;ensure_style();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_style"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_style</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_style();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.restore_default_style"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>restore_default_style</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;restore_default_style();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.set_composite_name"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>set_composite_name</function> + </funcdef> + <paramdef>char <parameter>name</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;set_composite_name(&quot;name&quot;);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.get_composite_name"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>get_composite_name</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;get_composite_name();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.reset_rc_styles"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>reset_rc_styles</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;reset_rc_styles();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.shape_combine_mask"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>shape_combine_mask</function> + </funcdef> + <paramdef>tba <parameter>gdk_shape_mask</parameter></paramdef> + <paramdef>int <parameter>offset_x</parameter></paramdef> + <paramdef>int <parameter>offset_y</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;shape_combine_mask();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.reset_shapes"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>reset_shapes</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;reset_shapes();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.path"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>path</function> + </funcdef> + <paramdef>int <parameter>path_length</parameter></paramdef> + <paramdef>char <parameter>path</parameter></paramdef> + <paramdef>char <parameter>path_reversed</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;path();</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwidget.method.class_path"> + <funcsynopsis> + <funcprototype> + <funcdef> + void <function>class_path</function> + </funcdef> + <paramdef>int <parameter>path_length</parameter></paramdef> + <paramdef>char <parameter>path</parameter></paramdef> + <paramdef>char <parameter>path_reversed</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + - - - + </shortdesc> + <desc> + <para> + - - - + <programlisting>$widget-&gt;class_path();</programlisting> + </para> + </desc> + </method> - </signals> +</methods> </classentry> Index: php-gtk/docs/en/classes/gtkwindow.xml diff -u php-gtk/docs/en/classes/gtkwindow.xml:1.4 php-gtk/docs/en/classes/gtkwindow.xml:1.5 --- php-gtk/docs/en/classes/gtkwindow.xml:1.4 Fri Apr 13 08:50:05 2001 +++ php-gtk/docs/en/classes/gtkwindow.xml Thu Apr 19 19:43:12 2001 @@ -1,85 +1,307 @@ -<reference id="ref.gtkwindow"> - <title>GtkWindow</title> +<!--TODO More detail needed and not found on the following method descriptions: + add_accel_group, activate_focus, activate_default, set_transient_for, + set_modal and set_default.. plus one signal entry (the "set_focus" signal) + to be made here when there is a proper structure in place for it. sf --> - <partintro> - <simpara> - Creates a new window on the screen. This is a container - for other widgets. - </simpara> - </partintro> - - <refentry id="class.gtkwindow.constructor"> - <refnamediv> - <refname>GtkWindow</refname> - <refpurpose>GtkWindow Constructor</refpurpose> - </refnamediv> - <refsect1> - <title>Description</title> - <funcsynopsis> - <funcprototype> - <funcdef> - resource <function>GtkWindow</function> - </funcdef> - <paramdef> - <parameter><literal>void</literal></parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> +<classentry id="gtk.gtkwindow"> + <classmeta> + <classtitle>GtkWindow</classtitle> + <classparent>GtkBin</classparent> + <shortdesc> + Window. + </shortdesc> + <desc> + <para> + Blank window. This is a container for other widgets. + </para> + </desc> + </classmeta> + + <constructor id="gtk.gtkwindow.constructor"> + <funcsynopsis> + <funcprototype> + <funcdef> + object <function>GtkWindow</function> + </funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Constructs a GtkWindow. + </shortdesc> + <desc> + <para> The <function>GtkWindow</function> is the constructor for the GtkWindow - widget which is called to create a new Window on the screen. It returns - a reference to the new window on success or <literal>NULL</literal> on error. + widget which is called to create a new window on the screen. It returns + a reference to the new window on success or <literal>NULL</literal> on + error. + </para> + <para> + GtkWindows must be constructed by reference, due to the way the underlying + GtkObjects are stored in PHP/Zend Wrappers and the way the Zend engine + handles objects. If you don't use references when calling the constructor, + you will find that earlier windows are overwritten by later ones. </para> - <simpara> - GtkWindows must be constructed by reference, due to the way the underlying - GtkObjects are stored in PHP/Zend Wrappers and the way the Zend engine handles - objects. If you don't use references when calling the constructor, you - will find that earlier windows are overwritten by later ones. - </simpara> - - <example> - <title>Creating a new GTK+ Window from PHP</title> - <simpara> - The correct way to create a new window - </simpara> - <programlisting> -$window = &amp;new GtkWindow(); - </programlisting> - <simpara> + <para> + The correct way to create a new window is + <programlisting>$window = &amp;new GtkWindow(};</programlisting> This will cause problems later on - </simpara> - <programlisting> -$window = new GtkWindow(); - </programlisting> - </example> - </refsect1> - </refentry> - - <refentry id="class.gtkwindow.set_policy"> - <refnamediv> - <refname>GtkWindow::set_policy</refname> - <refpurpose>Determines the way resize requests are dealt with</refpurpose> - </refnamediv> - <refsect1> - <title>Descriptin</title> + <programlisting>$window = new GtkWindow();</programlisting> + </para> + </desc> + </constructor> + + <methods> + + <method id="gtk.gtkwindow.method.set_title"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_title</function></funcdef> + <paramdef>char <parameter>title</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets title. + </shortdesc> + <desc> + <para> + Sets the title for $window. The default is the name of your application. + <programlisting>$window-&gt;set_title(&quot;This is the title&quot;);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_wmclass"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_wmclass</function></funcdef> + <paramdef>char <parameter>wmclass_name</parameter></paramdef> + <paramdef>char <parameter>wmclass_class</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets the wmclass. + </shortdesc> + <desc> + <para> + Sets the WM_CLASS property. This is used to identify all the windows + belonging to an application. If you don't set it, GTK+ will. + <programlisting>$window-&gt;set_wmclass($wmclass_name, $wmclass_class);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_policy"> <funcsynopsis> <funcprototype> - <funcdef>void <function>GtkWindow::set_policy</function></funcdef> + <funcdef>void <function>set_policy</function></funcdef> <paramdef>int <parameter>allow_shrink</parameter></paramdef> <paramdef>int <parameter>allow_grow</parameter></paramdef> <paramdef>int <parameter>auto_shrink</parameter></paramdef> </funcprototype> </funcsynopsis> - <simpara> - This function controls how GTK+ will resize the window. The - parameters <parameter>allow_shrink</parameter> and - <parameter>allow_grow</parameter> allow the user to resize the - window if they are set to <literal>TRUE</literal>. The third - parameter, if set to <literal>TRUE</literal> tells GTK+ to - resize the window so that it will be the optimal size for its - children. - </simpara> - </refsect1> - </refentry> + <shortdesc> + Sets resizing policy. + </shortdesc> + <desc> + <para> + This method controls how GTK+ resizes $window. Setting the second + parameter to <literal>TRUE</literal> will make $window user-resizable; + this is the default setting. Setting the third to <literal>TRUE</literal> + will make $window's size program-controlled, in which case it will depend + on the size requests from $window's children. + </para> + <para> + Setting the first parameter to <literal>TRUE</literal> is not recommended + as it will make any contained widgets look awry. + <programlisting>$window-&gt;set_policy(FALSE, FALSE, TRUE);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.add_accel_group"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>add_accel_group</function></funcdef> + <paramdef>char <parameter>accel_group</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Adds accelerator group. + </shortdesc> + <desc> + <para> + Adds accelerator group. + <programlisting>$window-&gt;add_accel_group($accel_group;);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.remove_accel_group"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>remove_accel_group</function></funcdef> + <paramdef>char <parameter>accel_group</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Removes accelerator group. + </shortdesc> + <desc> + <para> + Removes accelerator group. + <programlisting>$window-&gt;remove_accel_group($accel_group;);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_position"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_position</function></funcdef> + <paramdef>enum <parameter>window_position_flag</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets window position. + </shortdesc> + <desc> + <para> + Sets window position, choice as follows.... + <simplelist> + <member>GTK_WIN_POS_NONE - doesn't affect the window position</member> + <member>GTK_WIN_POS_CENTER - centres $window on screen</member> + <member>GTK_WIN_POS_MOUSE - places $window at current mouse position</member> + </simplelist> + <programlisting>$window-&gt;set_position(GTK_WIN_POS_CENTER);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.activate_focus"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>activate_focus</function></funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Activates focus. + </shortdesc> + <desc> + <para> + Activates focus. + <programlisting>$window-&gt;activate_focus;</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.activate_default"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>activate_default</function></funcdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Activates default. + </shortdesc> + <desc> + <para> + Activates default. + <programlisting>$window-&gt;activate_default;</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_transient_for"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_transient_for</function></funcdef> + <paramdef>char <parameter>parent_window</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets transient. + </shortdesc> + <desc> + <para> + Sets transient. + <programlisting>$window-&gt;set_transient_for($parent_window);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_default_size"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_default_size</function></funcdef> + <paramdef>int <parameter>width</parameter></paramdef> + <paramdef>int <parameter>height</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets default size. + </shortdesc> + <desc> + <para> + Sets default size for $window. + <programlisting>$window-&gt;set_default_size($width, $height);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_modal"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_modal</function></funcdef> + <paramdef>bool <parameter>modal</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets modal. + </shortdesc> + <desc> + <para> + Toggles modal on or off, where <literal>TRUE</literal> is on. + <programlisting>$window-&gt;set_modal;</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_focus"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_focus</function></funcdef> + <paramdef>char <parameter>widget</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets focus. + </shortdesc> + <desc> + <para> + Sets initial focus to a child widget. + <programlisting>$window-&gt;set_focus($entry);</programlisting> + </para> + </desc> + </method> + + <method id="gtk.gtkwindow.method.set_default"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>set_default</function></funcdef> + <paramdef>char <parameter>widget</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Sets default. + </shortdesc> + <desc> + <para> + Sets default. + <programlisting>$window-&gt;set_default($widget);</programlisting> + </para> + </desc> + </method> + + </methods> -</reference> +</classentry>
« previous php.gtk (#1451) next »