<html> <head><title>Gtk-- Reference: Gtk::Label</title></head> <body bgcolor="#F0F0F0" text="#000000" link="#0000FF" vlink="#000077" alink="#FF0000"> <table align=center border=0 cellspacing=10> <tr> <td><a href="class_index.html">Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="name_index.html">Namespace Index</a></td> </table> <h1 align=center>Class Gtk::Label</h1><p> <b> Text string widget.</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3AMisc.html">Gtk::Misc</a> <br> Derived by: <a href="Gtk::AccelLabel.html">Gtk::AccelLabel</a> <a href="Gtk::TipsQuery.html">Gtk::TipsQuery</a> <p> #include <gtk--/label.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=right><tt><tt>explicit</tt> </tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1655"><tt><font color=blue><b>Label</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gtk%3A%3Anstring.html"><tt><font color=navy><b>nstring</b></font></tt></a>& <tt><font color=blue>label</font></tt> = 0, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>x</font></tt>=0.5, <tt><font color=purple>gfloat</font></tt> <tt><font color=blue>y</font></tt>=0.5)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>string</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1658"><tt><font color=blue><b>get</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>string</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1659"><tt><font color=blue><b>get_text</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkLabel</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1651"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkLabel</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1652"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1653"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>guint</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1662"><tt><font color=blue><b>parse_uline</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>str</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1656"><tt><font color=blue><b>set</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>str</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1660"><tt><font color=blue><b>set_justify</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkJustification</font></tt> <tt><font color=blue>jtype</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1663"><tt><font color=blue><b>set_line_wrap</b></font></tt></a></td><td><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>wrap</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1661"><tt><font color=blue><b>set_pattern</b></font></tt></a></td><td><tt>(<tt>const</tt> <a href="Gtk%3A%3Anstring.html"><tt><font color=navy><b>nstring</b></font></tt></a>& <tt><font color=blue>pattern</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1657"><tt><font color=blue><b>set_text</b></font></tt></a></td><td><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>str</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ALabel.html#1654"><tt><font color=blue><b>~Label</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> A simple setable widget for holding a string.<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="1658"><font size=+1><b>Gtk::Label::get</b></font></a> - Return the current label text.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>string</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1658"><tt><font color=blue><b>get</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><br> <a name="1659"><font size=+1><b>Gtk::Label::get_text</b></font></a> - Return the current label text.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>string</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1659"><tt><font color=blue><b>get_text</b></font></tt></a><tt>() <tt>const</tt></tt>;<br><br> <a name="1651"><font size=+1><b>Gtk::Label::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkLabel</font></tt>*</tt> <a href="Gtk%3A%3ALabel.html#1651"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="1653"><font size=+1><b>Gtk::Label::isA</b></font></a> - Returns true if object is this type.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1653"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br> <a name="1662"><font size=+1><b>Gtk::Label::parse_uline</b></font></a> - (Gtk 1.1)<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>guint</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1662"><tt><font color=blue><b>parse_uline</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>str</font></tt>)</tt>;<br><br> <a name="1656"><font size=+1><b>Gtk::Label::set</b></font></a> - Set the label text to match <tt><font color=blue>str</font></tt>.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1656"><tt><font color=blue><b>set</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>str</font></tt>)</tt>;<br><blockquote> Text can not be NULL.</blockquote> <br><br> <a name="1660"><font size=+1><b>Gtk::Label::set_justify</b></font></a> - Sets the justification for multiple lines.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1660"><tt><font color=blue><b>set_justify</b></font></tt></a><tt>(<tt><font color=navy>GtkJustification</font></tt> <tt><font color=blue>jtype</font></tt>)</tt>;<br><br> <a name="1663"><font size=+1><b>Gtk::Label::set_line_wrap</b></font></a> - (Gtk 1.1)<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1663"><tt><font color=blue><b>set_line_wrap</b></font></tt></a><tt>(<tt><font color=purple>bool</font></tt> <tt><font color=blue>wrap</font></tt>)</tt>;<br><br> <a name="1661"><font size=+1><b>Gtk::Label::set_pattern</b></font></a> - (Gtk 1.1)<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1661"><tt><font color=blue><b>set_pattern</b></font></tt></a><tt>(<tt>const</tt> <a href="Gtk%3A%3Anstring.html"><tt><font color=navy><b>nstring</b></font></tt></a>& <tt><font color=blue>pattern</font></tt>)</tt>;<br><br> <a name="1657"><font size=+1><b>Gtk::Label::set_text</b></font></a> - Alias for <a href="Gtk%3A%3ALabel.html#1656"><tt><font color=blue><b>set</b></font></tt></a><br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3ALabel.html#1657"><tt><font color=blue><b>set_text</b></font></tt></a><tt>(<tt>const</tt> <tt><font color=navy>string</font></tt>& <tt><font color=blue>str</font></tt>)</tt>;<br><br> <hr noshade> </html>