<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>The Gnome Chemistry Utils: gccv::LineItem Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.4 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">The Gnome Chemistry Utils <span id="projectnumber">0.13.5</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespacegccv.html">gccv</a> </li> <li class="navelem"><a class="el" href="classgccv_1_1LineItem.html">LineItem</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">gccv::LineItem Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="gccv::LineItem" --><!-- doxytag: inherits="gccv::Item" --> <p>Base class for line items, whether straight or curved. <a href="classgccv_1_1LineItem.html#details">More...</a></p> <p><code>#include <<a class="el" href="line-item_8h_source.html">line-item.h</a>></code></p> <div class="dynheader"> Inheritance diagram for gccv::LineItem:</div> <div class="dyncontent"> <div class="center"> <img src="classgccv_1_1LineItem.png" usemap="#gccv::LineItem_map" alt=""/> <map id="gccv::LineItem_map" name="gccv::LineItem_map"> <area href="classgccv_1_1Item.html" title="The base class for the canvas contents." alt="gccv::Item" shape="rect" coords="508,0,625,24"/> <area href="classgccv_1_1BezierArrow.html" title="Curved arrows." alt="gccv::BezierArrow" shape="rect" coords="0,112,117,136"/> <area href="classgccv_1_1FillItem.html" title="Base class for filled items." alt="gccv::FillItem" shape="rect" coords="190,112,307,136"/> <area href="classgccv_1_1Line.html" title="Straight lines." alt="gccv::Line" shape="rect" coords="508,112,625,136"/> <area href="classgccv_1_1PolyLine.html" title="Multi-segments line." alt="gccv::PolyLine" shape="rect" coords="635,112,752,136"/> <area href="classgccv_1_1Squiggle.html" title="Squiggle line." alt="gccv::Squiggle" shape="rect" coords="762,112,879,136"/> <area href="classgccv_1_1Circle.html" title="Circles." alt="gccv::Circle" shape="rect" coords="0,168,117,192"/> <area href="classgccv_1_1Leaf.html" title="A drop or leaf item." alt="gccv::Leaf" shape="rect" coords="127,168,244,192"/> <area href="classgccv_1_1Polygon.html" title="Polygon." alt="gccv::Polygon" shape="rect" coords="254,168,371,192"/> <area href="classgccv_1_1Rectangle.html" title="Rectangles." alt="gccv::Rectangle" shape="rect" coords="381,168,498,192"/> <area href="classgccv_1_1Arrow.html" title="Simple arrows class." alt="gccv::Arrow" shape="rect" coords="508,168,625,192"/> <area href="classgccv_1_1Text.html" title="Text." alt="gccv::Text" shape="rect" coords="381,224,498,248"/> </map> </div></div> <p><a href="classgccv_1_1LineItem-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#afb06b7fc4ac9528a9e1211082d0fad52">LineItem</a> (<a class="el" href="classgccv_1_1Canvas.html">Canvas</a> *canvas)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#a5f2e818f7a1cfc2b6ea3fd9e1c23bd2f">LineItem</a> (<a class="el" href="classgccv_1_1Group.html">Group</a> *parent, <a class="el" href="classgccv_1_1ItemClient.html">ItemClient</a> *client=NULL)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#a69c68bbdc30eae8c30329f5e3408a9c9">~LineItem</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#ab0ec83b31a082b8744f0dd92769075ab">SetLineWidth</a> (double val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#a33b84b327d702600766604a5747231e4">GetLineWidth</a> (void) const </td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#ac9e232d09a92241f6af552936b03e81d">SetLineColor</a> (GOColor val)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GOColor </td><td class="memItemRight" valign="bottom"><a class="el" href="classgccv_1_1LineItem.html#ae8409580b5cc3b3fbca6ca72bb450e8f">GetLineColor</a> (void) const </td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>Base class for line items, whether straight or curved. </p> <p>This base class implements the common properties of all lines. </p> <p>Definition at line <a class="el" href="line-item_8h_source.html#l00040">40</a> of file <a class="el" href="line-item_8h_source.html">line-item.h</a>.</p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="afb06b7fc4ac9528a9e1211082d0fad52"></a><!-- doxytag: member="gccv::LineItem::LineItem" ref="afb06b7fc4ac9528a9e1211082d0fad52" args="(Canvas *canvas)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::LineItem::LineItem </td> <td>(</td> <td class="paramtype"><a class="el" href="classgccv_1_1Canvas.html">Canvas</a> * </td> <td class="paramname"><em>canvas</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">canvas</td><td>a <a class="el" href="classgccv_1_1Canvas.html" title="the Canvas class">Canvas</a>.</td></tr> </table> </dd> </dl> <p>Creates a new <a class="el" href="classgccv_1_1LineItem.html" title="Base class for line items, whether straight or curved.">LineItem</a> and sets it as a child of the root <a class="el" href="classgccv_1_1Group.html" title="Item with Item children.">Group</a> of <em>canvas</em>. </p> </div> </div> <a class="anchor" id="a5f2e818f7a1cfc2b6ea3fd9e1c23bd2f"></a><!-- doxytag: member="gccv::LineItem::LineItem" ref="a5f2e818f7a1cfc2b6ea3fd9e1c23bd2f" args="(Group *parent, ItemClient *client=NULL)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::LineItem::LineItem </td> <td>(</td> <td class="paramtype"><a class="el" href="classgccv_1_1Group.html">Group</a> * </td> <td class="paramname"><em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classgccv_1_1ItemClient.html">ItemClient</a> * </td> <td class="paramname"><em>client</em> = <code>NULL</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">parent</td><td>the <a class="el" href="classgccv_1_1Group.html" title="Item with Item children.">Group</a> to which the new <a class="el" href="classgccv_1_1LineItem.html" title="Base class for line items, whether straight or curved.">LineItem</a> will be added. </td></tr> <tr><td class="paramname">client</td><td>the <a class="el" href="classgccv_1_1ItemClient.html" title="the base class for objects associated with a canvas item.">ItemClient</a> for the new <a class="el" href="classgccv_1_1LineItem.html" title="Base class for line items, whether straight or curved.">LineItem</a> if any.</td></tr> </table> </dd> </dl> <p>Creates a new <a class="el" href="classgccv_1_1LineItem.html" title="Base class for line items, whether straight or curved.">LineItem</a> inside <em>parent</em> and sets <em>client</em> as its associated <a class="el" href="classgccv_1_1ItemClient.html" title="the base class for objects associated with a canvas item.">ItemClient</a>. </p> </div> </div> <a class="anchor" id="a69c68bbdc30eae8c30329f5e3408a9c9"></a><!-- doxytag: member="gccv::LineItem::~LineItem" ref="a69c68bbdc30eae8c30329f5e3408a9c9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual gccv::LineItem::~LineItem </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p>The destructor. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ae8409580b5cc3b3fbca6ca72bb450e8f"></a><!-- doxytag: member="gccv::LineItem::GetLineColor" ref="ae8409580b5cc3b3fbca6ca72bb450e8f" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::LineItem::GetLineColor </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the line color. </dd></dl> <p>Definition at line <a class="el" href="line-item_8h_source.html#l00087">87</a> of file <a class="el" href="line-item_8h_source.html">line-item.h</a>.</p> </div> </div> <a class="anchor" id="a33b84b327d702600766604a5747231e4"></a><!-- doxytag: member="gccv::LineItem::GetLineWidth" ref="a33b84b327d702600766604a5747231e4" args="(void) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::LineItem::GetLineWidth </td> <td>(</td> <td class="paramtype">void </td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl class="return"><dt><b>Returns:</b></dt><dd>the line width </dd></dl> <p>Definition at line <a class="el" href="line-item_8h_source.html#l00078">78</a> of file <a class="el" href="line-item_8h_source.html">line-item.h</a>.</p> </div> </div> <a class="anchor" id="ac9e232d09a92241f6af552936b03e81d"></a><!-- doxytag: member="gccv::LineItem::SetLineColor" ref="ac9e232d09a92241f6af552936b03e81d" args="(GOColor val)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::LineItem::SetLineColor </td> <td>(</td> <td class="paramtype">GOColor </td> <td class="paramname"><em>color</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">color</td><td>the new line color.</td></tr> </table> </dd> </dl> <p>Sets the <a class="el" href="classgccv_1_1LineItem.html" title="Base class for line items, whether straight or curved.">LineItem</a> color. </p> <p>Definition at line <a class="el" href="line-item_8h_source.html#l00087">87</a> of file <a class="el" href="line-item_8h_source.html">line-item.h</a>.</p> </div> </div> <a class="anchor" id="ab0ec83b31a082b8744f0dd92769075ab"></a><!-- doxytag: member="gccv::LineItem::SetLineWidth" ref="ab0ec83b31a082b8744f0dd92769075ab" args="(double val)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">gccv::LineItem::SetLineWidth </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"><em>width</em></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">width</td><td>the new line width.</td></tr> </table> </dd> </dl> <p>Sets the <a class="el" href="classgccv_1_1LineItem.html" title="Base class for line items, whether straight or curved.">LineItem</a> line width. </p> <p>Definition at line <a class="el" href="line-item_8h_source.html#l00078">78</a> of file <a class="el" href="line-item_8h_source.html">line-item.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="line-item_8h_source.html">line-item.h</a></li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Fri Nov 11 2011 18:01:06 for The Gnome Chemistry Utils by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address> </body> </html>