cvs: php-gtk-doc /en/reference/gtk gtkalignment.xml gtkarrow.xml gtkcontainer.xml gtkenum.xml gtkmisc.xml gtkspinbutton.xml gtkwidget.xml
| From: | Steph Fox | Date: | Wed, 23 Jan 2002 06:30:29 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gtk gtkalignment.xml gtkarrow.xml gtkcontainer.xml gtkenum.xml gtkmisc.xml gtkspinbutton.xml gtkwidget.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-313@lists.php.net to get a copy of this message | ||
sfox Wed Jan 23 01:30:29 2002 EDT
Modified files:
/php-gtk-doc/en/reference/gtk gtkalignment.xml gtkarrow.xml
gtkcontainer.xml gtkenum.xml
gtkmisc.xml gtkspinbutton.xml
gtkwidget.xml
Log:
gtkalignment, gtkarrow done.
Index: php-gtk-doc/en/reference/gtk/gtkalignment.xml diff -u php-gtk-doc/en/reference/gtk/gtkalignment.xml:1.4 php-gtk-doc/en/reference/gtk/gtkalignment.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkalignment.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkalignment.xml Wed Jan 23 01:30:28 2002 @@ -4,10 +4,27 @@ <classtitle>GtkAlignment</classtitle> <classparent>GtkBin</classparent> <shortdesc> - A widget that controls the alignment and size of its child. + A container that controls the alignment and scale of its child. </shortdesc> <desc> - + <simpara> + <classname>GtkAlignment</classname> is a container class that controls + the alignment and scale of its child widget, relative to its own + dimensions. + </simpara> + <simpara> + Where the child widget has sizing responsibilites to a child or children + of its own, these are fulfilled as a priority. For example, a + <classname>GtkButton</classname> with a label will never be scaled down + to the minimal size that the same widget with no label can; the label + is the button's child, and the button must honour its size request. + </simpara> + <simpara> + See also: <classname>GtkAspectFrame</classname>, + <classname>GtkContainer</classname>, + <function class="GtkWidget">set_uposition()</function>, + <function class="GtkWidget">set_usize()</function>. + </simpara> </desc> </classmeta> @@ -22,10 +39,31 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a container that determines its child's alignment and scale. </shortdesc> <desc> - + <simpara> + A <classname>GtkAlignment</classname> object has control over its + child widget's relative position and size. Each parameter is a + double, with the minimum value being <literal>0.0</literal> and the + maximum value being <literal>1.0</literal>. + </simpara> + <simpara> + The first two parameters describe the positioning of the child widget, + with <literal>0.0</literal> being the left or top of the containing + <classname>GtkAlignment</classname> and <literal>1.0</literal> being + the right or bottom. A child with the setting + <literal>0.5, 0.5</literal> as the first two parameters is fully + centred, with scale being taken into consideration throughout. + </simpara> + <simpara> + The second pair of parameters determine the scale of the child widget, + with the setting <literal>1.0, 1.0</literal> having the child widget fill + the available area and the setting <literal>0.0, 0.0</literal> shrinking + the child to its minimum possible size. If the widget has no children of + its own, that can be just a couple of pixels in each direction - but it + must obey the size requests made by any such children. + </simpara> </desc> </constructor> @@ -42,10 +80,47 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets new parameter values for an existing + <classname>GtkAlignment</classname>. </shortdesc> <desc> - + <para> + This method sets new values for a <classname>GtkAdjustment</classname>'s + parameters. + <example> + <title> + Resetting <classname>GtkAdjustment</classname> parameters. + </title> + <programlisting role="php"> +dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); + +function change_it($align, &$i) { + if($i%2) $align->set(1.0, 1.0, 0.4, 0.3); + elseif($i%3) $align->set(0.0, 0.0, 0.6, 0.2); + else $align->set(0.0, 1.0, 0.1, 0.2); + $i++; + } + +$window = &new GtkWindow(); +$window->set_position(GTK_WIN_POS_CENTER); +$window->set_default_size((gdk::screen_width()-10), +(gdk::screen_height()-30)); +$window->connect_object('destroy', array('gtk', 'main_quit')); + +$align = &new GtkAlignment(0.5, 0.5, 1.0, 1.0); +$button = &new GtkButton("Click Here"); +$i = 0; +$button->connect_object('enter', 'change_it', $align, &$i); +$align->add($button); +$align->show_all(); + +$window->add($align); +$window->show_all(); + +gtk::main(); + </programlisting> + </example> + </para> </desc> </method> Index: php-gtk-doc/en/reference/gtk/gtkarrow.xml diff -u php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.4 php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkarrow.xml Wed Jan 23 01:30:28 2002 @@ -4,10 +4,18 @@ <classtitle>GtkArrow</classtitle> <classparent>GtkMisc</classparent> <shortdesc> - Displays an arrow pointing in one of the four cardinal directions. + An arrow pointing in one of the four cardinal directions. </shortdesc> <desc> - + <simpara> + The <classname>GtkArrow</classname> widget is a representation of an + isosceles triangle with its "nose" pointing in the specified + direction. The look of the arrow is varied through the choice + of <enumname>GtkShadowType</enumname>, and it inherits from the + <classname>GtkMisc</classname> class the ability to have its own + padding and alignment properties altered directly, both of which + can also have a surprisingly big impact on the arrow's appearance. + </simpara> </desc> </classmeta> @@ -15,15 +23,42 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkArrow</function></funcdef> - <paramdef><enumname>GtkArrowType</enumname> <parameter>arrow_type</parameter></paramdef> - <paramdef><enumname>GtkShadowType</enumname> <parameter>shadow_type</parameter></paramdef> + <paramdef> + <enumname>GtkArrowType</enumname> + <parameter>arrow_type</parameter> + </paramdef> + <paramdef> + <enumname>GtkShadowType</enumname> + <parameter>shadow_type</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Displays an arrow pointing in one of the four cardinal directions. </shortdesc> <desc> - + <simpara> + For a simple widget, there are a lot of options in the construction + of the <classname>GtkArrow</classname> - twenty different combinations + in all. + </simpara> + <simpara> + It may not be immediately obvious that the + <classname>GtkArrow</classname> is made up entirely of lines of shadow. + As a result of this, the <enumname>GtkShadowType</enumname> option + <literal>GTK_SHADOW_NONE</literal> actually creates an invisible arrow - + a potentially useful option to have, given that the parameters of the + arrow can be redefined at any point using the + <function class="GtkArrow">set()</function> method. + </simpara> + <para> + The syntax to create a right-pointing, etched arrow would be: + <informalexample> + <programlisting role="php"> +$arrow = &new GtkArrow(GTK_ARROW_RIGHT, GTK_SHADOW_ETCHED_IN); + </programlisting> + </informalexample> + </para> </desc> </constructor> @@ -33,18 +68,63 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set</function></funcdef> - <paramdef><enumname>GtkArrowType</enumname> <parameter>arrow_type</parameter></paramdef> - <paramdef><enumname>GtkShadowType</enumname> <parameter>shadow_type</parameter></paramdef> + <paramdef> + <enumname>GtkArrowType</enumname> + <parameter>arrow_type</parameter> + </paramdef> + <paramdef> + <enumname>GtkShadowType</enumname> + <parameter>shadow_type</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets new parameter values for an existing <classname>GtkArrow</classname>. </shortdesc> <desc> - + <simpara> + This method redefines the parameters for an existing + <classname>GtkArrow</classname>. It would typically be used within a + callback function where the arrow was required to point in another + direction, change its appearance and/or vanish. + </simpara> </desc> </method> </methods> + + <properties> + + <property id="gtk.gtkarrow.property.arrow_type" type="ro"> + <propname>arrow_type</propname> + <proptype><enumname>GtkArrowType</enumname></proptype> + <shortdesc> + Direction of arrow's nose. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkArrow">arrow_type</propname> property is a + <enumname>GtkArrowType</enumname> enumerated value which can be + queried to test in which direction the arrow is currently pointing. + </simpara> + </desc> + </property> + + <property id="gtk.gtkarrow.property.shadow_type" type="ro"> + <propname>shadow_type</propname> + <proptype><enumname>GtkShadowType</enumname></proptype> + <shortdesc> + Appearance of arrow. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkArrow">shadow_type</propname> property is a + <enumname>GtkShadowType</enumname> enumerated value which can be + queried to test the current style of the arrow's appearance. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkcontainer.xml diff -u php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.8 php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.9 --- php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.8 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkcontainer.xml Wed Jan 23 01:30:28 2002 @@ -20,6 +20,9 @@ <methods> + <!-- DELETED queue_resize(), clear_resize_widgets(), child_composite_name() + - marked as non-public methods, all - sf back end of '01 --> + <method id="gtk.gtkcontainer.method.set_border_width"> <funcsynopsis> <funcprototype> Index: php-gtk-doc/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/en/reference/gtk/gtkenum.xml:1.25 php-gtk-doc/en/reference/gtk/gtkenum.xml:1.26 --- php-gtk-doc/en/reference/gtk/gtkenum.xml:1.25 Tue Jan 22 10:25:29 2002 +++ php-gtk-doc/en/reference/gtk/gtkenum.xml Wed Jan 23 01:30:28 2002 @@ -45,6 +45,38 @@ </enumoption> </enum> +<enum id="gtk.enum.gtkarrowtype"> + <enumname>GtkArrowType</enumname> + + <enumoption> + <optionname>GTK_ARROW_UP</optionname> + <shortdesc> + The arrow points up. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ARROW_DOWN</optionname> + <shortdesc> + The arrow points down. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ARROW_LEFT</optionname> + <shortdesc> + The arrow points to the left. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ARROW_RIGHT</optionname> + <shortdesc> + The arrow points to the right. + </shortdesc> + </enumoption> +</enum> + <enum id="gtk.enum.gtkbuttonaction"> <enumname>GtkButtonAction</enumname> Index: php-gtk-doc/en/reference/gtk/gtkmisc.xml diff -u php-gtk-doc/en/reference/gtk/gtkmisc.xml:1.4 php-gtk-doc/en/reference/gtk/gtkmisc.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkmisc.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkmisc.xml Wed Jan 23 01:30:28 2002 @@ -4,10 +4,29 @@ <classtitle>GtkMisc</classtitle> <classparent>GtkWidget</classparent> <shortdesc> - Base class for widgets with alignment and padding. + Base class for widgets having their own alignment and padding. </shortdesc> <desc> - + <simpara> + <classname>GtkMisc</classname> is a base class bequeathing alignment + and padding properties and related methods to its descendants. + </simpara> + <simpara> + Most widgets do not have such properties on their own account, and + only get them through being packed into a multiple container such as + the <classname>GtkBox</classname> family members or + <classname>GtkTable</classname>, or else through using the + <classname>GtkAlignment</classname> widget which is designed to lend + a facsimile of these properties to its child widget. + </simpara> + <simpara> + It is therefore rare in GTK+ to find a widget capable of calling its + own alignment and padding properties directly, and only + <classname>GtkMisc</classname> descendants are able to do so. + </simpara> + <simpara> + This is an abstract base class, and cannot be directly constructed. + </simpara> </desc> </classmeta> @@ -22,10 +41,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets alignment. </shortdesc> <desc> - + <simpara> + <function class="GtkMisc">set_alignment()</function> sets the + relative positioning of the calling widget within its container. + <parameter>xalign</parameter> refers to the relative distance from + the left edge, and <parameter>yalign</parameter> to the + relative distance from the top edge of the container, with + <literal>0.0</literal> being no distance from those respective edges + and <literal>1.0</literal> being no distance from their opposites. + </simpara> </desc> </method> @@ -38,13 +65,81 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets padding. </shortdesc> <desc> - + <simpara> + <function class="GtkMisc">set_padding()</function> sets the padding + around the calling widget to the given number of pixels, in both + directions. + </simpara> </desc> </method> </methods> + + <properties> + + <property id="gtk.gtkmisc.property.xalign" type="ro"> + <propname>xalign</propname> + <proptype>double</proptype> + <shortdesc> + Relative distance from container's left edge. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">xalign</propname> property provides + the means to query the relative position of the widget to its + container along the horizontal axis. + </simpara> + </desc> + </property> + + <property id="gtk.gtkmisc.property.yalign" type="ro"> + <propname>yalign</propname> + <proptype>double</proptype> + <shortdesc> + Relative distance from container's top edge. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">yalign</propname> property provides + the means to query the relative position of the widget to its + container along the vertical axis. + </simpara> + </desc> + </property> + + <property id="gtk.gtkmisc.property.xpad" type="ro"> + <propname>xpad</propname> + <proptype>int</proptype> + <shortdesc> + Padding along horizontal axis. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">xpad</propname> property provides the + means to query the padding around the widget to the left and right of + the area it takes up. The returned integer represents pixels. + </simpara> + </desc> + </property> + + <property id="gtk.gtkmisc.property.ypad" type="ro"> + <propname>ypad</propname> + <proptype>int</proptype> + <shortdesc> + Padding along vertical axis. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">ypad</propname> property provides the + means to query the padding around the widget to the top and bottom of + the area it takes up. The returned integer represents pixels. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkspinbutton.xml diff -u php-gtk-doc/en/reference/gtk/gtkspinbutton.xml:1.5 php-gtk-doc/en/reference/gtk/gtkspinbutton.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtkspinbutton.xml:1.5 Tue Jan 22 10:25:29 2002 +++ php-gtk-doc/en/reference/gtk/gtkspinbutton.xml Wed Jan 23 01:30:28 2002 @@ -476,8 +476,25 @@ </desc> </method> - <!-- DELETED update() function as it seems it is for internal use only - - sf jan 02 --> + <method id="gtk.gtkspinbutton.method.update"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>update</function></funcdef> + <paramdef>void</paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Updates value according to settings. + </shortdesc> + <desc> + <simpara> + The <function class="GtkSpinButton">update()</function> method is used + internally to update the <literal>value</literal> field in the + underlying <classname>GtkAdjustment</classname> according to the + update policy, digits and snap settings. + </simpara> + </desc> + </method> </methods> Index: php-gtk-doc/en/reference/gtk/gtkwidget.xml diff -u php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.8 php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.9 --- php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.8 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkwidget.xml Wed Jan 23 01:30:28 2002 @@ -592,6 +592,10 @@ signal id is needed, and if we did we shouldn't - they're all internal. - sf jan 02 --> + <!-- DELETED ref(), unref(), destroy() - already covered in GtkObject. + - sf jan 02 --> + <!-- DELETED reset_shapes() - internal function (marked) - sf 20/12/01 --> + <method id="gtk.gtkwidget.method.lock_accelerators"> <funcsynopsis> <funcprototype> @@ -932,10 +936,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget's position relative to its container. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">set_uposition()</function> sets the + position of a child widget in pixels relative to the top left corner + of its container or, if the widget is a toplevel window, relative to + the top left corner of the screen. + </simpara> </desc> </method> @@ -948,10 +957,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget's size in pixels. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">set_usize()</function> sets a widget's + size in pixels. Sizing methods should only be called at one level of + the packing hierarchy; you may need to size either the container + or its children, but doing both will create conflicts in the size + requests made by child widgets internally, which in turn can lead + to unexpected results. + </simpara> + <simpara> + See also: <classname>GtkAlignment</classname>, and the packing methods + supplied by <classname>GtkBox</classname>. + </simpara> </desc> </method>
Index: php-gtk-doc/en/reference/gtk/gtkalignment.xml diff -u php-gtk-doc/en/reference/gtk/gtkalignment.xml:1.4 php-gtk-doc/en/reference/gtk/gtkalignment.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkalignment.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkalignment.xml Wed Jan 23 01:30:28 2002 @@ -4,10 +4,27 @@ <classtitle>GtkAlignment</classtitle> <classparent>GtkBin</classparent> <shortdesc> - A widget that controls the alignment and size of its child. + A container that controls the alignment and scale of its child. </shortdesc> <desc> - + <simpara> + <classname>GtkAlignment</classname> is a container class that controls + the alignment and scale of its child widget, relative to its own + dimensions. + </simpara> + <simpara> + Where the child widget has sizing responsibilites to a child or children + of its own, these are fulfilled as a priority. For example, a + <classname>GtkButton</classname> with a label will never be scaled down + to the minimal size that the same widget with no label can; the label + is the button's child, and the button must honour its size request. + </simpara> + <simpara> + See also: <classname>GtkAspectFrame</classname>, + <classname>GtkContainer</classname>, + <function class="GtkWidget">set_uposition()</function>, + <function class="GtkWidget">set_usize()</function>. + </simpara> </desc> </classmeta> @@ -22,10 +39,31 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a container that determines its child's alignment and scale. </shortdesc> <desc> - + <simpara> + A <classname>GtkAlignment</classname> object has control over its + child widget's relative position and size. Each parameter is a + double, with the minimum value being <literal>0.0</literal> and the + maximum value being <literal>1.0</literal>. + </simpara> + <simpara> + The first two parameters describe the positioning of the child widget, + with <literal>0.0</literal> being the left or top of the containing + <classname>GtkAlignment</classname> and <literal>1.0</literal> being + the right or bottom. A child with the setting + <literal>0.5, 0.5</literal> as the first two parameters is fully + centred, with scale being taken into consideration throughout. + </simpara> + <simpara> + The second pair of parameters determine the scale of the child widget, + with the setting <literal>1.0, 1.0</literal> having the child widget fill + the available area and the setting <literal>0.0, 0.0</literal> shrinking + the child to its minimum possible size. If the widget has no children of + its own, that can be just a couple of pixels in each direction - but it + must obey the size requests made by any such children. + </simpara> </desc> </constructor> @@ -42,10 +80,47 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets new parameter values for an existing + <classname>GtkAlignment</classname>. </shortdesc> <desc> - + <para> + This method sets new values for a <classname>GtkAdjustment</classname>'s + parameters. + <example> + <title> + Resetting <classname>GtkAdjustment</classname> parameters. + </title> + <programlisting role="php"> +dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so')); + +function change_it($align, &$i) { + if($i%2) $align->set(1.0, 1.0, 0.4, 0.3); + elseif($i%3) $align->set(0.0, 0.0, 0.6, 0.2); + else $align->set(0.0, 1.0, 0.1, 0.2); + $i++; + } + +$window = &new GtkWindow(); +$window->set_position(GTK_WIN_POS_CENTER); +$window->set_default_size((gdk::screen_width()-10), +(gdk::screen_height()-30)); +$window->connect_object('destroy', array('gtk', 'main_quit')); + +$align = &new GtkAlignment(0.5, 0.5, 1.0, 1.0); +$button = &new GtkButton("Click Here"); +$i = 0; +$button->connect_object('enter', 'change_it', $align, &$i); +$align->add($button); +$align->show_all(); + +$window->add($align); +$window->show_all(); + +gtk::main(); + </programlisting> + </example> + </para> </desc> </method> Index: php-gtk-doc/en/reference/gtk/gtkarrow.xml diff -u php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.4 php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkarrow.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkarrow.xml Wed Jan 23 01:30:28 2002 @@ -4,10 +4,18 @@ <classtitle>GtkArrow</classtitle> <classparent>GtkMisc</classparent> <shortdesc> - Displays an arrow pointing in one of the four cardinal directions. + An arrow pointing in one of the four cardinal directions. </shortdesc> <desc> - + <simpara> + The <classname>GtkArrow</classname> widget is a representation of an + isosceles triangle with its "nose" pointing in the specified + direction. The look of the arrow is varied through the choice + of <enumname>GtkShadowType</enumname>, and it inherits from the + <classname>GtkMisc</classname> class the ability to have its own + padding and alignment properties altered directly, both of which + can also have a surprisingly big impact on the arrow's appearance. + </simpara> </desc> </classmeta> @@ -15,15 +23,42 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkArrow</function></funcdef> - <paramdef><enumname>GtkArrowType</enumname> <parameter>arrow_type</parameter></paramdef> - <paramdef><enumname>GtkShadowType</enumname> <parameter>shadow_type</parameter></paramdef> + <paramdef> + <enumname>GtkArrowType</enumname> + <parameter>arrow_type</parameter> + </paramdef> + <paramdef> + <enumname>GtkShadowType</enumname> + <parameter>shadow_type</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Displays an arrow pointing in one of the four cardinal directions. </shortdesc> <desc> - + <simpara> + For a simple widget, there are a lot of options in the construction + of the <classname>GtkArrow</classname> - twenty different combinations + in all. + </simpara> + <simpara> + It may not be immediately obvious that the + <classname>GtkArrow</classname> is made up entirely of lines of shadow. + As a result of this, the <enumname>GtkShadowType</enumname> option + <literal>GTK_SHADOW_NONE</literal> actually creates an invisible arrow - + a potentially useful option to have, given that the parameters of the + arrow can be redefined at any point using the + <function class="GtkArrow">set()</function> method. + </simpara> + <para> + The syntax to create a right-pointing, etched arrow would be: + <informalexample> + <programlisting role="php"> +$arrow = &new GtkArrow(GTK_ARROW_RIGHT, GTK_SHADOW_ETCHED_IN); + </programlisting> + </informalexample> + </para> </desc> </constructor> @@ -33,18 +68,63 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set</function></funcdef> - <paramdef><enumname>GtkArrowType</enumname> <parameter>arrow_type</parameter></paramdef> - <paramdef><enumname>GtkShadowType</enumname> <parameter>shadow_type</parameter></paramdef> + <paramdef> + <enumname>GtkArrowType</enumname> + <parameter>arrow_type</parameter> + </paramdef> + <paramdef> + <enumname>GtkShadowType</enumname> + <parameter>shadow_type</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Sets new parameter values for an existing <classname>GtkArrow</classname>. </shortdesc> <desc> - + <simpara> + This method redefines the parameters for an existing + <classname>GtkArrow</classname>. It would typically be used within a + callback function where the arrow was required to point in another + direction, change its appearance and/or vanish. + </simpara> </desc> </method> </methods> + + <properties> + + <property id="gtk.gtkarrow.property.arrow_type" type="ro"> + <propname>arrow_type</propname> + <proptype><enumname>GtkArrowType</enumname></proptype> + <shortdesc> + Direction of arrow's nose. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkArrow">arrow_type</propname> property is a + <enumname>GtkArrowType</enumname> enumerated value which can be + queried to test in which direction the arrow is currently pointing. + </simpara> + </desc> + </property> + + <property id="gtk.gtkarrow.property.shadow_type" type="ro"> + <propname>shadow_type</propname> + <proptype><enumname>GtkShadowType</enumname></proptype> + <shortdesc> + Appearance of arrow. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkArrow">shadow_type</propname> property is a + <enumname>GtkShadowType</enumname> enumerated value which can be + queried to test the current style of the arrow's appearance. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkcontainer.xml diff -u php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.8 php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.9 --- php-gtk-doc/en/reference/gtk/gtkcontainer.xml:1.8 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkcontainer.xml Wed Jan 23 01:30:28 2002 @@ -20,6 +20,9 @@ <methods> + <!-- DELETED queue_resize(), clear_resize_widgets(), child_composite_name() + - marked as non-public methods, all - sf back end of '01 --> + <method id="gtk.gtkcontainer.method.set_border_width"> <funcsynopsis> <funcprototype> Index: php-gtk-doc/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/en/reference/gtk/gtkenum.xml:1.25 php-gtk-doc/en/reference/gtk/gtkenum.xml:1.26 --- php-gtk-doc/en/reference/gtk/gtkenum.xml:1.25 Tue Jan 22 10:25:29 2002 +++ php-gtk-doc/en/reference/gtk/gtkenum.xml Wed Jan 23 01:30:28 2002 @@ -45,6 +45,38 @@ </enumoption> </enum> +<enum id="gtk.enum.gtkarrowtype"> + <enumname>GtkArrowType</enumname> + + <enumoption> + <optionname>GTK_ARROW_UP</optionname> + <shortdesc> + The arrow points up. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ARROW_DOWN</optionname> + <shortdesc> + The arrow points down. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ARROW_LEFT</optionname> + <shortdesc> + The arrow points to the left. + </shortdesc> + </enumoption> + + <enumoption> + <optionname>GTK_ARROW_RIGHT</optionname> + <shortdesc> + The arrow points to the right. + </shortdesc> + </enumoption> +</enum> + <enum id="gtk.enum.gtkbuttonaction"> <enumname>GtkButtonAction</enumname> Index: php-gtk-doc/en/reference/gtk/gtkmisc.xml diff -u php-gtk-doc/en/reference/gtk/gtkmisc.xml:1.4 php-gtk-doc/en/reference/gtk/gtkmisc.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkmisc.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkmisc.xml Wed Jan 23 01:30:28 2002 @@ -4,10 +4,29 @@ <classtitle>GtkMisc</classtitle> <classparent>GtkWidget</classparent> <shortdesc> - Base class for widgets with alignment and padding. + Base class for widgets having their own alignment and padding. </shortdesc> <desc> - + <simpara> + <classname>GtkMisc</classname> is a base class bequeathing alignment + and padding properties and related methods to its descendants. + </simpara> + <simpara> + Most widgets do not have such properties on their own account, and + only get them through being packed into a multiple container such as + the <classname>GtkBox</classname> family members or + <classname>GtkTable</classname>, or else through using the + <classname>GtkAlignment</classname> widget which is designed to lend + a facsimile of these properties to its child widget. + </simpara> + <simpara> + It is therefore rare in GTK+ to find a widget capable of calling its + own alignment and padding properties directly, and only + <classname>GtkMisc</classname> descendants are able to do so. + </simpara> + <simpara> + This is an abstract base class, and cannot be directly constructed. + </simpara> </desc> </classmeta> @@ -22,10 +41,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets alignment. </shortdesc> <desc> - + <simpara> + <function class="GtkMisc">set_alignment()</function> sets the + relative positioning of the calling widget within its container. + <parameter>xalign</parameter> refers to the relative distance from + the left edge, and <parameter>yalign</parameter> to the + relative distance from the top edge of the container, with + <literal>0.0</literal> being no distance from those respective edges + and <literal>1.0</literal> being no distance from their opposites. + </simpara> </desc> </method> @@ -38,13 +65,81 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets padding. </shortdesc> <desc> - + <simpara> + <function class="GtkMisc">set_padding()</function> sets the padding + around the calling widget to the given number of pixels, in both + directions. + </simpara> </desc> </method> </methods> + + <properties> + + <property id="gtk.gtkmisc.property.xalign" type="ro"> + <propname>xalign</propname> + <proptype>double</proptype> + <shortdesc> + Relative distance from container's left edge. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">xalign</propname> property provides + the means to query the relative position of the widget to its + container along the horizontal axis. + </simpara> + </desc> + </property> + + <property id="gtk.gtkmisc.property.yalign" type="ro"> + <propname>yalign</propname> + <proptype>double</proptype> + <shortdesc> + Relative distance from container's top edge. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">yalign</propname> property provides + the means to query the relative position of the widget to its + container along the vertical axis. + </simpara> + </desc> + </property> + + <property id="gtk.gtkmisc.property.xpad" type="ro"> + <propname>xpad</propname> + <proptype>int</proptype> + <shortdesc> + Padding along horizontal axis. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">xpad</propname> property provides the + means to query the padding around the widget to the left and right of + the area it takes up. The returned integer represents pixels. + </simpara> + </desc> + </property> + + <property id="gtk.gtkmisc.property.ypad" type="ro"> + <propname>ypad</propname> + <proptype>int</proptype> + <shortdesc> + Padding along vertical axis. + </shortdesc> + <desc> + <simpara> + The <propname class="GtkMisc">ypad</propname> property provides the + means to query the padding around the widget to the top and bottom of + the area it takes up. The returned integer represents pixels. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkspinbutton.xml diff -u php-gtk-doc/en/reference/gtk/gtkspinbutton.xml:1.5 php-gtk-doc/en/reference/gtk/gtkspinbutton.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtkspinbutton.xml:1.5 Tue Jan 22 10:25:29 2002 +++ php-gtk-doc/en/reference/gtk/gtkspinbutton.xml Wed Jan 23 01:30:28 2002 @@ -476,8 +476,25 @@ </desc> </method> - <!-- DELETED update() function as it seems it is for internal use only - - sf jan 02 --> + <method id="gtk.gtkspinbutton.method.update"> + <funcsynopsis> + <funcprototype> + <funcdef>void <function>update</function></funcdef> + <paramdef>void</paramdef> + </funcprototype> + </funcsynopsis> + <shortdesc> + Updates value according to settings. + </shortdesc> + <desc> + <simpara> + The <function class="GtkSpinButton">update()</function> method is used + internally to update the <literal>value</literal> field in the + underlying <classname>GtkAdjustment</classname> according to the + update policy, digits and snap settings. + </simpara> + </desc> + </method> </methods> Index: php-gtk-doc/en/reference/gtk/gtkwidget.xml diff -u php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.8 php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.9 --- php-gtk-doc/en/reference/gtk/gtkwidget.xml:1.8 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkwidget.xml Wed Jan 23 01:30:28 2002 @@ -592,6 +592,10 @@ signal id is needed, and if we did we shouldn't - they're all internal. - sf jan 02 --> + <!-- DELETED ref(), unref(), destroy() - already covered in GtkObject. + - sf jan 02 --> + <!-- DELETED reset_shapes() - internal function (marked) - sf 20/12/01 --> + <method id="gtk.gtkwidget.method.lock_accelerators"> <funcsynopsis> <funcprototype> @@ -932,10 +936,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget's position relative to its container. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">set_uposition()</function> sets the + position of a child widget in pixels relative to the top left corner + of its container or, if the widget is a toplevel window, relative to + the top left corner of the screen. + </simpara> </desc> </method> @@ -948,10 +957,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets widget's size in pixels. </shortdesc> <desc> - + <simpara> + <function class="GtkWidget">set_usize()</function> sets a widget's + size in pixels. Sizing methods should only be called at one level of + the packing hierarchy; you may need to size either the container + or its children, but doing both will create conflicts in the size + requests made by child widgets internally, which in turn can lead + to unexpected results. + </simpara> + <simpara> + See also: <classname>GtkAlignment</classname>, and the packing methods + supplied by <classname>GtkBox</classname>. + </simpara> </desc> </method>