cvs: php-gtk-doc /examples/reference/gtk/gtkexpander constructor.phpw /manual/en/reference/gtk gtkbuttonbox.xml gtkcolorselection.xml
gtkcolorselectiondialog.xml gtkcurve.xml gtkenum.xml gtkexpander.xml gtkhbuttonbox.xml gtkvbuttonbox.xml
| From: | Christian Weiske | Date: | Fri, 02 Dec 2005 21:49:23 +0000 |
| Subject: | cvs: php-gtk-doc /examples/reference/gtk/gtkexpander constructor.phpw /manual/en/reference/gtk gtkbuttonbox.xml gtkcolorselection.xml gtkcolorselectiondialog.xml gtkcurve.xml gtkenum.xml gtkexpander.xml gtkhbuttonbox.xml gtkvbuttonbox.xml |
||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1681@lists.php.net to get a copy of this message | ||
cweiske Fri Dec 2 16:49:23 2005 EDT
Added files:
/php-gtk-doc/examples/reference/gtk/gtkexpander constructor.phpw
Modified files:
/php-gtk-doc/manual/en/reference/gtk gtkbuttonbox.xml
gtkcolorselection.xml
gtkcolorselectiondialog.xml
gtkcurve.xml gtkenum.xml
gtkexpander.xml
gtkhbuttonbox.xml
gtkvbuttonbox.xml
Log:
Patches by Jp and Anant
http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml:1.2 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,25 @@ <classtitle>GtkButtonBox</classtitle> <classparent>GtkBox</classparent> <shortdesc> - + Base class for GtkHButtonBox and GtkVButtonBox. </shortdesc> <desc> - + <para> + <classname>GtkButtonBox</classname> is a base class underlying + <classname>GtkHButtonBox</classname> and + <classname>GtkVButtonBox</classname>, that provides some methods to control + the button layout within those widgets. One of this methods is + <function class="GtkButtonBox">set_layout</function>, that applies one of + the <enumname>GtkButtonBoxStyle</enumname> layouts to the button box. Another + one is <function class="GtkButtonBox">set_child_secondary</function>, that + causes the child to appear in a secondary group of the button box. + </para> + <para> + The main purpose of <classname>GtkButtonBox</classname> is to make sure the + children have all the same size. Therefore it ignores the homogeneous + property which it inherited from GtkBox, and always behaves as if + homogeneous was <literal>TRUE</literal>. + </para> </desc> </classmeta> @@ -21,14 +36,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Gets child's internal padding. </shortdesc> <desc> <para> + <note> + Warning! This method has been DEPRECATED, and should NOT be used in newly + written code. Use the style properties + <literal>child-internal-pad-x/-y</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">set_child_ipadding</function> </para> - </desc> </method> @@ -40,14 +61,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets whether the child should appear in a secondary group of children. </shortdesc> <desc> <para> - See also: - <function class="GtkButtonBox">set_child_secondary</function> + Returns whether a child will appear in a secondary group of children. See + <function class="GtkButtonBox">set_child_secondary</function> for more + information. </para> - </desc> </method> @@ -59,14 +80,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Returns the current width and height of all child widgets in a + button box. </shortdesc> <desc> <para> + <note> + Warning! <function class="GtkButtonBox">get_child_size</function> is + DEPRECATED and should NOT be used in newly-written code. Use the style + properties <literal>child-min-width/-height</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">set_child_size</function> </para> - </desc> </method> @@ -78,14 +106,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Retrieves the method being used to arrange the buttons in a button box. </shortdesc> <desc> <para> + This returns the <enumname>GtkButtonBoxStyle</enumname> being used to + arrange the buttons in a button box. + </para> + <para> See also: <function class="GtkButtonBox">set_layout</function> </para> - </desc> </method> @@ -98,14 +129,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Changes the amount of internal padding used by all buttons in a + given button box. </shortdesc> <desc> <para> + <note> + Warning! This method is DEPRECATED and should NOT be used in + newly-written code. Use the style properties + <literal>child-internal-pad-x/-y</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">get_child_ipadding</function> </para> - </desc> </method> @@ -118,14 +156,26 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether child should appear in a secondary group of children. </shortdesc> <desc> <para> + This group appears after the other children if the style is + <literal>Gtk::BUTTONBOX_START</literal>, + <literal>Gtk::BUTTONBOX_SPREAD</literal> or + <literal>GTK::BUTTONBOX_EDGE</literal>, and before the other children if + the style is <literal>GTK::BUTTONBOX_END</literal>. For horizontal button + boxes, the definition of before/after depends on direction of the widget + (see <function class="GtkWidget">set_direction</function>). If the style + is <literal>Gtk::BUTTONBOX_START</literal> or + <literal>Gtk::BUTTONBOX_END</literal>, then the secondary children are + aligned at the other end of the button box from the main children. For the + other styles, they appear immediately next to the main children. + </para> + <para> See also: <function class="GtkButtonBox">get_child_secondary</function> </para> - </desc> </method> @@ -138,14 +188,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets a new default size for the children of a given button box. </shortdesc> <desc> <para> + <note> + Warning! This method is DEPRECATED and should NOT be used in + newly-written code. Use the style properties + <literal>child-min-width/-height</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">get_child_size</function> </para> - </desc> </method> @@ -153,18 +209,21 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_layout</function></funcdef> - <paramdef>GtkButtonBoxStyle <parameter>layout_style</parameter></paramdef> + <paramdef><enumname>GtkButtonBoxStyle</enumname> <parameter>layout_style</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Changes the way buttons are arranged in their container. </shortdesc> <desc> <para> + Defines one of the <enumname>GtkButtonBoxStyle</enumname> options as the + way the children should be arranjed in the containing button box. + </para> + <para> See also: <function class="GtkButtonBox">get_layout</function> </para> - </desc> </method> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.4 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,15 @@ <classtitle>GtkColorSelection</classtitle> <classparent>GtkVBox</classparent> <shortdesc> - + Widget that is used to select a color. </shortdesc> <desc> - + <classname>GtkColorSelection</classname> is a widget that is used to + select a color. The widget provides a very user friendly interface that + includes a 'color wheel' in addition to a number of sliders and entry + boxes for color parameters such as Hue, Saturation, Red, Green, Blue, and + opacity. The widget may be found on the standard color selection dialog + box <classname>GtkColorSelectionDialog</classname> </desc> </classmeta> @@ -21,10 +26,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkColorSelection</classname> </shortdesc> <desc> - + Creates a new <classname>GtkColorSelection</classname> widget used to + select a color. </desc> </constructor> @@ -40,14 +46,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Returns the color currently selected in the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + This method is used to return the currently selected color on the + <classname>GtkColorSelection</classname> widget. + </para> + <note> + WARNING! This method has been deprecated in PHP-Gtk2, and should NOT be + used in newly written code. Use + <function class="GtkColorSelection">get_current_color</function> instead. + </note> + <para> See also: - <function class="GtkColorSelection">set_color</function> + <function class="GtkColorSelection">set_color</function>, </para> - </desc> </method> @@ -59,14 +74,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current alpha value on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + This method returns the current alpha value of the color selected on the + specified <classname>GtkColorSelection</classname>. The value returned + is an integer between 0 and 65535. + </para> + <para> See also: <function class="GtkColorSelection">set_current_alpha</function> </para> - </desc> </method> @@ -78,14 +98,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current color selected on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to ascertain the color that is currently selected on + the <classname>GtkColorSelection</classname> widget. This function + returns a GdkColor Object, containing the values of red, blue, green and + pixel. + </para> + <para> See also: <function class="GtkColorSelection">set_current_color</function> </para> - </desc> </method> @@ -97,14 +123,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines if the GtkColorSelection has + opacity control enabled. </shortdesc> <desc> <para> + Use this method to ascertain whether the specified + <classname>GtkColorSelection</classname> has opacity (transparency) control + enabled or not. The function returns <literal>TRUE</literal> if opacity + controls are visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">set_has_opacity_control</function> </para> - </desc> </method> @@ -116,14 +148,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines if the widget has a palette. </shortdesc> <desc> <para> + Use this method to ascertain whether the specified + <classname>GtkColorSelection</classname> has a visible palette or not. + The function returns <literal>TRUE</literal> if the palette is visible, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">set_has_palette</function> </para> - </desc> </method> @@ -135,14 +172,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the previous alpha value on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to obtain the previous alpha value selected on the + specified <classname>GtkColorSelection</classname>. + </para> + <para> See also: <function class="GtkColorSelection">set_previous_alpha</function> </para> - </desc> </method> @@ -154,14 +195,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the previous color selected on the + widget. </shortdesc> <desc> <para> + Use this method to ascertain the color that was previously selected on + the <classname>GtkColorSelection</classname> widget. This function + returns a GdkColor Object, containing the values of red, blue, green and + pixel. + </para> + <para> See also: <function class="GtkColorSelection">set_previous_color</function> </para> - </desc> </method> @@ -173,10 +220,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the current state of the specified + <classname>GtkColorSelection</classname> </shortdesc> <desc> - + Use this method to find out whether the user is in the process of + selecting a color or if a color has been selected. The function returns + <literal>TRUE</literal> if the user is currently dragging a color around, + <literal>FALSE</literal> if the selection has stopped. </desc> </method> @@ -188,14 +239,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets the color currently selected in the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + This method is used to set the currently selected color on the + <classname>GtkColorSelection</classname> widget. + </para> + <note> + WARNING! This method has been deprecated in PHP-GTK 2, and should NOT be + used in newly written code. Use + <function class="GtkColorSelection">set_current_color</function> instead. + </note> + <para> See also: <function class="GtkColorSelection">get_color</function> </para> - </desc> </method> @@ -207,14 +267,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current alpha value on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to set the opacity of the currently selected color on + <classname>GtkColorSelection</classname> to the specified alpha + value. You may pass an integer between 0 and 65535 as a valid alpha value + in the parameter. + </para> + <para> See also: <function class="GtkColorSelection">get_current_alpha</function> </para> - </desc> </method> @@ -226,14 +292,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current color selected on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to set the current color on the specified. + <classname>GtkColorSelection</classname> widget. Colors should be + defined as GdkColor objects. + </para> + <para> See also: <function class="GtkColorSelection">get_current_color</function> </para> - </desc> </method> @@ -245,14 +316,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the opacity control is visible for the widget. </shortdesc> <desc> <para> + Use this method to set whether the opacity control for the + <classname>GtkColorSelection</classname> is visible or not. Pass + <literal>TRUE</literal> as a parameter if you want the opacity control + to be visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">get_has_opacity_control</function> </para> - </desc> </method> @@ -264,14 +340,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the palette is visible for the + <classname>GtkColorSelection</classname> widget is visible or not. </shortdesc> <desc> <para> + Use this method to set whether the opacity control for the + <classname>GtkColorSelection</classname> widget. + Pass <literal>TRUE</literal> as a parameter if you want the + palette to be visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">get_has_palette</function> </para> - </desc> </method> @@ -283,14 +365,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the previous value on alpha on the widget. </shortdesc> <desc> <para> + Use this method to set the 'previous' value of alpha on the specified + <classname>GtkColorSelection</classname> widget. This function however, + is hardly used, since it usually does not make sense to have the + previous value of alpha change. + </para> + <para> See also: <function class="GtkColorSelection">get_previous_alpha</function> </para> - </desc> </method> @@ -302,14 +389,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the previous color selected on the widget. </shortdesc> <desc> <para> + Use this method to set the 'previous' color selected on the specified + <classname>GtkColorSelection</classname> widget. This function however, + is hardly used, since it usually does not make sense to have the + previous color selected to change. + </para> + <para> See also: <function class="GtkColorSelection">get_previous_color</function> </para> - </desc> </method> @@ -321,10 +413,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets the policy controlling when the + <signalname class="GtkColorSelection">color-changed</signalname> signal + is emitted. </shortdesc> <desc> - + <note> + WARNING! This method has been deprecated in PHP-GTK 2, and should NOT be + used in newly written code. + </note> </desc> </method> @@ -341,9 +438,11 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the color changes in the + widget according to its update policy </shortdesc> <desc> - + FIXME </desc> </signal> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml?r1=1.3&r2=1.4&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.3 php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.4 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.3 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,13 @@ <classtitle>GtkColorSelectionDialog</classtitle> <classparent>GtkDialog</classparent> <shortdesc> - + A standard dialog box selecting a color. </shortdesc> <desc> - + The <classname>GtkColorSelectionDialog</classname> provides a standard + dialog box which allows the user to select a color. The Dialog box + implements the <classname>GtkColorSelection</classname> widget to enable + the user to pick a color. </desc> </classmeta> @@ -21,10 +24,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkColorSelectionDialog. </shortdesc> <desc> - + Use the constructor to create a new + <classname>GtkColorSelectionDialog</classname>. </desc> </constructor> @@ -36,9 +40,12 @@ <propname>cancel_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + The cancel button widget </shortdesc> <desc> - + This widget refers to the cancel button contained within the + <classname>GtkColorSelectionDialog</classname>. You may connect a + callback to handle the clicked signal. </desc> </property> @@ -46,9 +53,17 @@ <propname>colorsel</propname> <proptype>GtkWidget</proptype> <shortdesc> + GtkColorSelection widget of the dialog </shortdesc> <desc> - + This widget refers to the <classname>GtkColorSelection</classname> widget + contained within <classname>GtkColorSelectionDialog</classname>. You may + use this widget and its + <function class="GtkColorSelection">get_current_color</function> to + ascertain what color the user has selected. Another application would be + to use the widget's + <signalname class="GtkColor">color_changed</signalname> signal to be + notified when the color changes. </desc> </property> @@ -56,9 +71,12 @@ <propname>help_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + Help button widget. </shortdesc> <desc> - + This widget refers to the help button contained within the + <classname>GtkColorSelectionDialog</classname>. You may connect a + callback to handle the clicked signal. </desc> </property> @@ -66,9 +84,12 @@ <propname>ok_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + OK button widget. </shortdesc> <desc> - + This widget refers to the OK button contained within the + <classname>GtkColorSelectionDialog</classname>. You may connect a + callback to handle the clicked signal. </desc> </property> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.4 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,21 @@ <classtitle>GtkCurve</classtitle> <classparent>GtkDrawingArea</classparent> <shortdesc> - + Widget that allows editing of a curve. </shortdesc> <desc> - + <para> + The <classname>GtkCurve</classname> is a widget that allows the user to + directly edit a curve covering a range of values. + </para> + <para> + The <classname>GtkCurve</classname> widget has 3 modes of operation; + spline, linear and free. In spline mode the user places points on the + curve which are automatically connected together into a smooth curve. + In linear mode the user places points on the curve which are connected by + straight lines. In free mode the user can draw the points of the curve + freely, and they are not connected at all. + </para> </desc> </classmeta> @@ -21,10 +32,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkCurve</classname>. </shortdesc> <desc> - + Use this constructor to create a new <classname>GtkCurve</classname> + widget. </desc> </constructor> @@ -40,14 +52,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME </shortdesc> <desc> <para> See also: <function class="GtkCurve">set_vector</function> </para> - </desc> </method> @@ -59,10 +70,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Resets the curve to a straight line. </shortdesc> <desc> - + <para> + Use this method when you want to reset the curve to a straight line from + the minimum x and y values to the maximum x and y values (i.e. from the + bottom-left to the top-right corners). + </para> + <note> + The curve type is not changed when this function is called + </note> </desc> </method> @@ -74,10 +92,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the type of the curve. </shortdesc> <desc> - + <para> + Use this method when you want to set the type of the curve that you want + the user to draw. The existing curve will remain unchanged except when + changing from a free curve to a linear or spline curve, in which case, + the curve will be changed as little as possible. + </para> + <para> + Pass 0 as a parameter if you want the curve type to be linear, 1 for a + spline curve and 2 for a free type curve. + </para> </desc> </method> @@ -89,10 +116,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Recomputes the curve using the given gamma value. </shortdesc> <desc> - + <para> + Use this function to precisely control a curve using its gamma value. + The gamma value of a curves, directly correlates with its radius of + curvature. Hence, a gamma value of 1 will result in a straight line. + Values greater than 1 will result in bent curves above the straight + line, while values lesser than 1 give curves bent under the straight + line. + </para> + <note> + The curve type is automatically changed to <literal>Free</literal> when this function is + called. + </note> </desc> </method> @@ -107,10 +145,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the minimum and maximum x and y values of the curve. </shortdesc> <desc> - + <para> + Use this method if you want to bind the curve to certain minimum and + maximum values. The four parameters passed are the minimum x, maximum x, + minimum y and maximum y values respectively. + </para> + <note> + The curve is automatically reset with a call to + <function class="GtkCurve">reset</function> when this function is used. + </note> </desc> </method> @@ -122,14 +168,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME </shortdesc> <desc> <para> See also: <function class="GtkCurve">get_vector</function> </para> - </desc> </method> @@ -146,9 +191,14 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the curve type has been changed. </shortdesc> <desc> - + This signal is emitted when the curve type has been changed. The curve + type can be explicitly changed with a call to + <function class="GtkCurve">set_curve_type</function>. It is also changed + as a side-effect of calling <function class="GtkCurve">reset</function> + or <function class="GtkCurve">set_gamma</function>. </desc> </signal> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkenum.xml?r1=1.8&r2=1.9&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.8 php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.9 --- php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.8 Wed Nov 23 04:14:03 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkenum.xml Fri Dec 2 16:49:21 2005 @@ -327,7 +327,7 @@ <enum id="gtk.enum.buttonbox"> - <enumname>GtkButtonbox</enumname> + <enumname>GtkButtonBoxStyle</enumname> <desc> <simpara> Used to dictate the style that a <classname>GtkButtonBox</classname> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.4 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,24 @@ <classtitle>GtkExpander</classtitle> <classparent>GtkBin</classparent> <shortdesc> - + A container that can hide its child. </shortdesc> <desc> - + <para> + <classname>GtkExpander</classname> creates a container that can hide or + display details on request. This is achieved by using a small triangle + (similar to the one used in <classname>GtkTreeView</classname>) to control + whether the details are shown or not. If the triangle is pointing to the + right, details are hidden. On clicking the object, the triangle points + downward which indicates that the details are now visible. + </para> + <para> + You can use <classname>GtkExpander</classname> as any other descendant of + <classname>GtkBin</classname> by first creating the child widget and then + using <function class="GtkContainer">add</function> to add it to the + expander. When the expander is toggled, it automatically takes care of + showing and hiding the details. + </para> </desc> </classmeta> @@ -21,10 +35,25 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates an expander object. </shortdesc> <desc> - + <para> + Creates a new expander object using the parameter as the text of the label. + The example below illustrates the usage of the constructor. + </para> + <example> + <title> + Using Expander to Show/Hide details + <classname>GtkExpander</classname> + </title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkexpander/constructor.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </constructor> @@ -55,14 +84,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Return the current state of the expander </shortdesc> <desc> <para> + Queries a <classname>GtkExpander</classname> and returns its current state. + Returns <literal>TRUE</literal> if the child widget is revealed, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkExpander">set_expanded</function> </para> - </desc> </method> @@ -74,14 +107,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Fetches the text from the expander's label </shortdesc> <desc> <para> + Fetches the text from the label of the specified GtkExpander, as set by + <function class="GtkExpander">set_label</function>. If the label had not + been set, the return value will be <literal>NULL</literal>. + </para> + <para> See also: <function class="GtkExpander">set_label</function> </para> - </desc> </method> @@ -93,14 +130,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Retrieves the label widget </shortdesc> <desc> <para> + Use this method to retrieve the label widget for the specified + <classname>GtkExpander</classname> object. + </para> + <para> See also: <function class="GtkExpander">set_label_widget</function> </para> - </desc> </method> @@ -112,14 +152,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the value set by + <function class="GtkExpander">set_spacing</function> </shortdesc> <desc> <para> + Returns the spacing between the specified + <classname>GtkExpander</classname> and its child widget in pixels. + </para> + <para> See also: <function class="GtkExpander">set_spacing</function> </para> - </desc> </method> @@ -131,14 +175,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines if the child label's text is interpreted as Pango text markup + language. </shortdesc> <desc> <para> + This method returns <literal>TRUE</literal> if the specified + <classname>GtkExpander</classname> has a child label that contains text + to be parsed as markup. + </para> + <para> See also: <function class="GtkExpander">set_use_markup</function> </para> - </desc> </method> @@ -150,14 +199,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines whether an embedded underline in the expander label indicates + a mnemonic. </shortdesc> <desc> <para> + This method returns <literal>TRUE</literal> if an embedded underline + in the expander label indicates the mnemonic accelerator keys. + </para> + <para> See also: <function class="GtkExpander">set_use_underline</function> </para> - </desc> </method> @@ -169,14 +222,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the state of the child to 'visible'. </shortdesc> <desc> <para> + Use this method to set the state of the specified + <classname>GtkExpander</classname>. Set to <literal>TRUE</literal> if + you want the child widget to be revealed, and <literal>FALSE</literal> if + you want the child widget to be hidden. + </para> + <para> See also: <function class="GtkExpander">get_expanded</function> </para> - </desc> </method> @@ -188,14 +246,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the text of the label of the expander. </shortdesc> <desc> <para> + Use this method to set the text of the specified + <classname>GtkExpander</classname> to the passed parameter's value. Note + that using this function will also clear any previously set labels. + </para> + <para> See also: <function class="GtkExpander">get_label</function> </para> - </desc> </method> @@ -207,14 +269,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the label widget for the expander. </shortdesc> <desc> <para> + Use this method to set the label widget associated with the specified + <classname>GtkExpander</classname>. This is the widget that will appear + embedded alongside the expander arrow. + </para> + <para> See also: <function class="GtkExpander">get_label_widget</function> </para> - </desc> </method> @@ -226,14 +292,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the distance between the <classname>GtkExpander</classname> and its + child. </shortdesc> <desc> <para> + Use this method to set the number of pixels to place between the + <classname>GtkExpander</classname> object and its child (usually a + <classname>GtkLabel</classname>. + </para> + <para> See also: <function class="GtkExpander">get_spacing</function> </para> - </desc> </method> @@ -245,14 +316,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets if the child label's text is to be interpreted as Pango text markup + language. </shortdesc> <desc> <para> + Use this method if you want the label's text of the expander to be + interpreted as Pango text markup. Set to <literal>TRUE</literal> if you + want the text to interpreted as markup, <literal>FALSE</literal> + otherwise. + </para> + <para> See also: <function class="GtkExpander">get_use_markup</function> </para> - </desc> </method> @@ -264,14 +341,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether an underscore preceding a character in the label means that + the character is the mnemonic accelerator for the expander. </shortdesc> <desc> <para> + Use this method to allow an underscore to determine which character will + be set as the mnemonic accelerator for the specified + <classname>GtkExpander</classname>. The character immediately following + an underscore in the label text is set as the mnemonic. + </para> + <para> See also: <function class="GtkExpander">get_use_underline</function> </para> - </desc> </method> @@ -288,6 +371,7 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the expander is activated. </shortdesc> <desc> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,30 @@ <classtitle>GtkHButtonBox</classtitle> <classparent>GtkButtonBox</classparent> <shortdesc> - + Container for arranging buttons in a row. </shortdesc> <desc> - + <para> + A button box can be used to provide a consistent layout of buttons through + an application. A <classname>GtkHButtonBox</classname> arranges buttons in + a row. + </para> + <para> + Adding buttons to a <classname>GtkHButtonBox</classname> is done the same + way widgets are added to other containers, using + <function class="GtkContainer">add</function>. The + <function class="GtkContainer">pack_start</function> and + <function class="GtkContainer">pack_end</function> methods work exactly as + <function class="GtkContainer">add</function>, adding widgets according to + the current layout style and depending on whether the child button has had + <function class="GtkButtonBox">set_child_secondary</function> called on it. + </para> + <para> + The spacing between buttons can be set with + <function class="GtkBox">set_spacing</function>. The arrangement and layout + of the buttons can be changed with + <function class="GtkButtonBox">set_layout</function>. + </para> </desc> </classmeta> @@ -16,15 +36,41 @@ <constructor id="gtk.gtkhbuttonbox.constructor"> <funcsynopsis> <funcprototype> - <funcdef> <function>GtkHButtonBox</function></funcdef> + <funcdef>void <function>GtkHButtonBox</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkHButtonBox. </shortdesc> <desc> - + <para> + A new GtkHButtonBox is created as in the following example. Adding buttons + is also shown. + </para> + <!-- FIXME: Do inline examples require <?php ?> tags? --> + <programlisting role="php"><![CDATA[ + //Creating a GtkHButtonBox + $hbbox = new GtkHButtonBox(); + //Selecting a layout for the button box. Try other + //GtkButtonBoxStyle options to see the diference + $hbbox->set_layout(Gtk::BUTTONBOX_SPREAD); + //Setting the spacing + $hbbox->set_spacing(25); + + //Creating buttons to add + $button1 = new GtkButton('Button 1'); + $button2 = new GtkButton('Button 2'); + + //Adding the buttons to the GtkHButtonBox + $hbbox->add($button1); + $hbbox->add($button2); + ]]></programlisting> + <para> + Note that there are no parameters in the constructor. Also, as with all + container widgets, GtkHButtonBox takes up no space until its child + widgets are in place. + </para> </desc> </constructor> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,30 @@ <classtitle>GtkVButtonBox</classtitle> <classparent>GtkButtonBox</classparent> <shortdesc> - + Container for arranging buttons in a column. </shortdesc> <desc> - + <para> + A button box can be used to provide a consistent layout of buttons through + an application. A <classname>GtkVButtonBox</classname> arranges buttons in + a column. + </para> + <para> + Adding buttons to a <classname>GtkVButtonBox</classname> is done the same + way widgets are added to other containers, using + <function class="GtkContainer">add</function>. The + <function class="GtkContainer">pack_start</function> and + <function class="GtkContainer">pack_end</function> methods work exactly as + <function class="GtkContainer">add</function>, adding widgets according to + the current layout style and depending on whether the child button has had + <function class="GtkButtonBox">set_child_secondary</function> called on it. + </para> + <para> + The spacing between buttons can be set with + <function class="GtkBox">set_spacing</function>. The arrangement and layout + of the buttons can be changed with + <function class="GtkButtonBox">set_layout</function>. + </para> </desc> </classmeta> @@ -16,15 +36,41 @@ <constructor id="gtk.gtkvbuttonbox.constructor"> <funcsynopsis> <funcprototype> - <funcdef> <function>GtkVButtonBox</function></funcdef> + <funcdef>void <function>GtkVButtonBox</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkVButtonBox. </shortdesc> <desc> - + <para> + A new GtkVButtonBox is created as in the following example. Adding buttons + is also shown. + </para> + <!-- FIXME: Do inline examples require <?php ?> tags? --> + <programlisting role="php"><![CDATA[ + //Creating a GtkVButtonBox + $vbbox = new GtkVButtonBox(); + //Selecting a layout for the button box. Try other + //GtkButtonBoxStyle options to see the difference + $vbbox->set_layout(Gtk::BUTTONBOX_SPREAD); + //Setting the spacing + $vbbox->set_spacing(25); + + //Creating buttons to add + $button1 = new GtkButton('Button 1'); + $button2 = new GtkButton('Button 2'); + + //Adding the buttons to the GtkVButtonBox + $vbbox->add($button1); + $vbbox->add($button2); + ]]></programlisting> + <para> + Note that there are no parameters in the constructor. Also, as with all + container widgets, GtkVButtonBox takes up no space until its child + widgets are in place. + </para> </desc> </constructor> http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtkexpander/constructor.phpw?r=1.1&p=1 Index: php-gtk-doc/examples/reference/gtk/gtkexpander/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkexpander/constructor.phpw <?php /* Creating the callbacks for handling basic window functions */ function delete_event() { return false; } function destroy() { Gtk::main_quit(); } /* Creating and initialising a new window to add our expander to */ $window = new GtkWindow(); $window->connect('destroy', 'destroy'); $window->connect('delete-event', 'delete_event'); $window->set_title('GtkExpander Demo'); $window->set_default_size(250,60); $window->set_border_width(10); /* Creating a new expander object */ $expander = new GtkExpander('Expander'); /* Creating a label to store details */ $label = new GtkLabel('Details can be shown or hidden'); /* Adding the details to the expander */ $expander->add($label); /* Adding the expander to the window */ $window->add($expander); /* Displaying the window and starting the main loop */ $window->show_all(); Gtk::main(); ?>
http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml:1.2 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkbuttonbox.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,25 @@ <classtitle>GtkButtonBox</classtitle> <classparent>GtkBox</classparent> <shortdesc> - + Base class for GtkHButtonBox and GtkVButtonBox. </shortdesc> <desc> - + <para> + <classname>GtkButtonBox</classname> is a base class underlying + <classname>GtkHButtonBox</classname> and + <classname>GtkVButtonBox</classname>, that provides some methods to control + the button layout within those widgets. One of this methods is + <function class="GtkButtonBox">set_layout</function>, that applies one of + the <enumname>GtkButtonBoxStyle</enumname> layouts to the button box. Another + one is <function class="GtkButtonBox">set_child_secondary</function>, that + causes the child to appear in a secondary group of the button box. + </para> + <para> + The main purpose of <classname>GtkButtonBox</classname> is to make sure the + children have all the same size. Therefore it ignores the homogeneous + property which it inherited from GtkBox, and always behaves as if + homogeneous was <literal>TRUE</literal>. + </para> </desc> </classmeta> @@ -21,14 +36,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Gets child's internal padding. </shortdesc> <desc> <para> + <note> + Warning! This method has been DEPRECATED, and should NOT be used in newly + written code. Use the style properties + <literal>child-internal-pad-x/-y</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">set_child_ipadding</function> </para> - </desc> </method> @@ -40,14 +61,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets whether the child should appear in a secondary group of children. </shortdesc> <desc> <para> - See also: - <function class="GtkButtonBox">set_child_secondary</function> + Returns whether a child will appear in a secondary group of children. See + <function class="GtkButtonBox">set_child_secondary</function> for more + information. </para> - </desc> </method> @@ -59,14 +80,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Returns the current width and height of all child widgets in a + button box. </shortdesc> <desc> <para> + <note> + Warning! <function class="GtkButtonBox">get_child_size</function> is + DEPRECATED and should NOT be used in newly-written code. Use the style + properties <literal>child-min-width/-height</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">set_child_size</function> </para> - </desc> </method> @@ -78,14 +106,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Retrieves the method being used to arrange the buttons in a button box. </shortdesc> <desc> <para> + This returns the <enumname>GtkButtonBoxStyle</enumname> being used to + arrange the buttons in a button box. + </para> + <para> See also: <function class="GtkButtonBox">set_layout</function> </para> - </desc> </method> @@ -98,14 +129,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Changes the amount of internal padding used by all buttons in a + given button box. </shortdesc> <desc> <para> + <note> + Warning! This method is DEPRECATED and should NOT be used in + newly-written code. Use the style properties + <literal>child-internal-pad-x/-y</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">get_child_ipadding</function> </para> - </desc> </method> @@ -118,14 +156,26 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether child should appear in a secondary group of children. </shortdesc> <desc> <para> + This group appears after the other children if the style is + <literal>Gtk::BUTTONBOX_START</literal>, + <literal>Gtk::BUTTONBOX_SPREAD</literal> or + <literal>GTK::BUTTONBOX_EDGE</literal>, and before the other children if + the style is <literal>GTK::BUTTONBOX_END</literal>. For horizontal button + boxes, the definition of before/after depends on direction of the widget + (see <function class="GtkWidget">set_direction</function>). If the style + is <literal>Gtk::BUTTONBOX_START</literal> or + <literal>Gtk::BUTTONBOX_END</literal>, then the secondary children are + aligned at the other end of the button box from the main children. For the + other styles, they appear immediately next to the main children. + </para> + <para> See also: <function class="GtkButtonBox">get_child_secondary</function> </para> - </desc> </method> @@ -138,14 +188,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets a new default size for the children of a given button box. </shortdesc> <desc> <para> + <note> + Warning! This method is DEPRECATED and should NOT be used in + newly-written code. Use the style properties + <literal>child-min-width/-height</literal> instead. + </note> + </para> + <para> See also: <function class="GtkButtonBox">get_child_size</function> </para> - </desc> </method> @@ -153,18 +209,21 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_layout</function></funcdef> - <paramdef>GtkButtonBoxStyle <parameter>layout_style</parameter></paramdef> + <paramdef><enumname>GtkButtonBoxStyle</enumname> <parameter>layout_style</parameter></paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Changes the way buttons are arranged in their container. </shortdesc> <desc> <para> + Defines one of the <enumname>GtkButtonBoxStyle</enumname> options as the + way the children should be arranjed in the containing button box. + </para> + <para> See also: <function class="GtkButtonBox">get_layout</function> </para> - </desc> </method> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml:1.4 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorselection.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,15 @@ <classtitle>GtkColorSelection</classtitle> <classparent>GtkVBox</classparent> <shortdesc> - + Widget that is used to select a color. </shortdesc> <desc> - + <classname>GtkColorSelection</classname> is a widget that is used to + select a color. The widget provides a very user friendly interface that + includes a 'color wheel' in addition to a number of sliders and entry + boxes for color parameters such as Hue, Saturation, Red, Green, Blue, and + opacity. The widget may be found on the standard color selection dialog + box <classname>GtkColorSelectionDialog</classname> </desc> </classmeta> @@ -21,10 +26,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkColorSelection</classname> </shortdesc> <desc> - + Creates a new <classname>GtkColorSelection</classname> widget used to + select a color. </desc> </constructor> @@ -40,14 +46,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Returns the color currently selected in the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + This method is used to return the currently selected color on the + <classname>GtkColorSelection</classname> widget. + </para> + <note> + WARNING! This method has been deprecated in PHP-Gtk2, and should NOT be + used in newly written code. Use + <function class="GtkColorSelection">get_current_color</function> instead. + </note> + <para> See also: - <function class="GtkColorSelection">set_color</function> + <function class="GtkColorSelection">set_color</function>, </para> - </desc> </method> @@ -59,14 +74,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current alpha value on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + This method returns the current alpha value of the color selected on the + specified <classname>GtkColorSelection</classname>. The value returned + is an integer between 0 and 65535. + </para> + <para> See also: <function class="GtkColorSelection">set_current_alpha</function> </para> - </desc> </method> @@ -78,14 +98,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current color selected on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to ascertain the color that is currently selected on + the <classname>GtkColorSelection</classname> widget. This function + returns a GdkColor Object, containing the values of red, blue, green and + pixel. + </para> + <para> See also: <function class="GtkColorSelection">set_current_color</function> </para> - </desc> </method> @@ -97,14 +123,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines if the GtkColorSelection has + opacity control enabled. </shortdesc> <desc> <para> + Use this method to ascertain whether the specified + <classname>GtkColorSelection</classname> has opacity (transparency) control + enabled or not. The function returns <literal>TRUE</literal> if opacity + controls are visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">set_has_opacity_control</function> </para> - </desc> </method> @@ -116,14 +148,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines if the widget has a palette. </shortdesc> <desc> <para> + Use this method to ascertain whether the specified + <classname>GtkColorSelection</classname> has a visible palette or not. + The function returns <literal>TRUE</literal> if the palette is visible, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">set_has_palette</function> </para> - </desc> </method> @@ -135,14 +172,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the previous alpha value on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to obtain the previous alpha value selected on the + specified <classname>GtkColorSelection</classname>. + </para> + <para> See also: <function class="GtkColorSelection">set_previous_alpha</function> </para> - </desc> </method> @@ -154,14 +195,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the previous color selected on the + widget. </shortdesc> <desc> <para> + Use this method to ascertain the color that was previously selected on + the <classname>GtkColorSelection</classname> widget. This function + returns a GdkColor Object, containing the values of red, blue, green and + pixel. + </para> + <para> See also: <function class="GtkColorSelection">set_previous_color</function> </para> - </desc> </method> @@ -173,10 +220,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Gets the current state of the specified + <classname>GtkColorSelection</classname> </shortdesc> <desc> - + Use this method to find out whether the user is in the process of + selecting a color or if a color has been selected. The function returns + <literal>TRUE</literal> if the user is currently dragging a color around, + <literal>FALSE</literal> if the selection has stopped. </desc> </method> @@ -188,14 +239,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets the color currently selected in the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + This method is used to set the currently selected color on the + <classname>GtkColorSelection</classname> widget. + </para> + <note> + WARNING! This method has been deprecated in PHP-GTK 2, and should NOT be + used in newly written code. Use + <function class="GtkColorSelection">set_current_color</function> instead. + </note> + <para> See also: <function class="GtkColorSelection">get_color</function> </para> - </desc> </method> @@ -207,14 +267,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current alpha value on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to set the opacity of the currently selected color on + <classname>GtkColorSelection</classname> to the specified alpha + value. You may pass an integer between 0 and 65535 as a valid alpha value + in the parameter. + </para> + <para> See also: <function class="GtkColorSelection">get_current_alpha</function> </para> - </desc> </method> @@ -226,14 +292,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the current color selected on the + <classname>GtkColorSelection</classname> widget. </shortdesc> <desc> <para> + Use this method to set the current color on the specified. + <classname>GtkColorSelection</classname> widget. Colors should be + defined as GdkColor objects. + </para> + <para> See also: <function class="GtkColorSelection">get_current_color</function> </para> - </desc> </method> @@ -245,14 +316,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the opacity control is visible for the widget. </shortdesc> <desc> <para> + Use this method to set whether the opacity control for the + <classname>GtkColorSelection</classname> is visible or not. Pass + <literal>TRUE</literal> as a parameter if you want the opacity control + to be visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">get_has_opacity_control</function> </para> - </desc> </method> @@ -264,14 +340,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether the palette is visible for the + <classname>GtkColorSelection</classname> widget is visible or not. </shortdesc> <desc> <para> + Use this method to set whether the opacity control for the + <classname>GtkColorSelection</classname> widget. + Pass <literal>TRUE</literal> as a parameter if you want the + palette to be visible, <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkColorSelection">get_has_palette</function> </para> - </desc> </method> @@ -283,14 +365,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the previous value on alpha on the widget. </shortdesc> <desc> <para> + Use this method to set the 'previous' value of alpha on the specified + <classname>GtkColorSelection</classname> widget. This function however, + is hardly used, since it usually does not make sense to have the + previous value of alpha change. + </para> + <para> See also: <function class="GtkColorSelection">get_previous_alpha</function> </para> - </desc> </method> @@ -302,14 +389,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the previous color selected on the widget. </shortdesc> <desc> <para> + Use this method to set the 'previous' color selected on the specified + <classname>GtkColorSelection</classname> widget. This function however, + is hardly used, since it usually does not make sense to have the + previous color selected to change. + </para> + <para> See also: <function class="GtkColorSelection">get_previous_color</function> </para> - </desc> </method> @@ -321,10 +413,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + DEPRECATED. Sets the policy controlling when the + <signalname class="GtkColorSelection">color-changed</signalname> signal + is emitted. </shortdesc> <desc> - + <note> + WARNING! This method has been deprecated in PHP-GTK 2, and should NOT be + used in newly written code. + </note> </desc> </method> @@ -341,9 +438,11 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the color changes in the + widget according to its update policy </shortdesc> <desc> - + FIXME </desc> </signal> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml?r1=1.3&r2=1.4&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.3 php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.4 --- php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml:1.3 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcolorselectiondialog.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,13 @@ <classtitle>GtkColorSelectionDialog</classtitle> <classparent>GtkDialog</classparent> <shortdesc> - + A standard dialog box selecting a color. </shortdesc> <desc> - + The <classname>GtkColorSelectionDialog</classname> provides a standard + dialog box which allows the user to select a color. The Dialog box + implements the <classname>GtkColorSelection</classname> widget to enable + the user to pick a color. </desc> </classmeta> @@ -21,10 +24,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkColorSelectionDialog. </shortdesc> <desc> - + Use the constructor to create a new + <classname>GtkColorSelectionDialog</classname>. </desc> </constructor> @@ -36,9 +40,12 @@ <propname>cancel_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + The cancel button widget </shortdesc> <desc> - + This widget refers to the cancel button contained within the + <classname>GtkColorSelectionDialog</classname>. You may connect a + callback to handle the clicked signal. </desc> </property> @@ -46,9 +53,17 @@ <propname>colorsel</propname> <proptype>GtkWidget</proptype> <shortdesc> + GtkColorSelection widget of the dialog </shortdesc> <desc> - + This widget refers to the <classname>GtkColorSelection</classname> widget + contained within <classname>GtkColorSelectionDialog</classname>. You may + use this widget and its + <function class="GtkColorSelection">get_current_color</function> to + ascertain what color the user has selected. Another application would be + to use the widget's + <signalname class="GtkColor">color_changed</signalname> signal to be + notified when the color changes. </desc> </property> @@ -56,9 +71,12 @@ <propname>help_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + Help button widget. </shortdesc> <desc> - + This widget refers to the help button contained within the + <classname>GtkColorSelectionDialog</classname>. You may connect a + callback to handle the clicked signal. </desc> </property> @@ -66,9 +84,12 @@ <propname>ok_button</propname> <proptype>GtkWidget</proptype> <shortdesc> + OK button widget. </shortdesc> <desc> - + This widget refers to the OK button contained within the + <classname>GtkColorSelectionDialog</classname>. You may connect a + callback to handle the clicked signal. </desc> </property> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml:1.4 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkcurve.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,21 @@ <classtitle>GtkCurve</classtitle> <classparent>GtkDrawingArea</classparent> <shortdesc> - + Widget that allows editing of a curve. </shortdesc> <desc> - + <para> + The <classname>GtkCurve</classname> is a widget that allows the user to + directly edit a curve covering a range of values. + </para> + <para> + The <classname>GtkCurve</classname> widget has 3 modes of operation; + spline, linear and free. In spline mode the user places points on the + curve which are automatically connected together into a smooth curve. + In linear mode the user places points on the curve which are connected by + straight lines. In free mode the user can draw the points of the curve + freely, and they are not connected at all. + </para> </desc> </classmeta> @@ -21,10 +32,11 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new <classname>GtkCurve</classname>. </shortdesc> <desc> - + Use this constructor to create a new <classname>GtkCurve</classname> + widget. </desc> </constructor> @@ -40,14 +52,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME </shortdesc> <desc> <para> See also: <function class="GtkCurve">set_vector</function> </para> - </desc> </method> @@ -59,10 +70,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Resets the curve to a straight line. </shortdesc> <desc> - + <para> + Use this method when you want to reset the curve to a straight line from + the minimum x and y values to the maximum x and y values (i.e. from the + bottom-left to the top-right corners). + </para> + <note> + The curve type is not changed when this function is called + </note> </desc> </method> @@ -74,10 +92,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the type of the curve. </shortdesc> <desc> - + <para> + Use this method when you want to set the type of the curve that you want + the user to draw. The existing curve will remain unchanged except when + changing from a free curve to a linear or spline curve, in which case, + the curve will be changed as little as possible. + </para> + <para> + Pass 0 as a parameter if you want the curve type to be linear, 1 for a + spline curve and 2 for a free type curve. + </para> </desc> </method> @@ -89,10 +116,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Recomputes the curve using the given gamma value. </shortdesc> <desc> - + <para> + Use this function to precisely control a curve using its gamma value. + The gamma value of a curves, directly correlates with its radius of + curvature. Hence, a gamma value of 1 will result in a straight line. + Values greater than 1 will result in bent curves above the straight + line, while values lesser than 1 give curves bent under the straight + line. + </para> + <note> + The curve type is automatically changed to <literal>Free</literal> when this function is + called. + </note> </desc> </method> @@ -107,10 +145,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the minimum and maximum x and y values of the curve. </shortdesc> <desc> - + <para> + Use this method if you want to bind the curve to certain minimum and + maximum values. The four parameters passed are the minimum x, maximum x, + minimum y and maximum y values respectively. + </para> + <note> + The curve is automatically reset with a call to + <function class="GtkCurve">reset</function> when this function is used. + </note> </desc> </method> @@ -122,14 +168,13 @@ </funcprototype> </funcsynopsis> <shortdesc> - + FIXME </shortdesc> <desc> <para> See also: <function class="GtkCurve">get_vector</function> </para> - </desc> </method> @@ -146,9 +191,14 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the curve type has been changed. </shortdesc> <desc> - + This signal is emitted when the curve type has been changed. The curve + type can be explicitly changed with a call to + <function class="GtkCurve">set_curve_type</function>. It is also changed + as a side-effect of calling <function class="GtkCurve">reset</function> + or <function class="GtkCurve">set_gamma</function>. </desc> </signal> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkenum.xml?r1=1.8&r2=1.9&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkenum.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.8 php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.9 --- php-gtk-doc/manual/en/reference/gtk/gtkenum.xml:1.8 Wed Nov 23 04:14:03 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkenum.xml Fri Dec 2 16:49:21 2005 @@ -327,7 +327,7 @@ <enum id="gtk.enum.buttonbox"> - <enumname>GtkButtonbox</enumname> + <enumname>GtkButtonBoxStyle</enumname> <desc> <simpara> Used to dictate the style that a <classname>GtkButtonBox</classname> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml?r1=1.4&r2=1.5&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.4 php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.5 --- php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml:1.4 Tue Aug 2 07:01:44 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkexpander.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,24 @@ <classtitle>GtkExpander</classtitle> <classparent>GtkBin</classparent> <shortdesc> - + A container that can hide its child. </shortdesc> <desc> - + <para> + <classname>GtkExpander</classname> creates a container that can hide or + display details on request. This is achieved by using a small triangle + (similar to the one used in <classname>GtkTreeView</classname>) to control + whether the details are shown or not. If the triangle is pointing to the + right, details are hidden. On clicking the object, the triangle points + downward which indicates that the details are now visible. + </para> + <para> + You can use <classname>GtkExpander</classname> as any other descendant of + <classname>GtkBin</classname> by first creating the child widget and then + using <function class="GtkContainer">add</function> to add it to the + expander. When the expander is toggled, it automatically takes care of + showing and hiding the details. + </para> </desc> </classmeta> @@ -21,10 +35,25 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Creates an expander object. </shortdesc> <desc> - + <para> + Creates a new expander object using the parameter as the text of the label. + The example below illustrates the usage of the constructor. + </para> + <example> + <title> + Using Expander to Show/Hide details + <classname>GtkExpander</classname> + </title> + <programlisting role="php"> + <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" + href="&directory.examples;/reference/gtk/gtkexpander/constructor.phpw" parse="text"> + <xi:fallback>FIXME: MISSING XINCLUDE CONTENT</xi:fallback> + </xi:include> + </programlisting> + </example> </desc> </constructor> @@ -55,14 +84,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Return the current state of the expander </shortdesc> <desc> <para> + Queries a <classname>GtkExpander</classname> and returns its current state. + Returns <literal>TRUE</literal> if the child widget is revealed, + <literal>FALSE</literal> otherwise. + </para> + <para> See also: <function class="GtkExpander">set_expanded</function> </para> - </desc> </method> @@ -74,14 +107,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Fetches the text from the expander's label </shortdesc> <desc> <para> + Fetches the text from the label of the specified GtkExpander, as set by + <function class="GtkExpander">set_label</function>. If the label had not + been set, the return value will be <literal>NULL</literal>. + </para> + <para> See also: <function class="GtkExpander">set_label</function> </para> - </desc> </method> @@ -93,14 +130,17 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Retrieves the label widget </shortdesc> <desc> <para> + Use this method to retrieve the label widget for the specified + <classname>GtkExpander</classname> object. + </para> + <para> See also: <function class="GtkExpander">set_label_widget</function> </para> - </desc> </method> @@ -112,14 +152,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the value set by + <function class="GtkExpander">set_spacing</function> </shortdesc> <desc> <para> + Returns the spacing between the specified + <classname>GtkExpander</classname> and its child widget in pixels. + </para> + <para> See also: <function class="GtkExpander">set_spacing</function> </para> - </desc> </method> @@ -131,14 +175,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines if the child label's text is interpreted as Pango text markup + language. </shortdesc> <desc> <para> + This method returns <literal>TRUE</literal> if the specified + <classname>GtkExpander</classname> has a child label that contains text + to be parsed as markup. + </para> + <para> See also: <function class="GtkExpander">set_use_markup</function> </para> - </desc> </method> @@ -150,14 +199,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Determines whether an embedded underline in the expander label indicates + a mnemonic. </shortdesc> <desc> <para> + This method returns <literal>TRUE</literal> if an embedded underline + in the expander label indicates the mnemonic accelerator keys. + </para> + <para> See also: <function class="GtkExpander">set_use_underline</function> </para> - </desc> </method> @@ -169,14 +222,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the state of the child to 'visible'. </shortdesc> <desc> <para> + Use this method to set the state of the specified + <classname>GtkExpander</classname>. Set to <literal>TRUE</literal> if + you want the child widget to be revealed, and <literal>FALSE</literal> if + you want the child widget to be hidden. + </para> + <para> See also: <function class="GtkExpander">get_expanded</function> </para> - </desc> </method> @@ -188,14 +246,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the text of the label of the expander. </shortdesc> <desc> <para> + Use this method to set the text of the specified + <classname>GtkExpander</classname> to the passed parameter's value. Note + that using this function will also clear any previously set labels. + </para> + <para> See also: <function class="GtkExpander">get_label</function> </para> - </desc> </method> @@ -207,14 +269,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the label widget for the expander. </shortdesc> <desc> <para> + Use this method to set the label widget associated with the specified + <classname>GtkExpander</classname>. This is the widget that will appear + embedded alongside the expander arrow. + </para> + <para> See also: <function class="GtkExpander">get_label_widget</function> </para> - </desc> </method> @@ -226,14 +292,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the distance between the <classname>GtkExpander</classname> and its + child. </shortdesc> <desc> <para> + Use this method to set the number of pixels to place between the + <classname>GtkExpander</classname> object and its child (usually a + <classname>GtkLabel</classname>. + </para> + <para> See also: <function class="GtkExpander">get_spacing</function> </para> - </desc> </method> @@ -245,14 +316,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets if the child label's text is to be interpreted as Pango text markup + language. </shortdesc> <desc> <para> + Use this method if you want the label's text of the expander to be + interpreted as Pango text markup. Set to <literal>TRUE</literal> if you + want the text to interpreted as markup, <literal>FALSE</literal> + otherwise. + </para> + <para> See also: <function class="GtkExpander">get_use_markup</function> </para> - </desc> </method> @@ -264,14 +341,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets whether an underscore preceding a character in the label means that + the character is the mnemonic accelerator for the expander. </shortdesc> <desc> <para> + Use this method to allow an underscore to determine which character will + be set as the mnemonic accelerator for the specified + <classname>GtkExpander</classname>. The character immediately following + an underscore in the label text is set as the mnemonic. + </para> + <para> See also: <function class="GtkExpander">get_use_underline</function> </para> - </desc> </method> @@ -288,6 +371,7 @@ </funcprototype> </funcsynopsis> <shortdesc> + Emitted when the expander is activated. </shortdesc> <desc> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkhbuttonbox.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,30 @@ <classtitle>GtkHButtonBox</classtitle> <classparent>GtkButtonBox</classparent> <shortdesc> - + Container for arranging buttons in a row. </shortdesc> <desc> - + <para> + A button box can be used to provide a consistent layout of buttons through + an application. A <classname>GtkHButtonBox</classname> arranges buttons in + a row. + </para> + <para> + Adding buttons to a <classname>GtkHButtonBox</classname> is done the same + way widgets are added to other containers, using + <function class="GtkContainer">add</function>. The + <function class="GtkContainer">pack_start</function> and + <function class="GtkContainer">pack_end</function> methods work exactly as + <function class="GtkContainer">add</function>, adding widgets according to + the current layout style and depending on whether the child button has had + <function class="GtkButtonBox">set_child_secondary</function> called on it. + </para> + <para> + The spacing between buttons can be set with + <function class="GtkBox">set_spacing</function>. The arrangement and layout + of the buttons can be changed with + <function class="GtkButtonBox">set_layout</function>. + </para> </desc> </classmeta> @@ -16,15 +36,41 @@ <constructor id="gtk.gtkhbuttonbox.constructor"> <funcsynopsis> <funcprototype> - <funcdef> <function>GtkHButtonBox</function></funcdef> + <funcdef>void <function>GtkHButtonBox</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkHButtonBox. </shortdesc> <desc> - + <para> + A new GtkHButtonBox is created as in the following example. Adding buttons + is also shown. + </para> + <!-- FIXME: Do inline examples require <?php ?> tags? --> + <programlisting role="php"><![CDATA[ + //Creating a GtkHButtonBox + $hbbox = new GtkHButtonBox(); + //Selecting a layout for the button box. Try other + //GtkButtonBoxStyle options to see the diference + $hbbox->set_layout(Gtk::BUTTONBOX_SPREAD); + //Setting the spacing + $hbbox->set_spacing(25); + + //Creating buttons to add + $button1 = new GtkButton('Button 1'); + $button2 = new GtkButton('Button 2'); + + //Adding the buttons to the GtkHButtonBox + $hbbox->add($button1); + $hbbox->add($button2); + ]]></programlisting> + <para> + Note that there are no parameters in the constructor. Also, as with all + container widgets, GtkHButtonBox takes up no space until its child + widgets are in place. + </para> </desc> </constructor> http://cvs.php.net/diff.php/php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml?r1=1.2&r2=1.3&ty=u Index: php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml diff -u php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml:1.2 php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml:1.3 --- php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml:1.2 Tue Aug 2 07:01:45 2005 +++ php-gtk-doc/manual/en/reference/gtk/gtkvbuttonbox.xml Fri Dec 2 16:49:21 2005 @@ -4,10 +4,30 @@ <classtitle>GtkVButtonBox</classtitle> <classparent>GtkButtonBox</classparent> <shortdesc> - + Container for arranging buttons in a column. </shortdesc> <desc> - + <para> + A button box can be used to provide a consistent layout of buttons through + an application. A <classname>GtkVButtonBox</classname> arranges buttons in + a column. + </para> + <para> + Adding buttons to a <classname>GtkVButtonBox</classname> is done the same + way widgets are added to other containers, using + <function class="GtkContainer">add</function>. The + <function class="GtkContainer">pack_start</function> and + <function class="GtkContainer">pack_end</function> methods work exactly as + <function class="GtkContainer">add</function>, adding widgets according to + the current layout style and depending on whether the child button has had + <function class="GtkButtonBox">set_child_secondary</function> called on it. + </para> + <para> + The spacing between buttons can be set with + <function class="GtkBox">set_spacing</function>. The arrangement and layout + of the buttons can be changed with + <function class="GtkButtonBox">set_layout</function>. + </para> </desc> </classmeta> @@ -16,15 +36,41 @@ <constructor id="gtk.gtkvbuttonbox.constructor"> <funcsynopsis> <funcprototype> - <funcdef> <function>GtkVButtonBox</function></funcdef> + <funcdef>void <function>GtkVButtonBox</function></funcdef> <paramdef>void</paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a new GtkVButtonBox. </shortdesc> <desc> - + <para> + A new GtkVButtonBox is created as in the following example. Adding buttons + is also shown. + </para> + <!-- FIXME: Do inline examples require <?php ?> tags? --> + <programlisting role="php"><![CDATA[ + //Creating a GtkVButtonBox + $vbbox = new GtkVButtonBox(); + //Selecting a layout for the button box. Try other + //GtkButtonBoxStyle options to see the difference + $vbbox->set_layout(Gtk::BUTTONBOX_SPREAD); + //Setting the spacing + $vbbox->set_spacing(25); + + //Creating buttons to add + $button1 = new GtkButton('Button 1'); + $button2 = new GtkButton('Button 2'); + + //Adding the buttons to the GtkVButtonBox + $vbbox->add($button1); + $vbbox->add($button2); + ]]></programlisting> + <para> + Note that there are no parameters in the constructor. Also, as with all + container widgets, GtkVButtonBox takes up no space until its child + widgets are in place. + </para> </desc> </constructor> http://cvs.php.net/co.php/php-gtk-doc/examples/reference/gtk/gtkexpander/constructor.phpw?r=1.1&p=1 Index: php-gtk-doc/examples/reference/gtk/gtkexpander/constructor.phpw +++ php-gtk-doc/examples/reference/gtk/gtkexpander/constructor.phpw <?php /* Creating the callbacks for handling basic window functions */ function delete_event() { return false; } function destroy() { Gtk::main_quit(); } /* Creating and initialising a new window to add our expander to */ $window = new GtkWindow(); $window->connect('destroy', 'destroy'); $window->connect('delete-event', 'delete_event'); $window->set_title('GtkExpander Demo'); $window->set_default_size(250,60); $window->set_border_width(10); /* Creating a new expander object */ $expander = new GtkExpander('Expander'); /* Creating a label to store details */ $label = new GtkLabel('Details can be shown or hidden'); /* Adding the details to the expander */ $expander->add($label); /* Adding the expander to the window */ $window->add($expander); /* Displaying the window and starting the main loop */ $window->show_all(); Gtk::main(); ?>