<!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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.5"/> <title>libyui: YBarGraphSegment Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">libyui  <span id="projectnumber">3.0.10</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.5 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</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> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </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><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('classYBarGraphSegment.html','');}); </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Friends</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="classYBarGraphSegment-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">YBarGraphSegment Class Reference</div> </div> </div><!--header--> <div class="contents"> <p><code>#include <<a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>></code></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a2fa7025b5c31d33370a13a7177074340"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a2fa7025b5c31d33370a13a7177074340">YBarGraphSegment</a> (int <a class="el" href="classYBarGraphSegment.html#a4fe8742bedee641fccc3e76f65ab70ef">value</a>=0, const std::string &<a class="el" href="classYBarGraphSegment.html#a9fed335bcd79f42c2197e89c42056e58">label</a>=std::string(), const <a class="el" href="classYColor.html">YColor</a> &<a class="el" href="classYBarGraphSegment.html#a9cc6783cf5b6c05fd9a01b55d3397816">segmentColor</a>=<a class="el" href="classYColor.html">YColor</a>(), const <a class="el" href="classYColor.html">YColor</a> &<a class="el" href="classYBarGraphSegment.html#a0b7b8c6f0db87e77beaa3f109e30065f">textColor</a>=<a class="el" href="classYColor.html">YColor</a>())</td></tr> <tr class="separator:a2fa7025b5c31d33370a13a7177074340"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4fe8742bedee641fccc3e76f65ab70ef"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a4fe8742bedee641fccc3e76f65ab70ef">value</a> () const </td></tr> <tr class="separator:a4fe8742bedee641fccc3e76f65ab70ef"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a63edd84fa9a0da1cd1f2e3710aca2eea"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a63edd84fa9a0da1cd1f2e3710aca2eea">setValue</a> (int newValue)</td></tr> <tr class="separator:a63edd84fa9a0da1cd1f2e3710aca2eea"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9fed335bcd79f42c2197e89c42056e58"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a9fed335bcd79f42c2197e89c42056e58">label</a> () const </td></tr> <tr class="separator:a9fed335bcd79f42c2197e89c42056e58"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a969ff23f762a3116ffcd96d8f6a4ba9a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a969ff23f762a3116ffcd96d8f6a4ba9a">setLabel</a> (const std::string &newLabel)</td></tr> <tr class="separator:a969ff23f762a3116ffcd96d8f6a4ba9a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9cc6783cf5b6c05fd9a01b55d3397816"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classYColor.html">YColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a9cc6783cf5b6c05fd9a01b55d3397816">segmentColor</a> () const </td></tr> <tr class="separator:a9cc6783cf5b6c05fd9a01b55d3397816"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1d2ee68640c98f0bf84d2b0d0afb17b9"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a1d2ee68640c98f0bf84d2b0d0afb17b9">hasSegmentColor</a> () const </td></tr> <tr class="separator:a1d2ee68640c98f0bf84d2b0d0afb17b9"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa4372204b5dcca9601e7e2703132b328"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#aa4372204b5dcca9601e7e2703132b328">setSegmentColor</a> (const <a class="el" href="classYColor.html">YColor</a> &color)</td></tr> <tr class="separator:aa4372204b5dcca9601e7e2703132b328"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0b7b8c6f0db87e77beaa3f109e30065f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classYColor.html">YColor</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a0b7b8c6f0db87e77beaa3f109e30065f">textColor</a> () const </td></tr> <tr class="separator:a0b7b8c6f0db87e77beaa3f109e30065f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a48e0299a6bd2fabd63c751ea5f01a1a6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#a48e0299a6bd2fabd63c751ea5f01a1a6">hasTextColor</a> () const </td></tr> <tr class="separator:a48e0299a6bd2fabd63c751ea5f01a1a6"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:af14bab02ad61915d470a155de93d20e1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classYBarGraphSegment.html#af14bab02ad61915d470a155de93d20e1">setTextColor</a> (const <a class="el" href="classYColor.html">YColor</a> &color)</td></tr> <tr class="separator:af14bab02ad61915d470a155de93d20e1"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>Helper class to describe one segment of a <a class="el" href="classYBarGraph.html">YBarGraph</a>. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00181">181</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="a2fa7025b5c31d33370a13a7177074340"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">YBarGraphSegment::YBarGraphSegment </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>value</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>label</em> = <code>std::string()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classYColor.html">YColor</a> & </td> <td class="paramname"><em>segmentColor</em> = <code><a class="el" href="classYColor.html">YColor</a>()</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classYColor.html">YColor</a> & </td> <td class="paramname"><em>textColor</em> = <code><a class="el" href="classYColor.html">YColor</a>()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Constructor.</p> <p>'value' is the initial value of this segment.</p> <p>'label' is the label text in the segment. Use %1 as a placeholder for the current value.</p> <p>'segmentColor' is the background color of this segment.</p> <p>'textColor' is the color for the label text.</p> <p>The <a class="el" href="classYBarGraph.html">YBarGraph</a> widget will automatically assign some default colors (one of at least 5 different ones) if none are specified. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00199">199</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a1d2ee68640c98f0bf84d2b0d0afb17b9"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool YBarGraphSegment::hasSegmentColor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return 'true' if this segment's background color is defined, i.e. it has a real RGB value and was not just created with the default constructor. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00241">241</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a48e0299a6bd2fabd63c751ea5f01a1a6"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">bool YBarGraphSegment::hasTextColor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return 'true' if this segment's text color is defined, i.e. it has a real RGB value and was not just created with the default constructor. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00258">258</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a9fed335bcd79f42c2197e89c42056e58"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">std::string YBarGraphSegment::label </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the current text label of this segment. Any %1 placeholder will be returned as %1 (not expanded). </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00223">223</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a9cc6783cf5b6c05fd9a01b55d3397816"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classYColor.html">YColor</a> YBarGraphSegment::segmentColor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the segment background color. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00234">234</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a969ff23f762a3116ffcd96d8f6a4ba9a"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void YBarGraphSegment::setLabel </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>newLabel</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set the text label of this segment. Use %1 as a placeholder for the current value. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00229">229</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="aa4372204b5dcca9601e7e2703132b328"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void YBarGraphSegment::setSegmentColor </td> <td>(</td> <td class="paramtype">const <a class="el" href="classYColor.html">YColor</a> & </td> <td class="paramname"><em>color</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set this segment's background color. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00246">246</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="af14bab02ad61915d470a155de93d20e1"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void YBarGraphSegment::setTextColor </td> <td>(</td> <td class="paramtype">const <a class="el" href="classYColor.html">YColor</a> & </td> <td class="paramname"><em>color</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set this segment's text color. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00263">263</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a63edd84fa9a0da1cd1f2e3710aca2eea"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void YBarGraphSegment::setValue </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>newValue</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Set the value of this segment. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00217">217</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a0b7b8c6f0db87e77beaa3f109e30065f"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classYColor.html">YColor</a> YBarGraphSegment::textColor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return this segment's text color. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00251">251</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <a class="anchor" id="a4fe8742bedee641fccc3e76f65ab70ef"></a> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">int YBarGraphSegment::value </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">inline</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Return the current value of this segment. </p> <p>Definition at line <a class="el" href="YBarGraph_8h_source.html#l00212">212</a> of file <a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>/home/iurt/rpmbuild/BUILD/libyui-3.0.10-b316a3f/src/<a class="el" href="YBarGraph_8h_source.html">YBarGraph.h</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="classYBarGraphSegment.html">YBarGraphSegment</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.5 </li> </ul> </div> </body> </html>