cvs: php-gtk-doc /en/reference/gtk gtkdata.xml gtkeditable.xml gtkhscrollbar.xml gtkhseparator.xml gtkscale.xml gtkscrollbar.xml gtkseparator.xml
gtkvscrollbar.xml gtkvseparator.xml

From: Date: Thu, 07 Feb 2002 05:47:19 +0000
Subject: cvs: php-gtk-doc /en/reference/gtk gtkdata.xml gtkeditable.xml gtkhscrollbar.xml gtkhseparator.xml gtkscale.xml gtkscrollbar.xml gtkseparator.xml
gtkvscrollbar.xml gtkvseparator.xml
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-377@lists.php.net to get a copy of this message
sfox Thu Feb 7 00:47:19 2002 EDT Modified files: /php-gtk-doc/en/reference/gtk gtkdata.xml gtkeditable.xml gtkhscrollbar.xml gtkhseparator.xml gtkscale.xml gtkscrollbar.xml gtkseparator.xml gtkvscrollbar.xml gtkvseparator.xml Log: GtkEditable and a few small classes now complete.

Index: php-gtk-doc/en/reference/gtk/gtkdata.xml diff -u php-gtk-doc/en/reference/gtk/gtkdata.xml:1.4 php-gtk-doc/en/reference/gtk/gtkdata.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkdata.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkdata.xml Thu Feb 7 00:47:19 2002 @@ -7,8 +7,45 @@ Abstract base class for objects containing data. </shortdesc> <desc> - + <simpara> + <classname>GtkData</classname> is a legacy abstract base class providing + inheriting objects with a single signal - which no longer operates. + </simpara> + <simpara> + Objects that are descendants of this class are not widgets, and do not + take up screen space. They purely carry data. + </simpara> + <simpara> + In GTK 2, <classname>GtkData</classname> will cease to exist entirely, + and the objects that currently are derived from it will be derived + directly from <classname>GtkObject</classname> instead. + </simpara> </desc> </classmeta> + + <signals> + + <signal id="gtk.gtkdata.signal.disconnect"> + <signalname>disconnect</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkData</classname> object</paramdef> + </funcprototype> + </callback> + <shortdesc> + Never emitted. + </shortdesc> + <desc> + <simpara> + This is a legacy signal which has been implemented in + <classname>GtkData</classname> but nowhere else. You won't get an error + message by setting up a connection for it, but there is no longer any way + to make an object emit it - so don't bother. + </simpara> + </desc> + </signal> + + </signals> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkeditable.xml diff -u php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.5 php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.6 --- php-gtk-doc/en/reference/gtk/gtkeditable.xml:1.5 Mon Feb 4 01:15:49 2002 +++ php-gtk-doc/en/reference/gtk/gtkeditable.xml Thu Feb 7 00:47:19 2002 @@ -13,7 +13,94 @@ several methods, signals and properties, and also a set of keybindings that can be used for editing. </simpara> - <!-- of which more later! - sf feb 02 --> + <para> + <table> + <title>Key bindings for editing</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Key combination</entry> + <entry>Editing function</entry> + </row> + </thead> + <tbody> + <row> + <entry>Control + a</entry> + <entry>Move to the beginning of the line</entry> + </row> + <row> + <entry>Control + b</entry> + <entry>Move back one character</entry> + </row> + <row> + <entry>Control + c</entry> + <entry>Copy currently selected text</entry> + </row> + <row> + <entry>Control + d</entry> + <entry>Delete forward character</entry> + </row> + <row> + <entry>Control + e</entry> + <entry>Move to the end of the line</entry> + </row> + <row> + <entry>Control + f</entry> + <entry>Move forward one character</entry> + </row> + <row> + <entry>Control + h</entry> + <entry>Delete backward character</entry> + </row> + <row> + <entry>Control + k</entry> + <entry>Delete to line end</entry> + </row> + <row> + <entry>Control + n</entry> + <entry>Move to the next line (GtkText only)</entry> + </row> + <row> + <entry>Control + p</entry> + <entry>Move to the previous line (GtkText only)</entry> + </row> + <row> + <entry>Control + u</entry> + <entry>Delete current line</entry> + </row> + <row> + <entry>Control + v</entry> + <entry>Paste clipboard text</entry> + </row> + <row> + <entry>Control + w</entry> + <entry>Delete backward word</entry> + </row> + <row> + <entry>Control + x</entry> + <entry>Cut currently selected text</entry> + </row> + <row> + <entry>Alt + b</entry> + <entry>Move back one word</entry> + </row> + <row> + <entry>Alt + d</entry> + <entry>Delete forward word</entry> + </row> + <row> + <entry>Alt + f</entry> + <entry>Move forward one word</entry> + </row> + </tbody> + </tgroup> + </table> + </para> + <simpara> + There are also a host of signals that are used internally to enable + these editing functions to work. These signals have not been documented + here. + </simpara> </desc> </classmeta> @@ -28,10 +115,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Selects designated area of text. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">select_region()</function> selects + an area of text programmatically. The <parameter>start</parameter> + and <parameter>end</parameter> parameters can be + <literal>0, -1</literal> if the full text string is required. + </simpara> + <simpara> + Note that the editable widget needs to be realized prior to this method + being called on it. See + <function class="GtkEditable">claim_selection()</function>. + </simpara> </desc> </method> @@ -70,10 +167,20 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Deletes designated area of text. </shortdesc> <desc> - + <simpara> + Deletes the designated area of text. + </simpara> + <simpara> + As with all editing functions, <literal>0</literal> denotes the beginning + of the string, and <literal>-1</literal> the end position. + </simpara> + <simpara> + <function class="GtkEditable">delete_text()</function> also causes + the signal of the same name to be emitted. + </simpara> </desc> </method> @@ -86,10 +193,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns designated string. </shortdesc> <desc> - + <simpara> + This method is used to return the specified contents of a string. + To return the complete string, pass <literal>0, -1</literal> as the + parameters. + </simpara> </desc> </method> @@ -101,10 +212,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Copies and deletes selected string. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">cut_clipboard()</function> copies the + current selection to the clipboard. It then deletes the original text + using the position parameters of the selection. + </simpara> + <simpara> + It also causes the + <signalname class="GtkEditable">cut-clipboard</signalname> signal to + be emitted. + </simpara> </desc> </method> @@ -116,10 +236,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Copies selected string. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">copy_clipboard()</function> copies the + current selection to the clipboard. + </simpara> + <simpara> + It also causes the + <signalname class="GtkEditable">copy-clipboard</signalname> signal to + be emitted. + </simpara> </desc> </method> @@ -131,13 +259,23 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Pastes current clipboard contents. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">paste_clipboard()</function> pastes the + current clipboard contents at the cursor position. + </simpara> + <simpara> + It also causes the + <signalname class="GtkEditable">paste-clipboard</signalname> signal to + be emitted. + </simpara> </desc> </method> + <!-- DELETED? - another one that's probably internal only but not marked. + See what you think. - sf feb 02 --> <method id="gtk.gtkeditable.method.claim_selection"> <funcsynopsis> <funcprototype> @@ -147,13 +285,21 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Provides selection data. </shortdesc> <desc> - + <simpara> + This method is used internally as a way to provide + <function class="GtkEditable">select_region()</function> with all the + data it needs in order to work, including the underlying + <classname>GdkWindow</classname> that the + <classname>GtkSelectionData</classname> requires. It's not very useful + elsewhere. + </simpara> </desc> </method> + <!-- DELETED? - and this one, too - sf feb 02 --> <method id="gtk.gtkeditable.method.delete_selection"> <funcsynopsis> <funcprototype> @@ -162,10 +308,19 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Deletes selected text and accompanying selection data. </shortdesc> <desc> - + <simpara> + This method deletes the information held in the clipboard as + well as the text to which it relates. It is used internally to + differentiate between a full text delete and the deletion used + in <function class="GtkEditable">cut_clipboard()</function>. + </simpara> + <simpara> + Generally, use <function class="GtkEditable">delete_text()</function> + instead. + </simpara> </desc> </method> @@ -177,10 +332,18 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Causes <signalname class="GtkEditable">changed</signalname> signal to + be emitted. </shortdesc> <desc> - + <simpara> + This method causes the <classname>GtkEditable</classname> widget to + emit the <signalname class="GtkEditable">changed</signalname> signal. + </simpara> + <simpara> + It is called internally every time there is a change made to the text + string. + </simpara> </desc> </method> @@ -192,10 +355,14 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets the cursor position. </shortdesc> <desc> - + <simpara> + Sets the cursor position within the string of existing text. Note that + the calling editable widget must have keyboard focus in order for the + cursor position to be valid. + </simpara> </desc> </method> @@ -207,10 +374,12 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Returns the current cursor position. </shortdesc> <desc> - + <simpara> + This method returns the current cursor position. + </simpara> </desc> </method> @@ -222,13 +391,264 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Toggles whether the text is editable. </shortdesc> <desc> - + <simpara> + <function class="GtkEditable">set_editable()</function>, when set to + <literal>true</literal>, sets the widget to be editable by the user. + </simpara> + <simpara> + The default setting is <literal>false</literal>. + </simpara> </desc> </method> </methods> + + <signals> + + <signal id="gtk.gtkeditable.signal.changed"> + <signalname>changed</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when there is a change to the text string. + </shortdesc> + <desc> + <simpara> + Effectively, the only difference between this and the + <signalname class="GtkWidget">key-press-event</signalname> signal is + that the key press event is not passed to the callback function. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.insert-text"> + <signalname>insert-text</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + <paramdef>string text_string</paramdef> + <paramdef>int string_length</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when <function class="GtkEditable">insert_text()</function> is + called. + </shortdesc> + <desc> + <simpara> + This signal is emitted when the + <function class="GtkEditable">insert_text()</function> method is called, + which happens internally every time the text is added to by the end + user, at every key press. + </simpara> + <simpara> + The <parameter>string_length</parameter> that is passed is the length + of the string that is being inserted, and not the length of the string + that makes up the content of the text widget. + </simpara> + <simpara> + Note that there is a fourth parameter here that the signal cannot carry + in PHP-GTK because it is a GTK_TYPE_POINTER, which is an unsupported + type. Depending on the E-NOTICES settings in your + <filename>php.ini</filename> file, you may get an error message when you + connect this signal. This does not affect the signal's functionality. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.delete-text"> + <signalname>delete-text</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + <paramdef>int start_pos</paramdef> + <paramdef>int end_pos</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when text is deleted. + </shortdesc> + <desc> + <simpara> + This signal is emitted when the + <function class="GtkEditable">delete_text()</function> method is called, + which happens internally when the user presses the delete button and text + is currently selected. + </simpara> + <simpara> + The data that is passed with this signal consists of the calling class + and the start and end positions of the selection. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.activate"> + <signalname>activate</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when designated key is pressed. + </shortdesc> + <desc> + <simpara> + The <signalname class="GtkEditable">activate</signalname> signal is + usually fired when the user presses <literal>Return</literal>. However, + note that in <classname>GtkText</classname> both the + <literal>Return</literal> key and the arrow keys need to be combined + with the <literal>Control</literal> key in order to have their usual + effect. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.set-editable"> + <signalname>set-editable</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + <paramdef>bool is_editable</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when the <function class="GtkEditable">set_editable()</function> + method is called. + </shortdesc> + <desc> + <simpara> + This signal is emitted when the + <function class="GtkEditable">set_editable()</function> is called. It + carries a boolean value which determines in which direction the switch + has been made. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.cut-clipboard"> + <signalname>cut-clipboard</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when <function class="GtkEditable">cut_clipboard()</function> + is called. + </shortdesc> + <desc> + <simpara> + This signal is emitted when the + <function class="GtkEditable">cut_clipboard()</function> method is + called. This happens internally when the user presses the + <literal>Control</literal> and <literal>x</literal> keys silmultaneously. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.copy-clipboard"> + <signalname>copy-clipboard</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when <function class="GtkEditable">copy_clipboard()</function> + is called. + </shortdesc> + <desc> + <simpara> + This signal is emitted when the + <function class="GtkEditable">copy_clipboard()</function> method is + called. This happens internally when the user presses the + <literal>Control</literal> and <literal>c</literal> keys silmultaneously. + </simpara> + </desc> + </signal> + + <signal id="gtk.gtkeditable.signal.paste-clipboard"> + <signalname>paste-clipboard</signalname> + <callback> + <funcprototype> + <funcdef>void <function>callback</function></funcdef> + <paramdef><classname>GtkEditable</classname> widget</paramdef> + </funcprototype> + </callback> + <shortdesc> + Emitted when <function class="GtkEditable">paste_clipboard()</function> + is called. + </shortdesc> + <desc> + <simpara> + This signal is emitted when the + <function class="GtkEditable">paste_clipboard()</function> method is + called. This happens internally when the user presses the + <literal>Control</literal> and <literal>v</literal> keys silmultaneously. + </simpara> + </desc> + </signal> + + </signals> + + + <properties> + + <property id="gtk.gtkeditable.property.selection_start_pos" type="ro"> + <propname>selection_start_pos</propname> + <proptype>int</proptype> + <shortdesc> + Selection start position. + </shortdesc> + <desc> + <simpara> + The position in the text index that the current selection starts + from, if there is one. + </simpara> + </desc> + </property> + + <property id="gtk.gtkeditable.property.selection_end_pos" type="ro"> + <propname>selection_end_pos</propname> + <proptype>int</proptype> + <shortdesc> + Selection end position. + </shortdesc> + <desc> + <simpara> + The position in the text index that the current selection ends + at, if there is one. + </simpara> + </desc> + </property> + + <property id="gtk.gtkeditable.property.has_selection" type="ro"> + <propname>has_selection</propname> + <proptype>bool</proptype> + <shortdesc> + Indicates whether there is currently a selection. + </shortdesc> + <desc> + <simpara> + Indicates whether there is currently a selection. + </simpara> + </desc> + </property> + + </properties> </classentry> Index: php-gtk-doc/en/reference/gtk/gtkhscrollbar.xml diff -u php-gtk-doc/en/reference/gtk/gtkhscrollbar.xml:1.4 php-gtk-doc/en/reference/gtk/gtkhscrollbar.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkhscrollbar.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkhscrollbar.xml Thu Feb 7 00:47:19 2002 @@ -4,10 +4,12 @@ <classtitle>GtkHScrollbar</classtitle> <classparent>GtkScrollbar</classparent> <shortdesc> - Horizontall scrollbar. + Horizontal scrollbar. </shortdesc> <desc> - + <simpara> + A <classname>GtkHScrollbar</classname> is a horizontal scrollbar. + </simpara> </desc> </classmeta> @@ -15,14 +17,38 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkHScrollbar</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter>adjustment</parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter>adjustment</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a horizontal scrollbar. </shortdesc> <desc> - + <simpara> + A scrollbar needs a <classname>GtkAdjustment</classname> in order to + operate. The values that you give to the adjustment object will depend + on the situation where the scrollbar is intended to be used. + </simpara> + <simpara> + All scrollable widgets have their own adjustment object(s), and in most + instances where you are most likely to need a horizontal scrollbar it is + possible to create a handle for the widget's horizontal + <classname>GtkAdjustment</classname> and assign that as the new + scrollbar's adjustment object. + </simpara> + <note> + <simpara> + There is no working horizontal adjustment object in + <classname>GtkText</classname>. + </simpara> + </note> + <simpara> + See also: <classname>GtkAdjustment</classname>, + <classname>GtkVScrollbar</classname>. + </simpara> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkhseparator.xml diff -u php-gtk-doc/en/reference/gtk/gtkhseparator.xml:1.4 php-gtk-doc/en/reference/gtk/gtkhseparator.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkhseparator.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkhseparator.xml Thu Feb 7 00:47:19 2002 @@ -7,7 +7,21 @@ Horizontal separator. </shortdesc> <desc> - + <simpara> + A <classname>GtkHSeparator</classname> is a widget that consists of a + horizontal line. It is used to separate widgets that are laid out + vertically. + </simpara> + <note> + <simpara> + Separators cannot be added to menu widgets. See + <classname>GtkMenuItem</classname> for details. + </simpara> + </note> + <simpara> + See also: <classname>GtkVSeparator</classname>, + <function>gtk::paint_hline()</function>. + </simpara> </desc> </classmeta> @@ -19,10 +33,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Draws a horizontal line. </shortdesc> <desc> - + <simpara> + Constructing a <classname>GtkHSeparator</classname> and adding it to a + widget amounts to the same thing as drawing a horizontal line across + that widget. Use the container's packing methods to organise spacing + around the separator. + </simpara> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkscale.xml diff -u php-gtk-doc/en/reference/gtk/gtkscale.xml:1.4 php-gtk-doc/en/reference/gtk/gtkscale.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkscale.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkscale.xml Thu Feb 7 00:47:19 2002 @@ -22,7 +22,7 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Sets number of decimal places. </shortdesc> <desc> @@ -48,7 +48,10 @@ <funcsynopsis> <funcprototype> <funcdef>void <function>set_value_pos</function></funcdef> - <paramdef><enumname>GtkPositionType</enumname> <parameter>pos</parameter></paramdef> + <paramdef> + <enumname>GtkPositionType</enumname> + <parameter>pos</parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> Index: php-gtk-doc/en/reference/gtk/gtkscrollbar.xml diff -u php-gtk-doc/en/reference/gtk/gtkscrollbar.xml:1.4 php-gtk-doc/en/reference/gtk/gtkscrollbar.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkscrollbar.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkscrollbar.xml Thu Feb 7 00:47:19 2002 @@ -8,7 +8,14 @@ <classname>GtkVScrollbar</classname>. </shortdesc> <desc> - + <simpara> + <classname>GtkScrollbar</classname> is a base class providing the object + type that <classname>GtkHScrollbar</classname> and + <classname>GtkVScrollbar</classname> are derived from. + </simpara> + <simpara> + This is an abstract class, and as such cannot be constructed directly. + </simpara> </desc> </classmeta> Index: php-gtk-doc/en/reference/gtk/gtkseparator.xml diff -u php-gtk-doc/en/reference/gtk/gtkseparator.xml:1.4 php-gtk-doc/en/reference/gtk/gtkseparator.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkseparator.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkseparator.xml Thu Feb 7 00:47:19 2002 @@ -8,7 +8,14 @@ <classname>GtkVSeparator</classname>. </shortdesc> <desc> - + <simpara> + <classname>GtkSeparator</classname> is a base class providing the + underlying widget type for <classname>GtkHSeparator</classname> and + <classname>GtkVSeparator</classname>. + </simpara> + <simpara> + Note that this is an abstract class, and cannot be constructed directly. + </simpara> </desc> </classmeta> Index: php-gtk-doc/en/reference/gtk/gtkvscrollbar.xml diff -u php-gtk-doc/en/reference/gtk/gtkvscrollbar.xml:1.4 php-gtk-doc/en/reference/gtk/gtkvscrollbar.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkvscrollbar.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkvscrollbar.xml Thu Feb 7 00:47:19 2002 @@ -7,7 +7,9 @@ Vertical scrollbar. </shortdesc> <desc> - + <simpara> + A <classname>GtkVScrollbar</classname> is a vertical scrollbar. + </simpara> </desc> </classmeta> @@ -15,14 +17,38 @@ <funcsynopsis> <funcprototype> <funcdef> <function>GtkVScrollbar</function></funcdef> - <paramdef><classname>GtkAdjustment</classname> <parameter><optional>adjustment = NULL</optional></parameter></paramdef> + <paramdef> + <classname>GtkAdjustment</classname> + <parameter><optional>adjustment = NULL</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> <shortdesc> - + Creates a vertical scrollbar. </shortdesc> <desc> - + <simpara> + A scrollbar needs a <classname>GtkAdjustment</classname> in order to + operate. The values that you give to the adjustment object will depend + on the situation where the scrollbar is intended to be used. + </simpara> + <simpara> + All scrollable widgets have their own adjustment object(s), and in all + instances where you are most likely to need a vertical scrollbar it is + possible to create a handle for the widget's vertical + <classname>GtkAdjustment</classname> and assign that as the new + scrollbar's adjustment object. + </simpara> + <para> + For example: + <informalexample> + <programlisting role="php"> +$text = &amp;new GtkText(); +$adjustment = $text-&gt;vadj; +$scrollbar = &amp;new GtkVScrollbar($adjustment); + </programlisting> + </informalexample> + </para> </desc> </constructor> Index: php-gtk-doc/en/reference/gtk/gtkvseparator.xml diff -u php-gtk-doc/en/reference/gtk/gtkvseparator.xml:1.4 php-gtk-doc/en/reference/gtk/gtkvseparator.xml:1.5 --- php-gtk-doc/en/reference/gtk/gtkvseparator.xml:1.4 Sun Jan 20 14:47:43 2002 +++ php-gtk-doc/en/reference/gtk/gtkvseparator.xml Thu Feb 7 00:47:19 2002 @@ -7,7 +7,19 @@ Vertical separator. </shortdesc> <desc> - + <simpara> + A <classname>GtkVSeparator</classname> is a widget that consists of a + vertical line. It is used to separate widgets that are laid out + horizontally. + </simpara> + <simpara> + Separators cannot be used in menu widgets, and there is currently no + way to put a vertical separator into a <classname>GtkMenuBar</classname>. + </simpara> + <simpara> + See also: <classname>GtkHSeparator</classname>, + <function>gtk::paint_vline()</function>. + </simpara> </desc> </classmeta> @@ -19,10 +31,15 @@ </funcprototype> </funcsynopsis> <shortdesc> - + Draws a vertical line. </shortdesc> <desc> - + <simpara> + Constructing a <classname>GtkVSeparator</classname> and adding it to a + widget amounts to the same thing as drawing a vertical line across that + widget. Use the container's packing methods to determine the spacing + around the separator. + </simpara> </desc> </constructor>
« previous php.gtk.doc (#377) next »