cvs: php-gtk-doc /en/reference/gtk gtkrange.xml
| From: | Scott Mattocks | Date: | Mon, 02 Aug 2004 16:28:33 +0000 |
| Subject: | cvs: php-gtk-doc /en/reference/gtk gtkrange.xml | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1051@lists.php.net to get a copy of this message | ||
scottmattocks Mon Aug 2 12:28:33 2004 EDT
Modified files:
/php-gtk-doc/en/reference/gtk gtkrange.xml
Log:
Documented set_update_policy. Still needs example.
http://cvs.php.net/diff.php/php-gtk-doc/en/reference/gtk/gtkrange.xml?r1=1.6&r2=1.7&ty=u
Index: php-gtk-doc/en/reference/gtk/gtkrange.xml
diff -u php-gtk-doc/en/reference/gtk/gtkrange.xml:1.6 php-gtk-doc/en/reference/gtk/gtkrange.xml:1.7
--- php-gtk-doc/en/reference/gtk/gtkrange.xml:1.6 Mon Aug 2 09:27:56 2004
+++ php-gtk-doc/en/reference/gtk/gtkrange.xml Mon Aug 2 12:28:33 2004
@@ -4,11 +4,11 @@
<classtitle>GtkRange</classtitle>
<classparent>GtkWidget</classparent>
<shortdesc>
- Base class for <classname>GtkScale</classname> and
<classname>GtkScrollbar</classname>.
+ Base class for widgets that provide visual representations of
<classname>GtkAdjustment</classname>.
</shortdesc>
<desc>
<simpara>
- <classname>GtkRange</classname> is the base class for
<classname>GtkScale</classname> and <classname>GtkScrollbar</classname>.
<classname>GtkRange</classname> provides methods for dealing with the visual display of
widgets with sliders.
+ <classname>GtkRange</classname> is the base class for widgets that provide a visual
representation for <classname>GtkAdjustment</classname>. In PHP-GTK 1.0 those widgets
are <classname>GtkScale</classname> and <classname>GtkScrollbar</classname>.
<classname>GtkRange</classname> provides the methods common to classes that deal with
representing adjustments.
</simpara>
<simpara>
<classname>GtkRange</classname> is an abstract class and may not be directly
instantiated.
@@ -29,11 +29,11 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
- Returns a reference to the widget's adjustment child.
+ Returns the widget's adjustment child.
</shortdesc>
<desc>
<simpara>
- Returns a reference to the widget's adjustment child.
+ Returns the widget's adjustment child. The returned value should be assigned by reference
if you want method calls and other changes to be shown in the adjustment's parent widget.
</simpara>
<para>
<example>
@@ -45,7 +45,7 @@
$hScale = &new GtkHScale(new GtkAdjustment(.5, 0, 1, .1, .1, .1));
// Get the adjustment from the hScale
-$adj = &$hScale->get_adjustment();
+$adj =& $hScale->get_adjustment();
// Set the value to zero
$adj->set_value(0);
@@ -68,10 +68,15 @@
</funcprototype>
</funcsynopsis>
<shortdesc>
-
+ Sets the widgets update policy.
</shortdesc>
<desc>
-
+ <simpara>
+ Sets the widgets update policy to <parameter>policy</parameter>. The update
policy describes when the value of the adjustment is changed. When
<parameter>policy</parameter> is <enumname>GTK_UPDATE_CONTINUOUS</enumname>,
the value of the adjustment is updated while the slider is being moved. If
<parameter>policy</parameter> is <enumname>GTK_UPDATE_DELAYED</enumname>,
the value of the adjustment will be updated when the user has stopped moving the slider. When
<parameter>policy</parameter> is set to
<enumname>GTK_UPDATE_DISCONTINUOUS</enumname>, the value of the adjustment will not be
changed until the user has released the mouse button and ended the slider drag operation.
+ </simpara>
+ <simpara>
+ Anytime the value of the adjustment is changed, the <signalname
class="GtkAdjustment">value-changed</signalname> signal is emitted.
+ </simpara>
</desc>
</method>