<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>QwtLegendItem Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.3 on Thu Dec 14 00:27:17 2000 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>QwtLegendItem Class Reference</h1>A legend item. <a href="#_details">More...</a> <p> <code>#include <qwt_legend.h></code> <p> <a href="class_qwtlegenditem-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_qwtlegenditem.html#a0">QwtLegendItem</a> ()</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_qwtlegenditem.html#a1">QwtLegendItem</a> (const QString &txt, const <a class="el" href="class_qwtsymbol.html">QwtSymbol</a> &sym, const QPen &pn, long key)</td></tr> <tr><td nowrap align=right valign=top><a name="a2" doxytag="QwtLegendItem::pen"></a> const QPen& </td><td valign=bottom><b>pen</b> ()</td></tr> <tr><td nowrap align=right valign=top><a name="a3" doxytag="QwtLegendItem::symbol"></a> const <a class="el" href="class_qwtsymbol.html">QwtSymbol</a>& </td><td valign=bottom><b>symbol</b> ()</td></tr> <tr><td nowrap align=right valign=top><a name="a4" doxytag="QwtLegendItem::text"></a> const QString& </td><td valign=bottom><b>text</b> () const</td></tr> <tr><td nowrap align=right valign=top><a name="a5" doxytag="QwtLegendItem::key"></a> long </td><td valign=bottom><b>key</b> () const</td></tr> <tr><td nowrap align=right valign=top><a name="a6" doxytag="QwtLegendItem::setSymbol"></a> void </td><td valign=bottom><b>setSymbol</b> (const <a class="el" href="class_qwtsymbol.html">QwtSymbol</a> &s)</td></tr> <tr><td nowrap align=right valign=top><a name="a7" doxytag="QwtLegendItem::setPen"></a> void </td><td valign=bottom><b>setPen</b> (const QPen &pn)</td></tr> <tr><td nowrap align=right valign=top><a name="a8" doxytag="QwtLegendItem::setKey"></a> void </td><td valign=bottom><b>setKey</b> (long key)</td></tr> <tr><td nowrap align=right valign=top><a name="a9" doxytag="QwtLegendItem::setText"></a> void </td><td valign=bottom><b>setText</b> (const QString &s)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_qwtlegenditem.html#a10">draw</a> (QPainter *p, const QRect &symRect, const QRect& lblRect, int align)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A legend item. <p> <dl compact><dt> <b>See also: </b><dd> <a class="el" href="class_qwtlegend.html">QwtLegend</a> </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="QwtLegendItem::QwtLegendItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> QwtLegendItem::QwtLegendItem ( </b></td> <td valign="bottom"><b> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Default Constructor. <p> </td> </tr> </table> <a name="a1" doxytag="QwtLegendItem::QwtLegendItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> QwtLegendItem::QwtLegendItem ( </b></td> <td valign="bottom"><b> const QString & <em>txt</em>, </b></td> </tr> <tr> <td></td> <td><b> const <a class="el" href="class_qwtsymbol.html">QwtSymbol</a> & <em>sym</em>, </b></td> </tr> <tr> <td></td> <td><b> const QPen & <em>pn</em>, </b></td> </tr> <tr> <td></td> <td><b> long <em>key</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Constructor. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>txt</em> </td><td> Item text </td></tr> <tr><td valign=top><em>sym</em> </td><td> Item symbol </td></tr> <tr><td valign=top><em>pen</em> </td><td> Pen </td></tr> <tr><td valign=top><em>key</em> </td><td> Unique key for this item </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a10" doxytag="QwtLegendItem::draw"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void QwtLegendItem::draw ( </b></td> <td valign="bottom"><b> QPainter * <em>p</em>, </b></td> </tr> <tr> <td></td> <td><b> const QRect & <em>symRect</em>, </b></td> </tr> <tr> <td></td> <td><b> const QRect & <em>lblRect</em>, </b></td> </tr> <tr> <td></td> <td><b> int <em>align</em> ) </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Draw a legend item. <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li>qwt_legend.h<li>qwt_legend.cpp</ul> <hr><address><small>Generated at Thu Dec 14 00:27:17 2000 for Qwt User's Guide by <a href="http://www.stack.nl/~dimitri/doxygen/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.3 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2000</small></address> </body> </html>