cvs: php-gtk /docs manual.xml.in /docs/en/classes gtklabel.xml
| From: | Steph Fox | Date: | Wed, 11 Apr 2001 00:46:30 +0000 |
| Subject: | cvs: php-gtk /docs manual.xml.in /docs/en/classes gtklabel.xml | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-1340@lists.php.net to get a copy of this message | ||
sfox Tue Apr 10 17:46:30 2001 EDT
Added files:
/php-gtk/docs/en/classes gtklabel.xml
Modified files:
/php-gtk/docs manual.xml.in
Log:
: ----------------------------------------------------------------------
Index: php-gtk/docs/manual.xml.in
diff -u php-gtk/docs/manual.xml.in:1.18 php-gtk/docs/manual.xml.in:1.19
--- php-gtk/docs/manual.xml.in:1.18 Tue Apr 10 11:20:31 2001
+++ php-gtk/docs/manual.xml.in Tue Apr 10 17:46:29 2001
@@ -58,6 +58,7 @@
&classes.gtkmisc;
&classes.gtkcontainer;
&classes.gtkbin;
+ &classes.gtklabel;
</classset>
<part id="appendixes">
Index: php-gtk/docs/en/classes/gtklabel.xml
+++ php-gtk/docs/en/classes/gtklabel.xml
<classentry id="gtk.gtklabel">
<classmeta>
<classtitle>GtkLabel</classtitle>
<classparent>GtkMisc</classparent>
<shortdesc>Label class object</shortdesc>
<desc>
<para>
GtkLabel is a widget for displaying a small amount of text. If you need to display a great deal
of text, use GtkText instead.
</para>
<para>
There are no signals associated with this object other than those it inherits from the relevant
base classes.
</para>
</desc>
</classmeta>
<methods>
<method>
<funcsynopsis>
<funcprototype>
<funcdef>
void <function>set_text</function>
</funcdef>
<paramdef>char <parameter>labeltext</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
Writes text to the label
</shortdesc>
<desc>
<para>
<function>Set_text</function> is not needed when first creating a label; this
method is only useful for adding text to a label after it has been created. It could be used (for
example) to declare server connection status, or to reflect user input.
</para>
<para>
The syntax for creating a label with static text in it would be as follows:
<programlisting><![CDATA[var label = &new GtkLabel("Static Text From Start
To Finish");]]></programlisting>
</para>
</desc>
</method>
<method>
<funcsynopsis>
<funcprototype>
<funcdef>
void <function>set_justify</function>
</funcdef>
<paramdef>int <parameter>justify</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
Justify method
</shortdesc>
<desc>
<para>
This is the method for justifying text in GtkLabel. The options are pre-set enum flags, giving
the option of GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, or GTK_JUSTIFY_FILL.
</para>
</desc>
</method>
<method>
<funcsynopsis>
<funcprototype>
<funcdef>
void <function>set_pattern</function>
</funcdef>
<paramdef>char <parameter>pattern</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
Underline method
</shortdesc>
<desc>
<para>
This is the method for underlining text in GtkLabel. It needs to be defined as a pattern, eg if
your text runs <programlisting><![CDATA["Apple Banana
Carrot"]]></programlisting> then
<programlisting><![CDATA["_ _"]]></programlisting> will
underline Apple and Carrot but not Banana, where the space falls.
</para>
</desc>
</method>
<method>
<funcsynopsis>
<funcprototype>
<funcdef>
void <function>set_line_wrap</function>
</funcdef>
<paramdef>bool <parameter>linewrap</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
Linewrap toggle switch
</shortdesc>
<desc>
Boolean switch between linewrap on and linewrap off, with <literal>TRUE</literal>
being linewrap on.
</desc>
</method>
<method>
<funcsynopsis>
<funcprototype>
<funcdef>
void <function>get</function>
</funcdef>
<paramdef>char <parameter>labeltext</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
Method for harvesting current text content of label
</shortdesc>
<desc>
<para>
Writes the current text content of the label to the given string argument
<programlisting><![CDATA["labeltext"]]></programlisting>
</para>
</desc>
</method>
<method>
<funcsynopsis>
<funcprototype>
<funcdef>
void <function>parse_uline</function>
</funcdef>
<paramdef>char <parameter>text_to_be_parsed</parameter></paramdef>
</funcprototype>
</funcsynopsis>
<shortdesc>
Accelerator key definition method
</shortdesc>
<desc>
<para>
This method checks the text for underscores and then underlines the character following the
underscore. It will take the last underlined character in a label and return it as a lower-case
accelerator key, eg
<programlisting><![CDATA["_Save"]]></programlisting> will return
the accelerator key value for
<programlisting><![CDATA["s"]]></programlisting>.
</para>
</desc>
</method>
</methods>
</classentry>