cvs: php-gtk /docs/en/classes gtkcontainer.xml
| From: | Markus Fischer | Date: | Thu, 26 Apr 2001 00:27:14 +0000 |
| Subject: | cvs: php-gtk /docs/en/classes gtkcontainer.xml | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1517@lists.php.net to get a copy of this message | ||
mfischer Wed Apr 25 17:27:14 2001 EDT
Modified files:
/php-gtk/docs/en/classes gtkcontainer.xml
Log:
Updated description, children() and small info to add()
Index: php-gtk/docs/en/classes/gtkcontainer.xml
diff -u php-gtk/docs/en/classes/gtkcontainer.xml:1.7 php-gtk/docs/en/classes/gtkcontainer.xml:1.8
--- php-gtk/docs/en/classes/gtkcontainer.xml:1.7 Tue Apr 24 04:34:25 2001
+++ php-gtk/docs/en/classes/gtkcontainer.xml Wed Apr 25 17:27:13 2001
@@ -2,14 +2,14 @@
<classmeta>
<classtitle>GtkContainer</classtitle>
<classparent>GtkWidget</classparent>
- <shortdesc>Base container class</shortdesc>
+ <shortdesc>Abstract container class for widgets</shortdesc>
<desc>
<para>
- GtkContainer is the base object for container class widgets,
- 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, except where overridden locally.
+ <literal>GtkContainer</literal> is the base object for container class
+ widgets, 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, except where
+ overridden locally.
</para>
</desc>
</classmeta>
@@ -30,7 +30,8 @@
</shortdesc>
<desc>
<para>
- Sets the border width of a container object.
+ The border defines the space in pixels which is left free around all
+ contained widgets.
<programlisting>$widget->set_border_width(10);</programlisting>
</para>
</desc>
@@ -52,6 +53,9 @@
<para>
Adds a widget from further down in the hierarchy into a container object.
<programlisting>$window->add($button);</programlisting>
+ Use any of the derived classes like <classname>GtkVBox</classname> and
+ their <function>pack_start()</function> and related methods to pack more
+ then just one widget into the container.
</para>
</desc>
</method>
@@ -92,9 +96,9 @@
<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>
+ <member><literal>GTK_RESIZE_PARENT</literal> - Passes resize request to the
parent</member>
+ <member><literal>GTK_RESIZE_QUEUE</literal> - Queues resizes on this
widget</member>
+ <member><literal>GTK_RESIZE_IMMEDIATE</literal> - Performs the resizes
now</member>
</simplelist>
<programlisting>$window->set_resize_mode(GTK_RESIZE_QUEUE);</programlisting>
</para>
@@ -124,19 +128,19 @@
<funcsynopsis>
<funcprototype>
<funcdef>
- list <function>children</function>
+ array <function>children</function>
</funcdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
- - - -
+ Returns an array of child widgets.
</shortdesc>
<desc>
<para>
- - - -
- <!-- serious verwirren - What is a GList?? and how does it relate here?
- sf .. OK so I know it's an array now, ty Markus -->
- <programlisting>$window->children();</programlisting>
+ Returns an array of child widgets associated with the container widget. If
+ it has only one child you can also access it with
+ <literal>$widget->child</literal>.
+ <programlisting>$children = $window->children();</programlisting>
</para>
</desc>
</method>
@@ -255,7 +259,7 @@
</shortdesc>
<desc>
<para>
- Registers $window as toplevel.
+ Registers <literal>$window</literal> as toplevel.
<programlisting>$window->register_toplevel();</programlisting>
</para>
</desc>
@@ -274,7 +278,7 @@
</shortdesc>
<desc>
<para>
- Undoes toplevel registration for $window.
+ Undoes toplevel registration for <literal>$window</literal>.
<programlisting>$window->unregister_toplevel();</programlisting>
</para>
</desc>