cvs: php-gtk-doc /en/reference/gtk gtkbox.xml gtkcontainer.xml gtkenum.xml gtkhbox.xml gtklayout.xml gtktable.xml gtktablechild.xml gtkvbox.xml
gtkwindow.xml

From: Date: Fri, 15 Feb 2002 03:26:59 +0000
Subject: cvs: php-gtk-doc /en/reference/gtk gtkbox.xml gtkcontainer.xml gtkenum.xml gtkhbox.xml gtklayout.xml gtktable.xml gtktablechild.xml gtkvbox.xml
gtkwindow.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-398@lists.php.net to get a copy of this message
sfox Thu Feb 14 22:26:59 2002 EDT Modified files: /php-gtk-doc/en/reference/gtk gtkbox.xml gtkcontainer.xml gtkenum.xml gtkhbox.xml gtklayout.xml gtktable.xml gtktablechild.xml gtkvbox.xml gtkwindow.xml Log: Table, TableChild, and a few bits of cleaning following the discovery of GtkLayout's real nature :-\

Index: php-gtk-doc/en/reference/gtk/gtkbox.xml diff -u php-gtk-doc/en/reference/gtk/gtkbox.xml:1.10 php-gtk-doc/en/reference/gtk/gtkbox.xml:1.11 --- php-gtk-doc/en/reference/gtk/gtkbox.xml:1.10 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkbox.xml Thu Feb 14 22:26:59 2002 @@ -9,22 +9,23 @@ <desc> <simpara> <classname>GtkBox</classname> is a base class providing box - containers with properties and methods for packing any number - of child widgets. + containers <classname>GtkHBox</classname> and + <classname>GtkVBox</classname> with properties and methods for + packing any number of child widgets. </simpara> <simpara> Note that <classname>GtkBox</classname> is an abstract class and cannot be constructed directly. </simpara> <simpara> - See also: <classname>GtkContainer</classname>, - <classname>GtkBin</classname>, <classname>GtkBoxChild</classname>. + See also: <classname>GtkBin</classname>, + <classname>GtkBoxChild</classname>, <classname>GtkContainer</classname>, + <classname>GtkTable</classname>. </simpara> </desc> </classmeta> <methods> - <method id="gtk.gtkbox.method.pack_start"> <funcsynopsis> Index: php-gtk-doc/en/reference/gtk/gtkcontainer.xml diff -u php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.10 php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.11 --- php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.10 Sat Jan 26 09:45:04 2002 +++ php-gtk-doc/en/reference/gtk/gtkcontainer.xml Thu Feb 14 22:26:59 2002 @@ -158,8 +158,10 @@ </simpara> <simpara> The chief and potentially useful difference is that the array returned - by this method is reversed, so that the last item added to the container - has the position <literal>[0]</literal>. + by this method consists of the child widget itself rather than a + sub-array of information related to the child's packing dimensions. Note + that the array returned by either method is reversed, so that the last + item added to the container has the position <literal>[0]</literal>. </simpara> </desc> </method> Index: php-gtk-doc/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/en/reference/gtk/gtkenum.xml:1.28 php-gtk-doc/en/reference/gtk/gtkenum.xml:1.29 --- php-gtk-doc/en/reference/gtk/gtkenum.xml:1.28 Mon Feb 4 01:15:50 2002 +++ php-gtk-doc/en/reference/gtk/gtkenum.xml Thu Feb 14 22:26:59 2002 @@ -77,6 +77,33 @@ </enumoption> </enum> +<enum id="gtk.enum.gtkattachoptions"> + <enumname>GtkAttachOptions</enumname> + + <enumoption> + <optionname>GTK_EXPAND</optionname> + <shortdesc> + The child's allocated area will expand proportionately when the parent + container is resized. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_SHRINK</optionname> + <shortdesc> + The child will shrink to the dimensions of its size request regardless + of the size of the parent or its allocated area. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_FILL</optionname> + <shortdesc> + The child will expand to fill its allocated area. + </shortdesc> + </enumoption> +</enum> + <enum id="gtk.enum.gtkbuttonaction"> <enumname>GtkButtonAction</enumname> Index: php-gtk-doc/en/reference/gtk/gtkhbox.xml diff -u php-gtk-doc/en/reference/gtk/gtkhbox.xml:1.7 php-gtk-doc/en/reference/gtk/gtkhbox.xml:1.8 --- php-gtk-doc/en/reference/gtk/gtkhbox.xml:1.7 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkhbox.xml Thu Feb 14 22:26:59 2002 @@ -26,8 +26,7 @@ <simpara> See also: <classname>GtkContainer</classname>, <classname>GtkBox</classname>, <classname>GtkVBox</classname>, - <classname>GtkButtonBox</classname>, <classname>GtkLayout</classname>, - <classname>GtkTable</classname>. + <classname>GtkButtonBox</classname>, <classname>GtkTable</classname>. <!-- I would include GtkPacker here, but apparently it's dead. sf --> </simpara> </desc> Index: php-gtk-doc/en/reference/gtk/gtklayout.xml diff -u php-gtk-doc/en/reference/gtk/gtklayout.xml:1.3 php-gtk-doc/en/reference/gtk/gtklayout.xml:1.4 --- php-gtk-doc/en/reference/gtk/gtklayout.xml:1.3 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtklayout.xml Thu Feb 14 22:26:59 2002 @@ -15,8 +15,14 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkLayout</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>hadjustment</parameter></paramdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>vadjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>hadjustment</parameter> + </paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>vadjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -33,7 +39,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>put</function></funcdef> - <paramdef><classname>GtkWidget</classname> <parameter>widget</parameter></paramdef> + <paramdef> + <classname>GtkWidget</classname> + <parameter>widget</parameter> + </paramdef> <paramdef>int <parameter>x</parameter></paramdef> <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> @@ -50,7 +59,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>move</function></funcdef> - <paramdef><classname>GtkWidget</classname> <parameter>widget</parameter></paramdef> + <paramdef> + <classname>GtkWidget</classname> + <parameter>widget</parameter> + </paramdef> <paramdef>int <parameter>x</parameter></paramdef> <paramdef>int <parameter>y</parameter></paramdef> </funcprototype> @@ -82,7 +94,10 @@ <method id="gtk.gtklayout.method.get_hadjustment"> <funcsynopsis> <funcprototype> - <funcdef><classname>GtkAdjustment</classname> <function>get_hadjustment</function></funcdef> + <funcdef> + <classname>GtkAdjustment</classname> + <function>get_hadjustment</function> + </funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> @@ -97,7 +112,10 @@ <method id="gtk.gtklayout.method.get_vadjustment"> <funcsynopsis> <funcprototype> - <funcdef><classname>GtkAdjustment</classname> <function>get_vadjustment</function></funcdef> + <funcdef> + <classname>GtkAdjustment</classname> + <function>get_vadjustment</function> + </funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> @@ -113,7 +131,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_hadjustment</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> @@ -128,7 +149,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_vadjustment</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> Index: php-gtk-doc/en/reference/gtk/gtktable.xml diff -u php-gtk-doc/en/reference/gtk/gtktable.xml:1.4 php-gtk-doc/en/reference/gtk/gtktable.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtktable.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtktable.xml Thu Feb 14 22:26:59 2002 @@ -4,10 +4,29 @@ <classtitle>GtkTable</classtitle> <classparent>GtkContainer</classparent> <shortdesc> - Container that packs its children in regular patterns. + Container that provides a flexible grid for packing its children. </shortdesc> <desc> - + <simpara> + A <classname>GtkTable</classname> is a very adaptable container widget + that is capable of having the layout of its children structured in both + directions. There is a more simplistic version of a similar container + in <classname>GtkFixed</classname>, but <classname>GtkTable</classname> + offers the advantage that the child positions can be relative rather than + absolute. The table's stucturing is similar to that of a + <classname>GtkBox</classname>. + </simpara> + <simpara> + As with the box classes, there is an underlying single-child structure + containing packing information, which consitutes one element of the array + of child data in a <classname>GtkTable</classname>. This element is known + as a <classname>GtkTableChild</classname>, and can be accessed through + the <literal>children</literal> property inherited from + <classname>GtkContainer</classname>. The child objects themselves can + also be accessed more directly through the + <function class="GtkContainer">children()</function> method inherited + from the same ancestor. + </simpara> </desc> </classmeta> @@ -15,16 +34,97 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkTable</function></funcdef> - <paramdef>int <parameter><optional>rows = 1</optional></parameter></paramdef> - <paramdef>int <parameter><optional>columns = 1</optional></parameter></paramdef> - <paramdef>bool <parameter><optional>homogeneous = FALSE</optional></parameter></paramdef> + <paramdef>int + <parameter><optional>rows = 1</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>columns = 1</optional></parameter> + </paramdef> + <paramdef>bool + <parameter><optional>homogeneous = FALSE</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a container whose children are arranged on a grid. </shortdesc> <desc> - + <simpara> + It is not necessary to give the dimensions of a non-homogeneous + <classname>GtkTable</classname> in the constructor, as the table will + pick up the layout from the information given as its children are + attached to it, and this will override the initial integer settings. + If <parameter>homogeneous</parameter> is set to <literal>true</literal> + the reverse will be the case, and the table's settings take precedence. + </simpara> + <simpara> + You will find that you need to use the + <function class="GtkTable">attach()</function> method throughout, as the + way in which the <function class="GtkContainer">add()</function> method + generally used in containers is implemented in GTK+ to always position + an added child at <literal>0, 1, 0, 1</literal>. Once a grid square has + been filled, the widget taking up that space cannot be overwritten by + another widget. The <function class="GtkContainer">remove()</function> + method is fully operational. + </simpara> + <note> + <simpara> + The child widget sizing in a non-homogeneous + <classname>GtkTable</classname> is <emphasis>relative</emphasis>, and + will alter if one or more children is removed or resized. Again, this + is not true for the child widgets in a homogeneous table. + </simpara> + </note> + <simpara> + There are a lot of parameters in the + <function class="GtkTable">attach()</function> method - nine in total - + four of which are optional. Basically, if the + <parameter>homogeneous</parameter> parameter in the constructor is set to + <literal>true</literal>, there is very little point most of the time in + using any of the four optional packing parameters. These come into their + own when the children are not required to take up the same amount of + space. + </simpara> + <para> + <example> + <title>Packing a GtkTable with differently-sized child widgets</title> + <programlisting role="php"> +dl(&quot;php_gtk.&quot; . (strstr(PHP_OS, &quot;WIN&quot;) ? &quot;dll&quot; : +&quot;so&quot;)); + +$window = &amp;new GtkWindow(); +$window-&gt;set_position(GTK_WIN_POS_CENTER); +$window-&gt;connect_object(&quot;destroy&quot;, array(&quot;gtk&quot;, +&quot;main_quit&quot;)); + +$table = &amp;new GtkTable(); +$table-&gt;set_row_spacings(5); +$table-&gt;set_col_spacings(5); +$window-&gt;add($table); + +$text = &amp;new GtkText(); +$table-&gt;attach($text, 1, 4, 1, 3); + +$label = &amp;new GtkLabel('Expand this window to see the difference between +the GtkAttachOptions settings.'); +$table-&gt;attach($label, 1, 4, 4, 5, GTK_SHRINK, GTK_SHRINK); + +$button = &amp;new GtkButton('Button '); +$table-&gt;attach($button, 4, 6, 3, 4, GTK_SHRINK, GTK_SHRINK, 3, 3); + +$button = &amp;new GtkButton('Button 2 '); +$table-&gt;attach($button, 4, 6, 4, 5, GTK_FILL, GTK_FILL, 3, 3); + +$button = &amp;new GtkButton('Button 3 '); +$table-&gt;attach($button, 4, 6, 5, 6, GTK_FILL|GTK_EXPAND, +GTK_FILL|GTK_EXPAND, 3, 3); + +$window-&gt;show_all(); + +gtk::main(); + </programlisting> + </example> + </para> </desc> </constructor> @@ -39,10 +139,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Resizes to accommodate changes. </shortdesc> <desc> - + <simpara> + This method is used internally to resize the table and rearrange the + child widgets accordingly following a new child's attachment to a + non-homogeneous table, or a change in the size of the largest child + in a homogeneous table. + </simpara> + <simpara> + It can be used to redraw a homogeneous table with a new number of + rows and columns, all of which will have the same size as existing + rows and columns. It has no external use in a non-homogeneous table. + </simpara> </desc> </method> @@ -50,22 +160,92 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>attach</function></funcdef> - <paramdef><classname>GtkWidget</classname> <parameter>child</parameter></paramdef> + <paramdef> + <classname>GtkWidget</classname> + <parameter>child</parameter> + </paramdef> <paramdef>int <parameter>left_attach</parameter></paramdef> <paramdef>int <parameter>right_attach</parameter></paramdef> <paramdef>int <parameter>top_attach</parameter></paramdef> <paramdef>int <parameter>bottom_attach</parameter></paramdef> - <paramdef><enumname>GtkAttachOptions</enumname> <parameter><optional>xoptions = GTK_EXPAND|GTK_FILL</optional></parameter></paramdef> - <paramdef><enumname>GtkAttachOptions</enumname> <parameter><optional>yoptions = GTK_EXPAND|GTK_FILL</optional></parameter></paramdef> - <paramdef>int <parameter><optional>xpadding = 0</optional></parameter></paramdef> - <paramdef>int <parameter><optional>ypadding = 0</optional></parameter></paramdef> + <paramdef> + <enumname>GtkAttachOptions</enumname> + <parameter> + <optional>xoptions = GTK_EXPAND|GTK_FILL</optional> + </parameter> + </paramdef> + <paramdef> + <enumname>GtkAttachOptions</enumname> + <parameter> + <optional>yoptions = GTK_EXPAND|GTK_FILL</optional> + </parameter> + </paramdef> + <paramdef>int + <parameter><optional>xpadding = 0</optional></parameter> + </paramdef> + <paramdef>int + <parameter><optional>ypadding = 0</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Means of arranging child widgets in a <classname>GtkTable</classname>. </shortdesc> <desc> - + <simpara> + <function class="GtkTable">attach()</function> is the method used to + pack child widgets in a <classname>GtkTable</classname>. Of the nine + parameters delineated, five are absolutely needed. + </simpara> + <simpara> + The first parameter refers to the child widget that is to be attached. + </simpara> + <simpara> + The following pair of parameters denote the starting point that the + child will be drawn from, at the left hand side, and the end point that + the child will be drawn to, to the right. These parameters are given in + terms of columns, with the start point being <literal>0</literal>. + </simpara> + <simpara> + The pair after this denote the starting point that the child will be + drawn from, at the top, and the end point that the child will be drawn + to, at the bottom. These parameters are given in terms of rows, with + the start point again being <literal>0</literal>. + </simpara> + <note> + <simpara> + It is possible for a single child widget to span several rows or + columns. + </simpara> + </note> + <simpara> + As with all container widgets, the container itself takes up no screen + space until it contains a child widget or child widgets. If you attach + only one child with parameters that should set it in the bottom right + corner and set <parameter>homogeneous</parameter> to + <literal>false</literal>, the resulting effect will not be that of a + table with only one entry in the bottom right corner, but of a container + with a single widget in it - regardless of the number of columns and + rows specified in the table's constructor. Child settings always take + precedence in a non-homogeneous table, and so all table attachments are + relative to the other child widgets. This is in line with the behaviour + of other multiple-child capable containers where the child widget can + have its own packing parameters set. + </simpara> + <simpara> + The behaviour is very different when a regular grid is in position, which + happens when the <classname>GtkTable</classname> has its + <parameter>homogeneous</parameter> parameter set to + <literal>true</literal>. The table can work out the dimensions of the + grid from the the largest child widget's size request, and positions + its children accordingly. + </simpara> + <simpara> + The final four optional parameters determine the way in which the child + widget will respond to the area available to it (expand, shrink, fill) + in each direction, and the padding between the child and its nearest + border, in each direction. + </simpara> </desc> </method> @@ -73,7 +253,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>attach_defaults</function></funcdef> - <paramdef><classname>GtkWidget</classname> <parameter>widget</parameter></paramdef> + <paramdef> + <classname>GtkWidget</classname> + <parameter>widget</parameter> + </paramdef> <paramdef>int <parameter>left_attach</parameter></paramdef> <paramdef>int <parameter>right_attach</parameter></paramdef> <paramdef>int <parameter>top_attach</parameter></paramdef> @@ -81,10 +264,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Packing defaults. </shortdesc> <desc> - + <simpara> + The extra four parameters in + <function class="GtkTable">attach()</function> are all optional in + PHP-GTK, rendering this method unnecessary. + </simpara> </desc> </method> @@ -97,10 +284,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines the space below a given row. </shortdesc> <desc> - + <simpara> + Use this method to set the spacing below a given row, in pixels. + Note that it only works when the row below the given row is + populated and contains a child's upper edge. + </simpara> + <simpara> + The row count begins at <literal>0</literal>. + </simpara> </desc> </method> @@ -113,10 +307,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines the space to the right of a given column. </shortdesc> <desc> - + <simpara> + Use this method to set the spacing to the right of a given column, in + pixels. Note that it only works when the column to the right of the + given column is populated and contains a child's leftmost edge. + </simpara> + <simpara> + The column count begins at <literal>0</literal>. + </simpara> </desc> </method> @@ -128,10 +329,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines the spacing between all rows. </shortdesc> <desc> - + <simpara> + Use this method to set the spacing between all rows, in pixels. + </simpara> + <simpara> + The default setting is <literal>0</literal>. + </simpara> </desc> </method> @@ -143,10 +349,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines the spacing between all columns. </shortdesc> <desc> - + <simpara> + Use this method to set the spacing between all columns, in pixels. + </simpara> + <simpara> + The default setting is <literal>0</literal>. + </simpara> </desc> </method> @@ -158,13 +369,120 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets all child allocations to size of largest request. </shortdesc> <desc> - + <simpara> + <function class="GtkTable">set_homogeneous()</function> when set + to <literal>true</literal> makes all child widgets' allocated areas + the same size as that of the child requesting the most space. + </simpara> + <simpara> + In most cases, this would be better set at the point of construction. + </simpara> </desc> </method> </methods> + + <properties> + + <property id="gtk.gtktable.property.children" type="ro"> + <propname>children</propname> + <proptype>array</proptype> + <shortdesc> + Array of <classname>GtkTableChild</classname> elements. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkTable">children</propname> property consists + of an array of <classname>GtkTableChild</classname> elements. If you + need to access a widget, e.g. to change the text in a label, use the + <classname>GtkContainer</classname> method + <function class="GtkContainer">children()</function>, which separates + the widget element out of this property. + </simpara> + </desc> + </property> + + <property id="gtk.gtktable.property.nrows" type="ro"> + <propname>nrows</propname> + <proptype>int</proptype> + <shortdesc> + Number of rows. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkTable">nrows</propname> property consists + of the number of rows currently contained in a + <classname>GtkTable</classname>. + </simpara> + </desc> + </property> + + <property id="gtk.gtktable.property.ncols" type="ro"> + <propname>ncols</propname> + <proptype>int</proptype> + <shortdesc> + Number of columns. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkTable">ncols</propname> property consists + of the number of columns currently contained in a + <classname>GtkTable</classname>. + </simpara> + </desc> + </property> + + <property id="gtk.gtktable.property.column_spacing" type="ro"> + <propname>column_spacing</propname> + <proptype>int</proptype> + <shortdesc> + Spacing between columns. + </shortdesc> + <desc> + <simpara> + <propname class="GtkTable">column_spacing</propname> returns the + column spacing that has been set for the entire table using + <function class="GtkTable">set_col_spacings()</function>, or + <literal>0</literal> if none has been set. + </simpara> + </desc> + </property> + + <property id="gtk.gtktable.property.row_spacing" type="ro"> + <propname>row_spacing</propname> + <proptype>int</proptype> + <shortdesc> + Spacing between rows. + </shortdesc> + <desc> + <simpara> + <propname class="GtkTable">row_spacing</propname> returns the row + spacing that has been set for the entire table using + <function class="GtkTable">set_row_spacings()</function>, or + <literal>0</literal> if none has been set. + </simpara> + </desc> + </property> + + <property id="gtk.gtktable.property.homogeneous" type="ro"> + <propname>homogeneous</propname> + <proptype>bool</proptype> + <shortdesc> + Determines whether child sizing is homogeneous. + </shortdesc> + <desc> + <simpara> + <propname class="GtkTable">homogeneous</propname> when queried returns + <literal>1</literal> (<literal>true</literal>) if the table is + homogeneous, or <literal>0</literal> (<literal>false</literal>) if + it is not. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtktablechild.xml diff -u php-gtk-doc/en/reference/gtk/gtktablechild.xml:1.1 php-gtk-doc/en/reference/gtk/gtktablechild.xml:1.2 --- php-gtk-doc/en/reference/gtk/gtktablechild.xml:1.1 Thu Jan 31 14:55:21 2002 +++ php-gtk-doc/en/reference/gtk/gtktablechild.xml Thu Feb 14 22:26:59 2002 @@ -7,7 +7,32 @@ Helper class for <classname>GtkTable</classname>. </shortdesc> <desc> - + <simpara> + A <classname>GtkTableChild</classname> is an array of information + about a <classname>GtkTable</classname>'s child, which is itself + stacked in the array that makes up the table's + <propname class="GtkTable">children</propname> property. + </simpara> + <para> + Accessing these properties is therefore a two-tiered process: + <informalexample> + <programlisting role="php"> +$children = $table-&gt;children; +/*returns an array of GtkTableChild elements*/ + +for($i = 0; $i &lt; count($children); $i++) { +$child = $children[$i]; +/*returns the individual GtkTableChild element from the $children array's +current pointer position*/ + +$widget = $child-&gt;widget; +/*returns the widget property of the GtkTableChild*/ + +echo $widget-&gt;get_name().&quot;\n&quot;; +} + </programlisting> + </informalexample> + </para> </desc> </classmeta> @@ -17,11 +42,12 @@ <propname>widget</propname> <proptype>GtkObject</proptype> <shortdesc> - + The child widget. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">widget</propname> property returns + the child widget. </simpara> </desc> </property> @@ -30,11 +56,13 @@ <propname>left_attach</propname> <proptype>int</proptype> <shortdesc> - + Leftmost anchor. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">left_attach</propname> property + returns the number of the column that the child widget is attached to + on the leftmost side. The column count begins at <literal>0</literal>. </simpara> </desc> </property> @@ -43,11 +71,13 @@ <propname>right_attach</propname> <proptype>int</proptype> <shortdesc> - + Rightmost anchor. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">right_attach</propname> property + returns the number of the column that the child widget is attached to + on the rightmost side. The column count begins at <literal>0</literal>. </simpara> </desc> </property> @@ -56,11 +86,13 @@ <propname>top_attach</propname> <proptype>int</proptype> <shortdesc> - + Upper anchor. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">top_attach</propname> property + returns the number of the row that the child widget is attached to + on the upper side. The row count begins at <literal>0</literal>. </simpara> </desc> </property> @@ -69,11 +101,13 @@ <propname>bottom_attach</propname> <proptype>int</proptype> <shortdesc> - + Base anchor. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">bottom_attach</propname> property + returns the number of the row that the child widget is attached to + at the base. The row count begins at <literal>0</literal>. </simpara> </desc> </property> @@ -82,11 +116,13 @@ <propname>xpadding</propname> <proptype>int</proptype> <shortdesc> - + Padding to left and right. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">xpadding</propname> property + returns the integer value in pixels of the padding between the widget + and the left and right edges of its allocated area. </simpara> </desc> </property> @@ -95,24 +131,27 @@ <propname>ypadding</propname> <proptype>int</proptype> <shortdesc> - + Padding to top and bottom. </shortdesc> <desc> <simpara> - + The <propname class="GtkTableChild">ypadding</propname> property + returns the integer value in pixels of the padding between the widget + and the top and bottom edges of its allocated area. </simpara> </desc> </property> <property id="gtk.gtktablechild.property.xexpand" type="ro"> <propname>xexpand</propname> - <proptype>int</proptype> + <proptype>bool</proptype> <shortdesc> - + Child expansion left to right. </shortdesc> <desc> <simpara> - + Returns <literal>true</literal> if the <literal>GTK_EXPAND</literal> + flag is set on the <literal>x</literal> axis. </simpara> </desc> </property> @@ -121,11 +160,12 @@ <propname>yexpand</propname> <proptype>int</proptype> <shortdesc> - + Child expansion top to bottom. </shortdesc> <desc> <simpara> - + Returns <literal>true</literal> if the <literal>GTK_EXPAND</literal> + flag is set on the <literal>y</literal> axis. </simpara> </desc> </property> @@ -134,11 +174,12 @@ <propname>xshrink</propname> <proptype>int</proptype> <shortdesc> - + Child shrink left to right. </shortdesc> <desc> <simpara> - + Returns <literal>true</literal> if the <literal>GTK_SHRINK</literal> + flag is set on the <literal>x</literal> axis. </simpara> </desc> </property> @@ -147,11 +188,12 @@ <propname>yshrink</propname> <proptype>int</proptype> <shortdesc> - + Child shrink top to bottom. </shortdesc> <desc> <simpara> - + Returns <literal>true</literal> if the <literal>GTK_SHRINK</literal> + flag is set on the <literal>y</literal> axis. </simpara> </desc> </property> @@ -160,11 +202,12 @@ <propname>xfill</propname> <proptype>int</proptype> <shortdesc> - + Child fill left to right. </shortdesc> <desc> <simpara> - + Returns <literal>true</literal> if the <literal>GTK_FILL</literal> + flag is set on the <literal>x</literal> axis. </simpara> </desc> </property> @@ -173,11 +216,12 @@ <propname>yfill</propname> <proptype>int</proptype> <shortdesc> - + Child fill top to bottom. </shortdesc> <desc> <simpara> - + Returns <literal>true</literal> if the <literal>GTK_FILL</literal> + flag is set on the <literal>y</literal> axis. </simpara> </desc> </property> Index: php-gtk-doc/en/reference/gtk/gtkvbox.xml diff -u php-gtk-doc/en/reference/gtk/gtkvbox.xml:1.7 php-gtk-doc/en/reference/gtk/gtkvbox.xml:1.8 --- php-gtk-doc/en/reference/gtk/gtkvbox.xml:1.7 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkvbox.xml Thu Feb 14 22:26:59 2002 @@ -65,8 +65,7 @@ <simpara> See also: <classname>GtkContainer</classname>, <classname>GtkBox</classname>, <classname>GtkHBox</classname>, - <classname>GtkButtonBox</classname>, <classname>GtkLayout</classname>, - <classname>GtkTable</classname>. + <classname>GtkButtonBox</classname>, <classname>GtkTable</classname>. </simpara> </desc> </classmeta> Index: php-gtk-doc/en/reference/gtk/gtkwindow.xml diff -u php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.7 php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.8 --- php-gtk-doc/en/reference/gtk/gtkwindow.xml:1.7 Fri Feb 1 07:23:31 2002 +++ php-gtk-doc/en/reference/gtk/gtkwindow.xml Thu Feb 14 22:26:59 2002 @@ -46,6 +46,15 @@ described above are provided by the underlying system's window manager, and could possibly vary or be absent. </simpara> + <note> + <simpara> + A <classname>GtkWindow</classname> object is derived from + <classname>GtkBin</classname>, and can therefore only have one child + widget added to it directly. To add more children it is necessary to + make that child a container that can hold mulitple children. See + <classname>GtkBox</classname>. + </simpara> + </note> </desc> </classmeta>
« previous php.gtk.doc (#398) next »