classQCPLegend.html 111 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta name="author" content="Emanuel Eichhammer" />
  6. <meta name="copyright" content="(C) 2013-2015 Emanuel Eichhammer" />
  7. <title>QCPLegend Class Reference</title>
  8. <link href="qt.css" rel="stylesheet" type="text/css"/>
  9. </head>
  10. <body>
  11. <div id="top">
  12. <a class="headerLink" href="index.html">Main Page</a> &middot;
  13. <a class="headerLink" href="classoverview.html">Class Overview</a> &middot;
  14. <a class="headerLink" href="hierarchy.html">Hierarchy</a> &middot;
  15. <a class="headerLink" href="annotated.html">All Classes</a> &middot;
  16. <a class="headerLink" href="pages.html">Special Pages</a>
  17. <!-- Generated by Doxygen 1.8.6 -->
  18. </div><!-- top -->
  19. <div class="header">
  20. <div class="summary">
  21. <a href="#pub-types">Public Types</a> &#124;
  22. <a href="#pub-methods">Public Functions</a> &#124;
  23. <a href="#signals">Signals</a> &#124;
  24. <a href="#pro-methods">Protected Functions</a> </div>
  25. <div class="headertitle">
  26. <div class="title">QCPLegend Class Reference</div> </div>
  27. </div><!--header-->
  28. <div class="contents">
  29. <p>Manages a legend inside a <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>.
  30. <a href="classQCPLegend.html#details">More...</a></p>
  31. <div class="dynheader">
  32. Inheritance diagram for QCPLegend:</div>
  33. <div class="dyncontent">
  34. <div class="center"><img src="classQCPLegend__inherit__graph.png" border="0" usemap="#QCPLegend_inherit__map" alt="Inheritance graph"/></div>
  35. <map name="QCPLegend_inherit__map" id="QCPLegend_inherit__map">
  36. <area shape="rect" id="node2" href="classQCPLayoutGrid.html" title="A layout that arranges child elements in a grid. " alt="" coords="16,221,123,245"/><area shape="rect" id="node3" href="classQCPLayout.html" title="The abstract base class for layouts. " alt="" coords="28,149,109,173"/><area shape="rect" id="node4" href="classQCPLayoutElement.html" title="The abstract base class for all objects that form the layout system. " alt="" coords="5,77,133,101"/><area shape="rect" id="node5" href="classQCPLayerable.html" title="Base class for all drawable objects. " alt="" coords="19,5,120,29"/></map>
  37. </div>
  38. <table class="memberdecls">
  39. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
  40. Public Types</h2></td></tr>
  41. <tr class="memitem:a5404de8bc1e4a994ca4ae69e2c7072f1"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1">SelectablePart</a> </td></tr>
  42. <tr class="separator:a5404de8bc1e4a994ca4ae69e2c7072f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  43. <tr class="inherit_header pub_types_classQCPLayoutElement"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classQCPLayoutElement')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a></td></tr>
  44. <tr class="memitem:a0d83360e05735735aaf6d7983c56374d inherit pub_types_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a0d83360e05735735aaf6d7983c56374d">UpdatePhase</a> </td></tr>
  45. <tr class="separator:a0d83360e05735735aaf6d7983c56374d inherit pub_types_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  46. </table><table class="memberdecls">
  47. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  48. Public Functions</h2></td></tr>
  49. <tr class="memitem:a0001a456989bd07ea378883651fabd72"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a0001a456989bd07ea378883651fabd72">QCPLegend</a> ()</td></tr>
  50. <tr class="separator:a0001a456989bd07ea378883651fabd72"><td class="memSeparator" colspan="2">&#160;</td></tr>
  51. <tr class="memitem:a8ffd92df86ddf43696d95f04a20e3226"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8ffd92df86ddf43696d95f04a20e3226"></a>
  52. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>borderPen</b> () const </td></tr>
  53. <tr class="separator:a8ffd92df86ddf43696d95f04a20e3226"><td class="memSeparator" colspan="2">&#160;</td></tr>
  54. <tr class="memitem:a7e5d2766e7d724f399022be8a4e8a2cb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7e5d2766e7d724f399022be8a4e8a2cb"></a>
  55. QBrush&#160;</td><td class="memItemRight" valign="bottom"><b>brush</b> () const </td></tr>
  56. <tr class="separator:a7e5d2766e7d724f399022be8a4e8a2cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  57. <tr class="memitem:a5cf8b840bc02f7bf4edb8dde400d0f41"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a5cf8b840bc02f7bf4edb8dde400d0f41"></a>
  58. QFont&#160;</td><td class="memItemRight" valign="bottom"><b>font</b> () const </td></tr>
  59. <tr class="separator:a5cf8b840bc02f7bf4edb8dde400d0f41"><td class="memSeparator" colspan="2">&#160;</td></tr>
  60. <tr class="memitem:ad60a058af7491f6b140c104c6a0f9458"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad60a058af7491f6b140c104c6a0f9458"></a>
  61. QColor&#160;</td><td class="memItemRight" valign="bottom"><b>textColor</b> () const </td></tr>
  62. <tr class="separator:ad60a058af7491f6b140c104c6a0f9458"><td class="memSeparator" colspan="2">&#160;</td></tr>
  63. <tr class="memitem:a27dfb770b14adc0e8811bef8129780a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27dfb770b14adc0e8811bef8129780a5"></a>
  64. QSize&#160;</td><td class="memItemRight" valign="bottom"><b>iconSize</b> () const </td></tr>
  65. <tr class="separator:a27dfb770b14adc0e8811bef8129780a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  66. <tr class="memitem:a9d6d07042a284c4ba5f9e3cb5c9281ef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d6d07042a284c4ba5f9e3cb5c9281ef"></a>
  67. int&#160;</td><td class="memItemRight" valign="bottom"><b>iconTextPadding</b> () const </td></tr>
  68. <tr class="separator:a9d6d07042a284c4ba5f9e3cb5c9281ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
  69. <tr class="memitem:a2c4719d79630b0d0c75ef2333c59a912"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2c4719d79630b0d0c75ef2333c59a912"></a>
  70. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>iconBorderPen</b> () const </td></tr>
  71. <tr class="separator:a2c4719d79630b0d0c75ef2333c59a912"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr class="memitem:aa90c7fdbad7a0e93527bafb1f1f49a43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa90c7fdbad7a0e93527bafb1f1f49a43"></a>
  73. SelectableParts&#160;</td><td class="memItemRight" valign="bottom"><b>selectableParts</b> () const </td></tr>
  74. <tr class="separator:aa90c7fdbad7a0e93527bafb1f1f49a43"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:abbbf1b2d6a149013527ed87b0780894a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abbbf1b2d6a149013527ed87b0780894a"></a>
  76. SelectableParts&#160;</td><td class="memItemRight" valign="bottom"><b>selectedParts</b> () const </td></tr>
  77. <tr class="separator:abbbf1b2d6a149013527ed87b0780894a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:a63156bc4ce64431bada7415cfa2b4dd1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a63156bc4ce64431bada7415cfa2b4dd1"></a>
  79. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>selectedBorderPen</b> () const </td></tr>
  80. <tr class="separator:a63156bc4ce64431bada7415cfa2b4dd1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:a165630cad7e41f89b54f65cdef3310e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a165630cad7e41f89b54f65cdef3310e8"></a>
  82. QPen&#160;</td><td class="memItemRight" valign="bottom"><b>selectedIconBorderPen</b> () const </td></tr>
  83. <tr class="separator:a165630cad7e41f89b54f65cdef3310e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:a600dde0d207ddc6f5a603767360cceac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a600dde0d207ddc6f5a603767360cceac"></a>
  85. QBrush&#160;</td><td class="memItemRight" valign="bottom"><b>selectedBrush</b> () const </td></tr>
  86. <tr class="separator:a600dde0d207ddc6f5a603767360cceac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:a4c1b08fc0afacb4ffd54f6a49737fa77"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4c1b08fc0afacb4ffd54f6a49737fa77"></a>
  88. QFont&#160;</td><td class="memItemRight" valign="bottom"><b>selectedFont</b> () const </td></tr>
  89. <tr class="separator:a4c1b08fc0afacb4ffd54f6a49737fa77"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:a08005f3c17728c2c4e23b8ffc0842ffb"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a08005f3c17728c2c4e23b8ffc0842ffb"></a>
  91. QColor&#160;</td><td class="memItemRight" valign="bottom"><b>selectedTextColor</b> () const </td></tr>
  92. <tr class="separator:a08005f3c17728c2c4e23b8ffc0842ffb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:a866a9e3f5267de7430a6c7f26a61db9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a866a9e3f5267de7430a6c7f26a61db9f">setBorderPen</a> (const QPen &amp;pen)</td></tr>
  94. <tr class="separator:a866a9e3f5267de7430a6c7f26a61db9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:a497bbcd38baa3598c08e2b3f48103f23"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a497bbcd38baa3598c08e2b3f48103f23">setBrush</a> (const QBrush &amp;brush)</td></tr>
  96. <tr class="separator:a497bbcd38baa3598c08e2b3f48103f23"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. <tr class="memitem:aa4cda8499e3cb0f3be415edc02984c73"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#aa4cda8499e3cb0f3be415edc02984c73">setFont</a> (const QFont &amp;font)</td></tr>
  98. <tr class="separator:aa4cda8499e3cb0f3be415edc02984c73"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:ae1eb239ff4a4632fe1b6c3e668d845c6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#ae1eb239ff4a4632fe1b6c3e668d845c6">setTextColor</a> (const QColor &amp;color)</td></tr>
  100. <tr class="separator:ae1eb239ff4a4632fe1b6c3e668d845c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:a8b0740cce488bf7010da6beda6898984"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a8b0740cce488bf7010da6beda6898984">setIconSize</a> (const QSize &amp;size)</td></tr>
  102. <tr class="separator:a8b0740cce488bf7010da6beda6898984"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:a96b1a37fd4ee6a9778e6e54fe56ab6c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a96b1a37fd4ee6a9778e6e54fe56ab6c2">setIconSize</a> (int width, int height)</td></tr>
  104. <tr class="separator:a96b1a37fd4ee6a9778e6e54fe56ab6c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:a62973bd69d5155e8ea3141366e8968f6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a62973bd69d5155e8ea3141366e8968f6">setIconTextPadding</a> (int padding)</td></tr>
  106. <tr class="separator:a62973bd69d5155e8ea3141366e8968f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:a2f2c93d18a651f4ff294bb3f026f49b8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a2f2c93d18a651f4ff294bb3f026f49b8">setIconBorderPen</a> (const QPen &amp;pen)</td></tr>
  108. <tr class="separator:a2f2c93d18a651f4ff294bb3f026f49b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:a9ce60aa8bbd89f62ae4fa83ac6c60110"><td class="memItemLeft" align="right" valign="top">Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a> (const SelectableParts &amp;selectableParts)</td></tr>
  110. <tr class="separator:a9ce60aa8bbd89f62ae4fa83ac6c60110"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:a2aee309bb5c2a794b1987f3fc97f8ad8"><td class="memItemLeft" align="right" valign="top">Q_SLOT void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a> (const SelectableParts &amp;selectedParts)</td></tr>
  112. <tr class="separator:a2aee309bb5c2a794b1987f3fc97f8ad8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:a2c35d262953a25d96b6112653fbefc88"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a2c35d262953a25d96b6112653fbefc88">setSelectedBorderPen</a> (const QPen &amp;pen)</td></tr>
  114. <tr class="separator:a2c35d262953a25d96b6112653fbefc88"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:ade93aabe9bcccaf9cf46cec22c658027"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#ade93aabe9bcccaf9cf46cec22c658027">setSelectedIconBorderPen</a> (const QPen &amp;pen)</td></tr>
  116. <tr class="separator:ade93aabe9bcccaf9cf46cec22c658027"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:a875227f3219c9799464631dec5e8f1bd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a875227f3219c9799464631dec5e8f1bd">setSelectedBrush</a> (const QBrush &amp;brush)</td></tr>
  118. <tr class="separator:a875227f3219c9799464631dec5e8f1bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:ab580a01c3c0a239374ed66c29edf5ad2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#ab580a01c3c0a239374ed66c29edf5ad2">setSelectedFont</a> (const QFont &amp;font)</td></tr>
  120. <tr class="separator:ab580a01c3c0a239374ed66c29edf5ad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:a7674dfc7a1f30e1abd1018c0ed45e0bc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a7674dfc7a1f30e1abd1018c0ed45e0bc">setSelectedTextColor</a> (const QColor &amp;color)</td></tr>
  122. <tr class="separator:a7674dfc7a1f30e1abd1018c0ed45e0bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:aa3892801051bc7b985e003576df844db"><td class="memItemLeft" align="right" valign="top">virtual double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#aa3892801051bc7b985e003576df844db">selectTest</a> (const QPointF &amp;pos, bool onlySelectable, QVariant *details=0) const </td></tr>
  124. <tr class="separator:aa3892801051bc7b985e003576df844db"><td class="memSeparator" colspan="2">&#160;</td></tr>
  125. <tr class="memitem:a454272d7094437beb3278a2294006da5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a454272d7094437beb3278a2294006da5">item</a> (int index) const </td></tr>
  126. <tr class="separator:a454272d7094437beb3278a2294006da5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  127. <tr class="memitem:a5ee80cf83f65e3b6dd386942ee3cc1ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPPlottableLegendItem.html">QCPPlottableLegendItem</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a5ee80cf83f65e3b6dd386942ee3cc1ee">itemWithPlottable</a> (const <a class="el" href="classQCPAbstractPlottable.html">QCPAbstractPlottable</a> *plottable) const </td></tr>
  128. <tr class="separator:a5ee80cf83f65e3b6dd386942ee3cc1ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
  129. <tr class="memitem:a198228e9cdc78d3a3c306fa6763d0404"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a198228e9cdc78d3a3c306fa6763d0404">itemCount</a> () const </td></tr>
  130. <tr class="separator:a198228e9cdc78d3a3c306fa6763d0404"><td class="memSeparator" colspan="2">&#160;</td></tr>
  131. <tr class="memitem:a380dd19eb631592e1ebb9b24cc5b398a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a380dd19eb631592e1ebb9b24cc5b398a">hasItem</a> (<a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *<a class="el" href="classQCPLegend.html#a454272d7094437beb3278a2294006da5">item</a>) const </td></tr>
  132. <tr class="separator:a380dd19eb631592e1ebb9b24cc5b398a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  133. <tr class="memitem:a2eb1d24bdf5658e64962a656303fd61a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a2eb1d24bdf5658e64962a656303fd61a">hasItemWithPlottable</a> (const <a class="el" href="classQCPAbstractPlottable.html">QCPAbstractPlottable</a> *plottable) const </td></tr>
  134. <tr class="separator:a2eb1d24bdf5658e64962a656303fd61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  135. <tr class="memitem:a3ab274de52d2951faea45a6d975e6b3f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a3ab274de52d2951faea45a6d975e6b3f">addItem</a> (<a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *<a class="el" href="classQCPLegend.html#a454272d7094437beb3278a2294006da5">item</a>)</td></tr>
  136. <tr class="separator:a3ab274de52d2951faea45a6d975e6b3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  137. <tr class="memitem:ac91595c3eaa746fe6321d2eb952c63bb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#ac91595c3eaa746fe6321d2eb952c63bb">removeItem</a> (int index)</td></tr>
  138. <tr class="separator:ac91595c3eaa746fe6321d2eb952c63bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  139. <tr class="memitem:a2aea4ec6da2d454dd0b241a254d65082"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a2aea4ec6da2d454dd0b241a254d65082">removeItem</a> (<a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *<a class="el" href="classQCPLegend.html#a454272d7094437beb3278a2294006da5">item</a>)</td></tr>
  140. <tr class="separator:a2aea4ec6da2d454dd0b241a254d65082"><td class="memSeparator" colspan="2">&#160;</td></tr>
  141. <tr class="memitem:a24795c7250eb5214fcea16b7217b4dfb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a24795c7250eb5214fcea16b7217b4dfb">clearItems</a> ()</td></tr>
  142. <tr class="separator:a24795c7250eb5214fcea16b7217b4dfb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  143. <tr class="memitem:ac93eaf236e911d67aa8b88942ef45c5e"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#ac93eaf236e911d67aa8b88942ef45c5e">selectedItems</a> () const </td></tr>
  144. <tr class="separator:ac93eaf236e911d67aa8b88942ef45c5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  145. <tr class="inherit_header pub_methods_classQCPLayoutGrid"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classQCPLayoutGrid')"><img src="closed.png" alt="-"/>&#160;Public Functions inherited from <a class="el" href="classQCPLayoutGrid.html">QCPLayoutGrid</a></td></tr>
  146. <tr class="memitem:ab2a4c1587dc8aed4c41c509c8d8d2a64 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#ab2a4c1587dc8aed4c41c509c8d8d2a64">QCPLayoutGrid</a> ()</td></tr>
  147. <tr class="separator:ab2a4c1587dc8aed4c41c509c8d8d2a64 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:af8e6c7a05864ebe610c87756c7b9079c inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#af8e6c7a05864ebe610c87756c7b9079c">rowCount</a> () const </td></tr>
  149. <tr class="separator:af8e6c7a05864ebe610c87756c7b9079c inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:ac39074eafd148b82d0762090f258189e inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#ac39074eafd148b82d0762090f258189e">columnCount</a> () const </td></tr>
  151. <tr class="separator:ac39074eafd148b82d0762090f258189e inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  152. <tr class="memitem:a39bd7994d00687d1b9defef6f1bda835 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a39bd7994d00687d1b9defef6f1bda835"></a>
  153. QList&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>columnStretchFactors</b> () const </td></tr>
  154. <tr class="separator:a39bd7994d00687d1b9defef6f1bda835 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:a3744496abf73c8e3b464181d63bb20a7 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3744496abf73c8e3b464181d63bb20a7"></a>
  156. QList&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>rowStretchFactors</b> () const </td></tr>
  157. <tr class="separator:a3744496abf73c8e3b464181d63bb20a7 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  158. <tr class="memitem:a3de19753fdca81194458cb15156f7315 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3de19753fdca81194458cb15156f7315"></a>
  159. int&#160;</td><td class="memItemRight" valign="bottom"><b>columnSpacing</b> () const </td></tr>
  160. <tr class="separator:a3de19753fdca81194458cb15156f7315 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:abccdd33c1b284feb6df90fa02f23d9a3 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abccdd33c1b284feb6df90fa02f23d9a3"></a>
  162. int&#160;</td><td class="memItemRight" valign="bottom"><b>rowSpacing</b> () const </td></tr>
  163. <tr class="separator:abccdd33c1b284feb6df90fa02f23d9a3 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  164. <tr class="memitem:ae38f31a71687b9d7ee3104852528fb50 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#ae38f31a71687b9d7ee3104852528fb50">setColumnStretchFactor</a> (int column, double factor)</td></tr>
  165. <tr class="separator:ae38f31a71687b9d7ee3104852528fb50 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  166. <tr class="memitem:a6c2591d1a7e2534ce036989543b49e57 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a6c2591d1a7e2534ce036989543b49e57">setColumnStretchFactors</a> (const QList&lt; double &gt; &amp;factors)</td></tr>
  167. <tr class="separator:a6c2591d1a7e2534ce036989543b49e57 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  168. <tr class="memitem:a7b0273de5369bd93d942edbaf5b166ec inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a7b0273de5369bd93d942edbaf5b166ec">setRowStretchFactor</a> (int row, double factor)</td></tr>
  169. <tr class="separator:a7b0273de5369bd93d942edbaf5b166ec inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  170. <tr class="memitem:a200b45f9c908f96ebadaa3c8d87a2782 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a200b45f9c908f96ebadaa3c8d87a2782">setRowStretchFactors</a> (const QList&lt; double &gt; &amp;factors)</td></tr>
  171. <tr class="separator:a200b45f9c908f96ebadaa3c8d87a2782 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:a3a49272aba32bb0fddc3bb2a45a3dba0 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a3a49272aba32bb0fddc3bb2a45a3dba0">setColumnSpacing</a> (int pixels)</td></tr>
  173. <tr class="separator:a3a49272aba32bb0fddc3bb2a45a3dba0 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  174. <tr class="memitem:aaef2cd2d456197ee06a208793678e436 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#aaef2cd2d456197ee06a208793678e436">setRowSpacing</a> (int pixels)</td></tr>
  175. <tr class="separator:aaef2cd2d456197ee06a208793678e436 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  176. <tr class="memitem:a07f8dd7d3d61d7345026621d446042a4 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a07f8dd7d3d61d7345026621d446042a4">updateLayout</a> ()</td></tr>
  177. <tr class="separator:a07f8dd7d3d61d7345026621d446042a4 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  178. <tr class="memitem:aa682b1d36660478f665bab3c64e956a9 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#aa682b1d36660478f665bab3c64e956a9">elementCount</a> () const </td></tr>
  179. <tr class="separator:aa682b1d36660478f665bab3c64e956a9 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  180. <tr class="memitem:a26849ee5c47b4c940e8d65e8462f1065 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a26849ee5c47b4c940e8d65e8462f1065">elementAt</a> (int index) const </td></tr>
  181. <tr class="separator:a26849ee5c47b4c940e8d65e8462f1065 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  182. <tr class="memitem:acc1277394ff8a6432e111ff9463e6375 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#acc1277394ff8a6432e111ff9463e6375">takeAt</a> (int index)</td></tr>
  183. <tr class="separator:acc1277394ff8a6432e111ff9463e6375 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  184. <tr class="memitem:a666a9fe9e92054436f9b66eba25cca0c inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a666a9fe9e92054436f9b66eba25cca0c">take</a> (<a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *<a class="el" href="classQCPLayoutGrid.html#a525f25e6ba43ee228151d074251b4e6a">element</a>)</td></tr>
  185. <tr class="separator:a666a9fe9e92054436f9b66eba25cca0c inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  186. <tr class="memitem:ae9e24e01552f6667b6d05b12a54a4caa inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual QList&lt; <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#ae9e24e01552f6667b6d05b12a54a4caa">elements</a> (bool recursive) const </td></tr>
  187. <tr class="separator:ae9e24e01552f6667b6d05b12a54a4caa inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  188. <tr class="memitem:a08bba60e4acd20165526a8fd7f986b58 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a08bba60e4acd20165526a8fd7f986b58">simplify</a> ()</td></tr>
  189. <tr class="separator:a08bba60e4acd20165526a8fd7f986b58 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  190. <tr class="memitem:a67aae235fb4dd9a479aafe07462ef9ee inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a67aae235fb4dd9a479aafe07462ef9ee">minimumSizeHint</a> () const </td></tr>
  191. <tr class="separator:a67aae235fb4dd9a479aafe07462ef9ee inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  192. <tr class="memitem:a1ec4bf5914900a51829a7919f74aa58c inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">virtual QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a1ec4bf5914900a51829a7919f74aa58c">maximumSizeHint</a> () const </td></tr>
  193. <tr class="separator:a1ec4bf5914900a51829a7919f74aa58c inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  194. <tr class="memitem:a525f25e6ba43ee228151d074251b4e6a inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a525f25e6ba43ee228151d074251b4e6a">element</a> (int row, int column) const </td></tr>
  195. <tr class="separator:a525f25e6ba43ee228151d074251b4e6a inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  196. <tr class="memitem:adff1a2ca691ed83d2d24a4cd1fe17012 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#adff1a2ca691ed83d2d24a4cd1fe17012">addElement</a> (int row, int column, <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *<a class="el" href="classQCPLayoutGrid.html#a525f25e6ba43ee228151d074251b4e6a">element</a>)</td></tr>
  197. <tr class="separator:adff1a2ca691ed83d2d24a4cd1fe17012 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  198. <tr class="memitem:ab0cf4f7edc9414a3bfaddac0f46dc0a0 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#ab0cf4f7edc9414a3bfaddac0f46dc0a0">hasElement</a> (int row, int column)</td></tr>
  199. <tr class="separator:ab0cf4f7edc9414a3bfaddac0f46dc0a0 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:a886c0dcbabd51a45da399e044552b685 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a886c0dcbabd51a45da399e044552b685">expandTo</a> (int newRowCount, int newColumnCount)</td></tr>
  201. <tr class="separator:a886c0dcbabd51a45da399e044552b685 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:a48af3dd7c3a653d9c3d7dd99bd02e838 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a48af3dd7c3a653d9c3d7dd99bd02e838">insertRow</a> (int newIndex)</td></tr>
  203. <tr class="separator:a48af3dd7c3a653d9c3d7dd99bd02e838 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  204. <tr class="memitem:a1e880a321dbe8b43b471ccd764433dc4 inherit pub_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#a1e880a321dbe8b43b471ccd764433dc4">insertColumn</a> (int newIndex)</td></tr>
  205. <tr class="separator:a1e880a321dbe8b43b471ccd764433dc4 inherit pub_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="inherit_header pub_methods_classQCPLayout"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classQCPLayout')"><img src="closed.png" alt="-"/>&#160;Public Functions inherited from <a class="el" href="classQCPLayout.html">QCPLayout</a></td></tr>
  207. <tr class="memitem:a04222e6e1361fd802d48f1a25b7020d4 inherit pub_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a04222e6e1361fd802d48f1a25b7020d4">QCPLayout</a> ()</td></tr>
  208. <tr class="separator:a04222e6e1361fd802d48f1a25b7020d4 inherit pub_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  209. <tr class="memitem:a34ab477e820537ded7bade4399c482fd inherit pub_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a34ab477e820537ded7bade4399c482fd">update</a> (<a class="el" href="classQCPLayoutElement.html#a0d83360e05735735aaf6d7983c56374d">UpdatePhase</a> phase)</td></tr>
  210. <tr class="separator:a34ab477e820537ded7bade4399c482fd inherit pub_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  211. <tr class="memitem:a2403f684fee3ce47132faaeed00bb066 inherit pub_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a2403f684fee3ce47132faaeed00bb066">removeAt</a> (int index)</td></tr>
  212. <tr class="separator:a2403f684fee3ce47132faaeed00bb066 inherit pub_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  213. <tr class="memitem:a6c58f537d8086f352576ab7c5b15d0bc inherit pub_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a6c58f537d8086f352576ab7c5b15d0bc">remove</a> (<a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *element)</td></tr>
  214. <tr class="separator:a6c58f537d8086f352576ab7c5b15d0bc inherit pub_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  215. <tr class="memitem:a02883bdf2769b5b227f0232dba1ac4ee inherit pub_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a02883bdf2769b5b227f0232dba1ac4ee">clear</a> ()</td></tr>
  216. <tr class="separator:a02883bdf2769b5b227f0232dba1ac4ee inherit pub_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  217. <tr class="inherit_header pub_methods_classQCPLayoutElement"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classQCPLayoutElement')"><img src="closed.png" alt="-"/>&#160;Public Functions inherited from <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a></td></tr>
  218. <tr class="memitem:a8947f0ada17e672aaba3d424cbbb67e3 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a8947f0ada17e672aaba3d424cbbb67e3">QCPLayoutElement</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *parentPlot=0)</td></tr>
  219. <tr class="separator:a8947f0ada17e672aaba3d424cbbb67e3 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  220. <tr class="memitem:a6235f5384db871fc6e3387a1bc558b0d inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPLayout.html">QCPLayout</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a6235f5384db871fc6e3387a1bc558b0d">layout</a> () const </td></tr>
  221. <tr class="separator:a6235f5384db871fc6e3387a1bc558b0d inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  222. <tr class="memitem:affdfea003469aac3d0fac5f4e06171bc inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#affdfea003469aac3d0fac5f4e06171bc">rect</a> () const </td></tr>
  223. <tr class="separator:affdfea003469aac3d0fac5f4e06171bc inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  224. <tr class="memitem:a60bbddee2d1230c2414bd776f44d17b8 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a60bbddee2d1230c2414bd776f44d17b8"></a>
  225. QRect&#160;</td><td class="memItemRight" valign="bottom"><b>outerRect</b> () const </td></tr>
  226. <tr class="separator:a60bbddee2d1230c2414bd776f44d17b8 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  227. <tr class="memitem:a85ff977dfcced84eef32d9f819ec9543 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85ff977dfcced84eef32d9f819ec9543"></a>
  228. QMargins&#160;</td><td class="memItemRight" valign="bottom"><b>margins</b> () const </td></tr>
  229. <tr class="separator:a85ff977dfcced84eef32d9f819ec9543 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  230. <tr class="memitem:a60ec7f377c26726174d536bffb632002 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a60ec7f377c26726174d536bffb632002"></a>
  231. QMargins&#160;</td><td class="memItemRight" valign="bottom"><b>minimumMargins</b> () const </td></tr>
  232. <tr class="separator:a60ec7f377c26726174d536bffb632002 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  233. <tr class="memitem:a2f499b1179b3126e22d0d7508124ccb3 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f499b1179b3126e22d0d7508124ccb3"></a>
  234. QCP::MarginSides&#160;</td><td class="memItemRight" valign="bottom"><b>autoMargins</b> () const </td></tr>
  235. <tr class="separator:a2f499b1179b3126e22d0d7508124ccb3 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  236. <tr class="memitem:ae71f9230171d2d898e21dc461fc3df03 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae71f9230171d2d898e21dc461fc3df03"></a>
  237. QSize&#160;</td><td class="memItemRight" valign="bottom"><b>minimumSize</b> () const </td></tr>
  238. <tr class="separator:ae71f9230171d2d898e21dc461fc3df03 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  239. <tr class="memitem:a1fc85c79e15c2ab8051eccd455fccc4a inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1fc85c79e15c2ab8051eccd455fccc4a"></a>
  240. QSize&#160;</td><td class="memItemRight" valign="bottom"><b>maximumSize</b> () const </td></tr>
  241. <tr class="separator:a1fc85c79e15c2ab8051eccd455fccc4a inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  242. <tr class="memitem:a22cb1bb62c452fd802e43ca2524660db inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a22cb1bb62c452fd802e43ca2524660db"></a>
  243. <a class="el" href="classQCPMarginGroup.html">QCPMarginGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>marginGroup</b> (<a class="el" href="namespaceQCP.html#a7e487e3e2ccb62ab7771065bab7cae54">QCP::MarginSide</a> side) const </td></tr>
  244. <tr class="separator:a22cb1bb62c452fd802e43ca2524660db inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  245. <tr class="memitem:ac43921c997570389c14a1671bc3ea499 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac43921c997570389c14a1671bc3ea499"></a>
  246. QHash&lt; <a class="el" href="namespaceQCP.html#a7e487e3e2ccb62ab7771065bab7cae54">QCP::MarginSide</a>, <br class="typebreak"/>
  247. <a class="el" href="classQCPMarginGroup.html">QCPMarginGroup</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>marginGroups</b> () const </td></tr>
  248. <tr class="separator:ac43921c997570389c14a1671bc3ea499 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  249. <tr class="memitem:a38975ea13e36de8e53391ce41d94bc0f inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a38975ea13e36de8e53391ce41d94bc0f">setOuterRect</a> (const QRect &amp;<a class="el" href="classQCPLayoutElement.html#affdfea003469aac3d0fac5f4e06171bc">rect</a>)</td></tr>
  250. <tr class="separator:a38975ea13e36de8e53391ce41d94bc0f inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  251. <tr class="memitem:a8f450b1f3f992ad576fce2c63d8b79cf inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a8f450b1f3f992ad576fce2c63d8b79cf">setMargins</a> (const QMargins &amp;margins)</td></tr>
  252. <tr class="separator:a8f450b1f3f992ad576fce2c63d8b79cf inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  253. <tr class="memitem:a0a8a17abc16b7923159fcc7608f94673 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a0a8a17abc16b7923159fcc7608f94673">setMinimumMargins</a> (const QMargins &amp;margins)</td></tr>
  254. <tr class="separator:a0a8a17abc16b7923159fcc7608f94673 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  255. <tr class="memitem:accfda49994e3e6d51ed14504abf9d27d inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#accfda49994e3e6d51ed14504abf9d27d">setAutoMargins</a> (QCP::MarginSides sides)</td></tr>
  256. <tr class="separator:accfda49994e3e6d51ed14504abf9d27d inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  257. <tr class="memitem:a5dd29a3c8bc88440c97c06b67be7886b inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a5dd29a3c8bc88440c97c06b67be7886b">setMinimumSize</a> (const QSize &amp;size)</td></tr>
  258. <tr class="separator:a5dd29a3c8bc88440c97c06b67be7886b inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  259. <tr class="memitem:a8e0447614a0bf92de9a7304588c6b96e inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a8e0447614a0bf92de9a7304588c6b96e">setMinimumSize</a> (int width, int height)</td></tr>
  260. <tr class="separator:a8e0447614a0bf92de9a7304588c6b96e inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  261. <tr class="memitem:a74eb5280a737ab44833d506db65efd95 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a74eb5280a737ab44833d506db65efd95">setMaximumSize</a> (const QSize &amp;size)</td></tr>
  262. <tr class="separator:a74eb5280a737ab44833d506db65efd95 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  263. <tr class="memitem:a03e0e9c48f230217c529b0819f832d84 inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a03e0e9c48f230217c529b0819f832d84">setMaximumSize</a> (int width, int height)</td></tr>
  264. <tr class="separator:a03e0e9c48f230217c529b0819f832d84 inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  265. <tr class="memitem:a516e56f76b6bc100e8e71d329866847d inherit pub_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a516e56f76b6bc100e8e71d329866847d">setMarginGroup</a> (QCP::MarginSides sides, <a class="el" href="classQCPMarginGroup.html">QCPMarginGroup</a> *group)</td></tr>
  266. <tr class="separator:a516e56f76b6bc100e8e71d329866847d inherit pub_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  267. <tr class="inherit_header pub_methods_classQCPLayerable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classQCPLayerable')"><img src="closed.png" alt="-"/>&#160;Public Functions inherited from <a class="el" href="classQCPLayerable.html">QCPLayerable</a></td></tr>
  268. <tr class="memitem:a74c0fa237f29bf0e49565013fc5d1ec0 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a74c0fa237f29bf0e49565013fc5d1ec0">QCPLayerable</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *plot, QString targetLayer=QString(), <a class="el" href="classQCPLayerable.html">QCPLayerable</a> *<a class="el" href="classQCPLayerable.html#a98d79f5b716d45eac4347befe546d0ec">parentLayerable</a>=0)</td></tr>
  269. <tr class="separator:a74c0fa237f29bf0e49565013fc5d1ec0 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  270. <tr class="memitem:a10a3cc92e0fa63e4a929e61d34e275a7 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a10a3cc92e0fa63e4a929e61d34e275a7"></a>
  271. bool&#160;</td><td class="memItemRight" valign="bottom"><b>visible</b> () const </td></tr>
  272. <tr class="separator:a10a3cc92e0fa63e4a929e61d34e275a7 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  273. <tr class="memitem:ab7e0e94461566093d36ffc0f5312b109 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab7e0e94461566093d36ffc0f5312b109"></a>
  274. <a class="el" href="classQCustomPlot.html">QCustomPlot</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>parentPlot</b> () const </td></tr>
  275. <tr class="separator:ab7e0e94461566093d36ffc0f5312b109 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  276. <tr class="memitem:a98d79f5b716d45eac4347befe546d0ec inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classQCPLayerable.html">QCPLayerable</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a98d79f5b716d45eac4347befe546d0ec">parentLayerable</a> () const </td></tr>
  277. <tr class="separator:a98d79f5b716d45eac4347befe546d0ec inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  278. <tr class="memitem:aea67e8c19145e70d68c286a36f6b8300 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aea67e8c19145e70d68c286a36f6b8300"></a>
  279. <a class="el" href="classQCPLayer.html">QCPLayer</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>layer</b> () const </td></tr>
  280. <tr class="separator:aea67e8c19145e70d68c286a36f6b8300 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  281. <tr class="memitem:aef5cb4aa899ed9dc9384fd614560291e inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aef5cb4aa899ed9dc9384fd614560291e"></a>
  282. bool&#160;</td><td class="memItemRight" valign="bottom"><b>antialiased</b> () const </td></tr>
  283. <tr class="separator:aef5cb4aa899ed9dc9384fd614560291e inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  284. <tr class="memitem:a3bed99ddc396b48ce3ebfdc0418744f8 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a3bed99ddc396b48ce3ebfdc0418744f8">setVisible</a> (bool on)</td></tr>
  285. <tr class="separator:a3bed99ddc396b48ce3ebfdc0418744f8 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  286. <tr class="memitem:ab0d0da6d2de45a118886d2c8e16d5a54 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">Q_SLOT bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#ab0d0da6d2de45a118886d2c8e16d5a54">setLayer</a> (<a class="el" href="classQCPLayer.html">QCPLayer</a> *layer)</td></tr>
  287. <tr class="separator:ab0d0da6d2de45a118886d2c8e16d5a54 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  288. <tr class="memitem:ab25a0e7b897993b44447caee0f142083 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#ab25a0e7b897993b44447caee0f142083">setLayer</a> (const QString &amp;layerName)</td></tr>
  289. <tr class="separator:ab25a0e7b897993b44447caee0f142083 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  290. <tr class="memitem:a4fd43e89be4a553ead41652565ff0581 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a> (bool enabled)</td></tr>
  291. <tr class="separator:a4fd43e89be4a553ead41652565ff0581 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  292. <tr class="memitem:a30809f7455e9794bca7b6c737622fa63 inherit pub_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a30809f7455e9794bca7b6c737622fa63">realVisibility</a> () const </td></tr>
  293. <tr class="separator:a30809f7455e9794bca7b6c737622fa63 inherit pub_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  294. </table><table class="memberdecls">
  295. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
  296. Signals</h2></td></tr>
  297. <tr class="memitem:a82c88464edac07a9eefaf3906268df3b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a82c88464edac07a9eefaf3906268df3b">selectionChanged</a> (QCPLegend::SelectableParts parts)</td></tr>
  298. <tr class="separator:a82c88464edac07a9eefaf3906268df3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  299. <tr class="memitem:a8a77300fd0976d6bdd8000f4e8d114b8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a77300fd0976d6bdd8000f4e8d114b8"></a>
  300. void&#160;</td><td class="memItemRight" valign="bottom"><b>selectableChanged</b> (QCPLegend::SelectableParts parts)</td></tr>
  301. <tr class="separator:a8a77300fd0976d6bdd8000f4e8d114b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  302. <tr class="inherit_header signals_classQCPLayerable"><td colspan="2" onclick="javascript:toggleInherit('signals_classQCPLayerable')"><img src="closed.png" alt="-"/>&#160;Signals inherited from <a class="el" href="classQCPLayerable.html">QCPLayerable</a></td></tr>
  303. <tr class="memitem:abbf8657cedea73ac1c3499b521c90eba inherit signals_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#abbf8657cedea73ac1c3499b521c90eba">layerChanged</a> (<a class="el" href="classQCPLayer.html">QCPLayer</a> *newLayer)</td></tr>
  304. <tr class="separator:abbf8657cedea73ac1c3499b521c90eba inherit signals_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  305. </table><table class="memberdecls">
  306. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
  307. Protected Functions</h2></td></tr>
  308. <tr class="memitem:a4d552c63d82742d77fb7f177bae7b1ba"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a4d552c63d82742d77fb7f177bae7b1ba">parentPlotInitialized</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *parentPlot)</td></tr>
  309. <tr class="separator:a4d552c63d82742d77fb7f177bae7b1ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
  310. <tr class="memitem:a7a9795a28c9c2514b4ae50f0a63d407c"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037">QCP::Interaction</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a7a9795a28c9c2514b4ae50f0a63d407c">selectionCategory</a> () const </td></tr>
  311. <tr class="separator:a7a9795a28c9c2514b4ae50f0a63d407c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  312. <tr class="memitem:a26307f532c3458b379663b7d517a5f47"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a26307f532c3458b379663b7d517a5f47">applyDefaultAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter) const </td></tr>
  313. <tr class="separator:a26307f532c3458b379663b7d517a5f47"><td class="memSeparator" colspan="2">&#160;</td></tr>
  314. <tr class="memitem:a4462151bf875ca85fa3815457c683fdc"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a4462151bf875ca85fa3815457c683fdc">draw</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter)</td></tr>
  315. <tr class="separator:a4462151bf875ca85fa3815457c683fdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  316. <tr class="memitem:af93bf87dc5c383a9d2ada80b35f3a1a5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#af93bf87dc5c383a9d2ada80b35f3a1a5">selectEvent</a> (QMouseEvent *event, bool additive, const QVariant &amp;details, bool *selectionStateChanged)</td></tr>
  317. <tr class="separator:af93bf87dc5c383a9d2ada80b35f3a1a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  318. <tr class="memitem:a5208ead4331c9b0440f768f059777c58"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a5208ead4331c9b0440f768f059777c58">deselectEvent</a> (bool *selectionStateChanged)</td></tr>
  319. <tr class="separator:a5208ead4331c9b0440f768f059777c58"><td class="memSeparator" colspan="2">&#160;</td></tr>
  320. <tr class="memitem:a60172c9d2212584f38f5d0c1e50970c7"><td class="memItemLeft" align="right" valign="top">QPen&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a60172c9d2212584f38f5d0c1e50970c7">getBorderPen</a> () const </td></tr>
  321. <tr class="separator:a60172c9d2212584f38f5d0c1e50970c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  322. <tr class="memitem:a236fe4cd617c9f88620fd9de74417f20"><td class="memItemLeft" align="right" valign="top">QBrush&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLegend.html#a236fe4cd617c9f88620fd9de74417f20">getBrush</a> () const </td></tr>
  323. <tr class="separator:a236fe4cd617c9f88620fd9de74417f20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  324. <tr class="inherit_header pro_methods_classQCPLayoutGrid"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classQCPLayoutGrid')"><img src="closed.png" alt="-"/>&#160;Protected Functions inherited from <a class="el" href="classQCPLayoutGrid.html">QCPLayoutGrid</a></td></tr>
  325. <tr class="memitem:ac645fb9b1c4257b08a9f09dee10b9b3f inherit pro_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#ac645fb9b1c4257b08a9f09dee10b9b3f">getMinimumRowColSizes</a> (QVector&lt; int &gt; *minColWidths, QVector&lt; int &gt; *minRowHeights) const </td></tr>
  326. <tr class="separator:ac645fb9b1c4257b08a9f09dee10b9b3f inherit pro_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  327. <tr class="memitem:af348d903e3b8bc416f1fe1b8125d1173 inherit pro_methods_classQCPLayoutGrid"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutGrid.html#af348d903e3b8bc416f1fe1b8125d1173">getMaximumRowColSizes</a> (QVector&lt; int &gt; *maxColWidths, QVector&lt; int &gt; *maxRowHeights) const </td></tr>
  328. <tr class="separator:af348d903e3b8bc416f1fe1b8125d1173 inherit pro_methods_classQCPLayoutGrid"><td class="memSeparator" colspan="2">&#160;</td></tr>
  329. <tr class="inherit_header pro_methods_classQCPLayout"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classQCPLayout')"><img src="closed.png" alt="-"/>&#160;Protected Functions inherited from <a class="el" href="classQCPLayout.html">QCPLayout</a></td></tr>
  330. <tr class="memitem:a6218cd7e5c0e30077c1aeaffe55b6145 inherit pro_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a6218cd7e5c0e30077c1aeaffe55b6145">sizeConstraintsChanged</a> () const </td></tr>
  331. <tr class="separator:a6218cd7e5c0e30077c1aeaffe55b6145 inherit pro_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  332. <tr class="memitem:af6dbbc24156a808da29cd1ec031729a3 inherit pro_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#af6dbbc24156a808da29cd1ec031729a3">adoptElement</a> (<a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *el)</td></tr>
  333. <tr class="separator:af6dbbc24156a808da29cd1ec031729a3 inherit pro_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  334. <tr class="memitem:a4afbb4bef0071f72f91afdac4433a18e inherit pro_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a4afbb4bef0071f72f91afdac4433a18e">releaseElement</a> (<a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a> *el)</td></tr>
  335. <tr class="separator:a4afbb4bef0071f72f91afdac4433a18e inherit pro_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  336. <tr class="memitem:a92d9dcd95e9510b323706ef7fc4ff62e inherit pro_methods_classQCPLayout"><td class="memItemLeft" align="right" valign="top">QVector&lt; int &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayout.html#a92d9dcd95e9510b323706ef7fc4ff62e">getSectionSizes</a> (QVector&lt; int &gt; maxSizes, QVector&lt; int &gt; minSizes, QVector&lt; double &gt; stretchFactors, int totalSize) const </td></tr>
  337. <tr class="separator:a92d9dcd95e9510b323706ef7fc4ff62e inherit pro_methods_classQCPLayout"><td class="memSeparator" colspan="2">&#160;</td></tr>
  338. <tr class="inherit_header pro_methods_classQCPLayoutElement"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classQCPLayoutElement')"><img src="closed.png" alt="-"/>&#160;Protected Functions inherited from <a class="el" href="classQCPLayoutElement.html">QCPLayoutElement</a></td></tr>
  339. <tr class="memitem:a005c9f0fe84bc1591a2cf2c46fd477b4 inherit pro_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">virtual int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a005c9f0fe84bc1591a2cf2c46fd477b4">calculateAutoMargin</a> (<a class="el" href="namespaceQCP.html#a7e487e3e2ccb62ab7771065bab7cae54">QCP::MarginSide</a> side)</td></tr>
  340. <tr class="separator:a005c9f0fe84bc1591a2cf2c46fd477b4 inherit pro_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  341. <tr class="memitem:a2d82ea21fe0ee628f177bd824bc51a71 inherit pro_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a2d82ea21fe0ee628f177bd824bc51a71">mousePressEvent</a> (QMouseEvent *event)</td></tr>
  342. <tr class="separator:a2d82ea21fe0ee628f177bd824bc51a71 inherit pro_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  343. <tr class="memitem:a14f4acf58cdb8dd2c6c571479c4c4a40 inherit pro_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a14f4acf58cdb8dd2c6c571479c4c4a40">mouseMoveEvent</a> (QMouseEvent *event)</td></tr>
  344. <tr class="separator:a14f4acf58cdb8dd2c6c571479c4c4a40 inherit pro_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  345. <tr class="memitem:ae526ac828cce1e5bb94eaa85776d7404 inherit pro_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#ae526ac828cce1e5bb94eaa85776d7404">mouseReleaseEvent</a> (QMouseEvent *event)</td></tr>
  346. <tr class="separator:ae526ac828cce1e5bb94eaa85776d7404 inherit pro_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  347. <tr class="memitem:aa8fef6486cb6ceb7c82cbdd50bc32ee9 inherit pro_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#aa8fef6486cb6ceb7c82cbdd50bc32ee9">mouseDoubleClickEvent</a> (QMouseEvent *event)</td></tr>
  348. <tr class="separator:aa8fef6486cb6ceb7c82cbdd50bc32ee9 inherit pro_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  349. <tr class="memitem:a300521d2fd18a893c1b85f6be11ce2bf inherit pro_methods_classQCPLayoutElement"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayoutElement.html#a300521d2fd18a893c1b85f6be11ce2bf">wheelEvent</a> (QWheelEvent *event)</td></tr>
  350. <tr class="separator:a300521d2fd18a893c1b85f6be11ce2bf inherit pro_methods_classQCPLayoutElement"><td class="memSeparator" colspan="2">&#160;</td></tr>
  351. <tr class="inherit_header pro_methods_classQCPLayerable"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classQCPLayerable')"><img src="closed.png" alt="-"/>&#160;Protected Functions inherited from <a class="el" href="classQCPLayerable.html">QCPLayerable</a></td></tr>
  352. <tr class="memitem:a07a8f746640c3704b09910df297afcba inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">virtual QRect&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a07a8f746640c3704b09910df297afcba">clipRect</a> () const </td></tr>
  353. <tr class="separator:a07a8f746640c3704b09910df297afcba inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  354. <tr class="memitem:a8cbe5a0c9a5674249982f5ca5f8e02bc inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a8cbe5a0c9a5674249982f5ca5f8e02bc">initializeParentPlot</a> (<a class="el" href="classQCustomPlot.html">QCustomPlot</a> *parentPlot)</td></tr>
  355. <tr class="separator:a8cbe5a0c9a5674249982f5ca5f8e02bc inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  356. <tr class="memitem:aa23c893671f1f6744ac235cf2204cf3a inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#aa23c893671f1f6744ac235cf2204cf3a">setParentLayerable</a> (<a class="el" href="classQCPLayerable.html">QCPLayerable</a> *<a class="el" href="classQCPLayerable.html#a98d79f5b716d45eac4347befe546d0ec">parentLayerable</a>)</td></tr>
  357. <tr class="separator:aa23c893671f1f6744ac235cf2204cf3a inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  358. <tr class="memitem:af94484cfb7cbbddb7de522e9be71d9a4 inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#af94484cfb7cbbddb7de522e9be71d9a4">moveToLayer</a> (<a class="el" href="classQCPLayer.html">QCPLayer</a> *layer, bool prepend)</td></tr>
  359. <tr class="separator:af94484cfb7cbbddb7de522e9be71d9a4 inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  360. <tr class="memitem:a62bd552d1a45aa9accb24b310542279e inherit pro_methods_classQCPLayerable"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classQCPLayerable.html#a62bd552d1a45aa9accb24b310542279e">applyAntialiasingHint</a> (<a class="el" href="classQCPPainter.html">QCPPainter</a> *painter, bool localAntialiased, <a class="el" href="namespaceQCP.html#ae55dbe315d41fe80f29ba88100843a0c">QCP::AntialiasedElement</a> overrideElement) const </td></tr>
  361. <tr class="separator:a62bd552d1a45aa9accb24b310542279e inherit pro_methods_classQCPLayerable"><td class="memSeparator" colspan="2">&#160;</td></tr>
  362. </table>
  363. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  364. <div class="textblock"><p>Manages a legend inside a <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>. </p>
  365. <p>A legend is a small box somewhere in the plot which lists plottables with their name and icon.</p>
  366. <p>Normally, the legend is populated by calling <a class="el" href="classQCPAbstractPlottable.html#a70f8cabfd808f7d5204b9f18c45c13f5">QCPAbstractPlottable::addToLegend</a>. The respective legend item can be removed with <a class="el" href="classQCPAbstractPlottable.html#aa1f350e510326d012b9a9c9249736c83">QCPAbstractPlottable::removeFromLegend</a>. However, <a class="el" href="classQCPLegend.html" title="Manages a legend inside a QCustomPlot. ">QCPLegend</a> also offers an interface to add and manipulate legend items directly: <a class="el" href="classQCPLegend.html#a454272d7094437beb3278a2294006da5">item</a>, <a class="el" href="classQCPLegend.html#a5ee80cf83f65e3b6dd386942ee3cc1ee">itemWithPlottable</a>, <a class="el" href="classQCPLegend.html#a198228e9cdc78d3a3c306fa6763d0404">itemCount</a>, <a class="el" href="classQCPLegend.html#a3ab274de52d2951faea45a6d975e6b3f">addItem</a>, <a class="el" href="classQCPLegend.html#ac91595c3eaa746fe6321d2eb952c63bb">removeItem</a>, etc.</p>
  367. <p>The <a class="el" href="classQCPLegend.html" title="Manages a legend inside a QCustomPlot. ">QCPLegend</a> derives from <a class="el" href="classQCPLayoutGrid.html" title="A layout that arranges child elements in a grid. ">QCPLayoutGrid</a> and as such can be placed in any position a <a class="el" href="classQCPLayoutElement.html" title="The abstract base class for all objects that form the layout system. ">QCPLayoutElement</a> may be positioned. The legend items are themselves QCPLayoutElements which are placed in the grid layout of the legend. <a class="el" href="classQCPLegend.html" title="Manages a legend inside a QCustomPlot. ">QCPLegend</a> only adds an interface specialized for handling child elements of type <a class="el" href="classQCPAbstractLegendItem.html" title="The abstract base class for all entries in a QCPLegend. ">QCPAbstractLegendItem</a>, as mentioned above. In principle, any other layout elements may also be added to a legend via the normal <a class="el" href="classQCPLayoutGrid.html">QCPLayoutGrid</a> interface. However, the QCPAbstractLegendItem-Interface will ignore those elements (e.g. <a class="el" href="classQCPLegend.html#a198228e9cdc78d3a3c306fa6763d0404">itemCount</a> will only return the number of items with QCPAbstractLegendItems type).</p>
  368. <p>By default, every <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> has one legend (<a class="el" href="classQCustomPlot.html#a4eadcd237dc6a09938b68b16877fa6af">QCustomPlot::legend</a>) which is placed in the inset layout of the main axis rect (<a class="el" href="classQCPAxisRect.html#a4114887c7141b59650b7488f930993e5">QCPAxisRect::insetLayout</a>). To move the legend to another position inside the axis rect, use the methods of the <a class="el" href="classQCPLayoutInset.html">QCPLayoutInset</a>. To move the legend outside of the axis rect, place it anywhere else with the QCPLayout/QCPLayoutElement interface. </p>
  369. </div><h2 class="groupheader">Member Enumeration Documentation</h2>
  370. <a class="anchor" id="a5404de8bc1e4a994ca4ae69e2c7072f1"></a>
  371. <div class="memitem">
  372. <div class="memproto">
  373. <table class="memname">
  374. <tr>
  375. <td class="memname">enum <a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1">QCPLegend::SelectablePart</a></td>
  376. </tr>
  377. </table>
  378. </div><div class="memdoc">
  379. <p>Defines the selectable parts of a legend</p>
  380. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a>, <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a> </dd></dl>
  381. <table class="fieldtable">
  382. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a5404de8bc1e4a994ca4ae69e2c7072f1a378201c07d500af7126e3ec91652eed7"></a>spNone</em>&#160;</td><td class="fielddoc">
  383. <p><code>0x000</code> None </p>
  384. </td></tr>
  385. <tr><td class="fieldname"><em><a class="anchor" id="a5404de8bc1e4a994ca4ae69e2c7072f1a0fa4758962a46fa1dc9da818abae23c4"></a>spLegendBox</em>&#160;</td><td class="fielddoc">
  386. <p><code>0x001</code> The legend box (frame) </p>
  387. </td></tr>
  388. <tr><td class="fieldname"><em><a class="anchor" id="a5404de8bc1e4a994ca4ae69e2c7072f1a768bfb95f323db4c66473375032c0af7"></a>spItems</em>&#160;</td><td class="fielddoc">
  389. <p><code>0x002</code> Legend items individually (see <a class="el" href="classQCPLegend.html#ac93eaf236e911d67aa8b88942ef45c5e">selectedItems</a>) </p>
  390. </td></tr>
  391. </table>
  392. </div>
  393. </div>
  394. <h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
  395. <a class="anchor" id="a0001a456989bd07ea378883651fabd72"></a>
  396. <div class="memitem">
  397. <div class="memproto">
  398. <table class="mlabels">
  399. <tr>
  400. <td class="mlabels-left">
  401. <table class="memname">
  402. <tr>
  403. <td class="memname">QCPLegend::QCPLegend </td>
  404. <td>(</td>
  405. <td class="paramname"></td><td>)</td>
  406. <td></td>
  407. </tr>
  408. </table>
  409. </td>
  410. <td class="mlabels-right">
  411. <span class="mlabels"><span class="mlabel">explicit</span></span> </td>
  412. </tr>
  413. </table>
  414. </div><div class="memdoc">
  415. <p>Constructs a new <a class="el" href="classQCPLegend.html" title="Manages a legend inside a QCustomPlot. ">QCPLegend</a> instance with <em>parentPlot</em> as the containing plot and default values.</p>
  416. <p>Note that by default, <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> already contains a legend ready to be used as <a class="el" href="classQCustomPlot.html#a4eadcd237dc6a09938b68b16877fa6af">QCustomPlot::legend</a> </p>
  417. </div>
  418. </div>
  419. <h2 class="groupheader">Member Function Documentation</h2>
  420. <a class="anchor" id="a866a9e3f5267de7430a6c7f26a61db9f"></a>
  421. <div class="memitem">
  422. <div class="memproto">
  423. <table class="memname">
  424. <tr>
  425. <td class="memname">void QCPLegend::setBorderPen </td>
  426. <td>(</td>
  427. <td class="paramtype">const QPen &amp;&#160;</td>
  428. <td class="paramname"><em>pen</em></td><td>)</td>
  429. <td></td>
  430. </tr>
  431. </table>
  432. </div><div class="memdoc">
  433. <p>Sets the pen, the border of the entire legend is drawn with. </p>
  434. </div>
  435. </div>
  436. <a class="anchor" id="a497bbcd38baa3598c08e2b3f48103f23"></a>
  437. <div class="memitem">
  438. <div class="memproto">
  439. <table class="memname">
  440. <tr>
  441. <td class="memname">void QCPLegend::setBrush </td>
  442. <td>(</td>
  443. <td class="paramtype">const QBrush &amp;&#160;</td>
  444. <td class="paramname"><em>brush</em></td><td>)</td>
  445. <td></td>
  446. </tr>
  447. </table>
  448. </div><div class="memdoc">
  449. <p>Sets the brush of the legend background. </p>
  450. </div>
  451. </div>
  452. <a class="anchor" id="aa4cda8499e3cb0f3be415edc02984c73"></a>
  453. <div class="memitem">
  454. <div class="memproto">
  455. <table class="memname">
  456. <tr>
  457. <td class="memname">void QCPLegend::setFont </td>
  458. <td>(</td>
  459. <td class="paramtype">const QFont &amp;&#160;</td>
  460. <td class="paramname"><em>font</em></td><td>)</td>
  461. <td></td>
  462. </tr>
  463. </table>
  464. </div><div class="memdoc">
  465. <p>Sets the default font of legend text. Legend items that draw text (e.g. the name of a graph) will use this font by default. However, a different font can be specified on a per-item-basis by accessing the specific legend item.</p>
  466. <p>This function will also set <em>font</em> on all already existing legend items.</p>
  467. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractLegendItem.html#a409c53455d8112f71d70c0c43eb10265">QCPAbstractLegendItem::setFont</a> </dd></dl>
  468. </div>
  469. </div>
  470. <a class="anchor" id="ae1eb239ff4a4632fe1b6c3e668d845c6"></a>
  471. <div class="memitem">
  472. <div class="memproto">
  473. <table class="memname">
  474. <tr>
  475. <td class="memname">void QCPLegend::setTextColor </td>
  476. <td>(</td>
  477. <td class="paramtype">const QColor &amp;&#160;</td>
  478. <td class="paramname"><em>color</em></td><td>)</td>
  479. <td></td>
  480. </tr>
  481. </table>
  482. </div><div class="memdoc">
  483. <p>Sets the default color of legend text. Legend items that draw text (e.g. the name of a graph) will use this color by default. However, a different colors can be specified on a per-item-basis by accessing the specific legend item.</p>
  484. <p>This function will also set <em>color</em> on all already existing legend items.</p>
  485. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractLegendItem.html#a6ebace6aaffaedcdab2d74e88acc2d1e">QCPAbstractLegendItem::setTextColor</a> </dd></dl>
  486. </div>
  487. </div>
  488. <a class="anchor" id="a8b0740cce488bf7010da6beda6898984"></a>
  489. <div class="memitem">
  490. <div class="memproto">
  491. <table class="memname">
  492. <tr>
  493. <td class="memname">void QCPLegend::setIconSize </td>
  494. <td>(</td>
  495. <td class="paramtype">const QSize &amp;&#160;</td>
  496. <td class="paramname"><em>size</em></td><td>)</td>
  497. <td></td>
  498. </tr>
  499. </table>
  500. </div><div class="memdoc">
  501. <p>Sets the size of legend icons. Legend items that draw an icon (e.g. a visual representation of the graph) will use this size by default. </p>
  502. </div>
  503. </div>
  504. <a class="anchor" id="a96b1a37fd4ee6a9778e6e54fe56ab6c2"></a>
  505. <div class="memitem">
  506. <div class="memproto">
  507. <table class="memname">
  508. <tr>
  509. <td class="memname">void QCPLegend::setIconSize </td>
  510. <td>(</td>
  511. <td class="paramtype">int&#160;</td>
  512. <td class="paramname"><em>width</em>, </td>
  513. </tr>
  514. <tr>
  515. <td class="paramkey"></td>
  516. <td></td>
  517. <td class="paramtype">int&#160;</td>
  518. <td class="paramname"><em>height</em>&#160;</td>
  519. </tr>
  520. <tr>
  521. <td></td>
  522. <td>)</td>
  523. <td></td><td></td>
  524. </tr>
  525. </table>
  526. </div><div class="memdoc">
  527. <p>This is an overloaded function. </p>
  528. </div>
  529. </div>
  530. <a class="anchor" id="a62973bd69d5155e8ea3141366e8968f6"></a>
  531. <div class="memitem">
  532. <div class="memproto">
  533. <table class="memname">
  534. <tr>
  535. <td class="memname">void QCPLegend::setIconTextPadding </td>
  536. <td>(</td>
  537. <td class="paramtype">int&#160;</td>
  538. <td class="paramname"><em>padding</em></td><td>)</td>
  539. <td></td>
  540. </tr>
  541. </table>
  542. </div><div class="memdoc">
  543. <p>Sets the horizontal space in pixels between the legend icon and the text next to it. Legend items that draw an icon (e.g. a visual representation of the graph) and text (e.g. the name of the graph) will use this space by default. </p>
  544. </div>
  545. </div>
  546. <a class="anchor" id="a2f2c93d18a651f4ff294bb3f026f49b8"></a>
  547. <div class="memitem">
  548. <div class="memproto">
  549. <table class="memname">
  550. <tr>
  551. <td class="memname">void QCPLegend::setIconBorderPen </td>
  552. <td>(</td>
  553. <td class="paramtype">const QPen &amp;&#160;</td>
  554. <td class="paramname"><em>pen</em></td><td>)</td>
  555. <td></td>
  556. </tr>
  557. </table>
  558. </div><div class="memdoc">
  559. <p>Sets the pen used to draw a border around each legend icon. Legend items that draw an icon (e.g. a visual representation of the graph) will use this pen by default.</p>
  560. <p>If no border is wanted, set this to <em>Qt::NoPen</em>. </p>
  561. </div>
  562. </div>
  563. <a class="anchor" id="a9ce60aa8bbd89f62ae4fa83ac6c60110"></a>
  564. <div class="memitem">
  565. <div class="memproto">
  566. <table class="memname">
  567. <tr>
  568. <td class="memname">void QCPLegend::setSelectableParts </td>
  569. <td>(</td>
  570. <td class="paramtype">const SelectableParts &amp;&#160;</td>
  571. <td class="paramname"><em>selectable</em></td><td>)</td>
  572. <td></td>
  573. </tr>
  574. </table>
  575. </div><div class="memdoc">
  576. <p>Sets whether the user can (de-)select the parts in <em>selectable</em> by clicking on the <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a> surface. (When <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> contains <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037a269c9af298e257d1108edec0432b5513">QCP::iSelectLegend</a>.)</p>
  577. <p>However, even when <em>selectable</em> is set to a value not allowing the selection of a specific part, it is still possible to set the selection of this part manually, by calling <a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a> directly.</p>
  578. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1">SelectablePart</a>, <a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a> </dd></dl>
  579. </div>
  580. </div>
  581. <a class="anchor" id="a2aee309bb5c2a794b1987f3fc97f8ad8"></a>
  582. <div class="memitem">
  583. <div class="memproto">
  584. <table class="memname">
  585. <tr>
  586. <td class="memname">void QCPLegend::setSelectedParts </td>
  587. <td>(</td>
  588. <td class="paramtype">const SelectableParts &amp;&#160;</td>
  589. <td class="paramname"><em>selected</em></td><td>)</td>
  590. <td></td>
  591. </tr>
  592. </table>
  593. </div><div class="memdoc">
  594. <p>Sets the selected state of the respective legend parts described by <a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1">SelectablePart</a>. When a part is selected, it uses a different pen/font and brush. If some legend items are selected and <em>selected</em> doesn't contain <a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1a768bfb95f323db4c66473375032c0af7">spItems</a>, those items become deselected.</p>
  595. <p>The entire selection mechanism is handled automatically when <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> contains iSelectLegend. You only need to call this function when you wish to change the selection state manually.</p>
  596. <p>This function can change the selection state of a part even when <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a> was set to a value that actually excludes the part.</p>
  597. <p>emits the <a class="el" href="classQCPLegend.html#a82c88464edac07a9eefaf3906268df3b">selectionChanged</a> signal when <em>selected</em> is different from the previous selection state.</p>
  598. <p>Note that it doesn't make sense to set the selected state <a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1a768bfb95f323db4c66473375032c0af7">spItems</a> here when it wasn't set before, because there's no way to specify which exact items to newly select. Do this by calling <a class="el" href="classQCPAbstractLegendItem.html#a6eed93b0ab99cb3eabb043fb08179c2b">QCPAbstractLegendItem::setSelected</a> directly on the legend item you wish to select.</p>
  599. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a5404de8bc1e4a994ca4ae69e2c7072f1">SelectablePart</a>, <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a>, <a class="el" href="classQCPLegend.html#aa3892801051bc7b985e003576df844db">selectTest</a>, <a class="el" href="classQCPLegend.html#a2c35d262953a25d96b6112653fbefc88">setSelectedBorderPen</a>, <a class="el" href="classQCPLegend.html#ade93aabe9bcccaf9cf46cec22c658027">setSelectedIconBorderPen</a>, <a class="el" href="classQCPLegend.html#a875227f3219c9799464631dec5e8f1bd">setSelectedBrush</a>, <a class="el" href="classQCPLegend.html#ab580a01c3c0a239374ed66c29edf5ad2">setSelectedFont</a> </dd></dl>
  600. </div>
  601. </div>
  602. <a class="anchor" id="a2c35d262953a25d96b6112653fbefc88"></a>
  603. <div class="memitem">
  604. <div class="memproto">
  605. <table class="memname">
  606. <tr>
  607. <td class="memname">void QCPLegend::setSelectedBorderPen </td>
  608. <td>(</td>
  609. <td class="paramtype">const QPen &amp;&#160;</td>
  610. <td class="paramname"><em>pen</em></td><td>)</td>
  611. <td></td>
  612. </tr>
  613. </table>
  614. </div><div class="memdoc">
  615. <p>When the legend box is selected, this pen is used to draw the border instead of the normal pen set via <a class="el" href="classQCPLegend.html#a866a9e3f5267de7430a6c7f26a61db9f">setBorderPen</a>.</p>
  616. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a>, <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a>, <a class="el" href="classQCPLegend.html#a875227f3219c9799464631dec5e8f1bd">setSelectedBrush</a> </dd></dl>
  617. </div>
  618. </div>
  619. <a class="anchor" id="ade93aabe9bcccaf9cf46cec22c658027"></a>
  620. <div class="memitem">
  621. <div class="memproto">
  622. <table class="memname">
  623. <tr>
  624. <td class="memname">void QCPLegend::setSelectedIconBorderPen </td>
  625. <td>(</td>
  626. <td class="paramtype">const QPen &amp;&#160;</td>
  627. <td class="paramname"><em>pen</em></td><td>)</td>
  628. <td></td>
  629. </tr>
  630. </table>
  631. </div><div class="memdoc">
  632. <p>Sets the pen legend items will use to draw their icon borders, when they are selected.</p>
  633. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a>, <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a>, <a class="el" href="classQCPLegend.html#ab580a01c3c0a239374ed66c29edf5ad2">setSelectedFont</a> </dd></dl>
  634. </div>
  635. </div>
  636. <a class="anchor" id="a875227f3219c9799464631dec5e8f1bd"></a>
  637. <div class="memitem">
  638. <div class="memproto">
  639. <table class="memname">
  640. <tr>
  641. <td class="memname">void QCPLegend::setSelectedBrush </td>
  642. <td>(</td>
  643. <td class="paramtype">const QBrush &amp;&#160;</td>
  644. <td class="paramname"><em>brush</em></td><td>)</td>
  645. <td></td>
  646. </tr>
  647. </table>
  648. </div><div class="memdoc">
  649. <p>When the legend box is selected, this brush is used to draw the legend background instead of the normal brush set via <a class="el" href="classQCPLegend.html#a497bbcd38baa3598c08e2b3f48103f23">setBrush</a>.</p>
  650. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a>, <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a>, <a class="el" href="classQCPLegend.html#a2c35d262953a25d96b6112653fbefc88">setSelectedBorderPen</a> </dd></dl>
  651. </div>
  652. </div>
  653. <a class="anchor" id="ab580a01c3c0a239374ed66c29edf5ad2"></a>
  654. <div class="memitem">
  655. <div class="memproto">
  656. <table class="memname">
  657. <tr>
  658. <td class="memname">void QCPLegend::setSelectedFont </td>
  659. <td>(</td>
  660. <td class="paramtype">const QFont &amp;&#160;</td>
  661. <td class="paramname"><em>font</em></td><td>)</td>
  662. <td></td>
  663. </tr>
  664. </table>
  665. </div><div class="memdoc">
  666. <p>Sets the default font that is used by legend items when they are selected.</p>
  667. <p>This function will also set <em>font</em> on all already existing legend items.</p>
  668. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#aa4cda8499e3cb0f3be415edc02984c73">setFont</a>, <a class="el" href="classQCPAbstractLegendItem.html#a91db5aee48617a9d3206e61376807365">QCPAbstractLegendItem::setSelectedFont</a> </dd></dl>
  669. </div>
  670. </div>
  671. <a class="anchor" id="a7674dfc7a1f30e1abd1018c0ed45e0bc"></a>
  672. <div class="memitem">
  673. <div class="memproto">
  674. <table class="memname">
  675. <tr>
  676. <td class="memname">void QCPLegend::setSelectedTextColor </td>
  677. <td>(</td>
  678. <td class="paramtype">const QColor &amp;&#160;</td>
  679. <td class="paramname"><em>color</em></td><td>)</td>
  680. <td></td>
  681. </tr>
  682. </table>
  683. </div><div class="memdoc">
  684. <p>Sets the default text color that is used by legend items when they are selected.</p>
  685. <p>This function will also set <em>color</em> on all already existing legend items.</p>
  686. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#ae1eb239ff4a4632fe1b6c3e668d845c6">setTextColor</a>, <a class="el" href="classQCPAbstractLegendItem.html#a4d01d008ee1a5bfe9905b0397a421936">QCPAbstractLegendItem::setSelectedTextColor</a> </dd></dl>
  687. </div>
  688. </div>
  689. <a class="anchor" id="aa3892801051bc7b985e003576df844db"></a>
  690. <div class="memitem">
  691. <div class="memproto">
  692. <table class="mlabels">
  693. <tr>
  694. <td class="mlabels-left">
  695. <table class="memname">
  696. <tr>
  697. <td class="memname">double QCPLegend::selectTest </td>
  698. <td>(</td>
  699. <td class="paramtype">const QPointF &amp;&#160;</td>
  700. <td class="paramname"><em>pos</em>, </td>
  701. </tr>
  702. <tr>
  703. <td class="paramkey"></td>
  704. <td></td>
  705. <td class="paramtype">bool&#160;</td>
  706. <td class="paramname"><em>onlySelectable</em>, </td>
  707. </tr>
  708. <tr>
  709. <td class="paramkey"></td>
  710. <td></td>
  711. <td class="paramtype">QVariant *&#160;</td>
  712. <td class="paramname"><em>details</em> = <code>0</code>&#160;</td>
  713. </tr>
  714. <tr>
  715. <td></td>
  716. <td>)</td>
  717. <td></td><td> const</td>
  718. </tr>
  719. </table>
  720. </td>
  721. <td class="mlabels-right">
  722. <span class="mlabels"><span class="mlabel">virtual</span></span> </td>
  723. </tr>
  724. </table>
  725. </div><div class="memdoc">
  726. <p>Layout elements are sensitive to events inside their outer rect. If <em>pos</em> is within the outer rect, this method returns a value corresponding to 0.99 times the parent plot's selection tolerance. However, layout elements are not selectable by default. So if <em>onlySelectable</em> is true, -1.0 is returned.</p>
  727. <p>See <a class="el" href="classQCPLayerable.html#a4001c4d0dfec55598efa4d531f2179a9">QCPLayerable::selectTest</a> for a general explanation of this virtual method.</p>
  728. <p><a class="el" href="classQCPLayoutElement.html" title="The abstract base class for all objects that form the layout system. ">QCPLayoutElement</a> subclasses may reimplement this method to provide more specific selection test behaviour. </p>
  729. <p>Reimplemented from <a class="el" href="classQCPLayoutElement.html#a9fcf5d0ea19f2c23b2b528bce2c6f095">QCPLayoutElement</a>.</p>
  730. </div>
  731. </div>
  732. <a class="anchor" id="a454272d7094437beb3278a2294006da5"></a>
  733. <div class="memitem">
  734. <div class="memproto">
  735. <table class="memname">
  736. <tr>
  737. <td class="memname"><a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> * QCPLegend::item </td>
  738. <td>(</td>
  739. <td class="paramtype">int&#160;</td>
  740. <td class="paramname"><em>index</em></td><td>)</td>
  741. <td> const</td>
  742. </tr>
  743. </table>
  744. </div><div class="memdoc">
  745. <p>Returns the item with index <em>i</em>.</p>
  746. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a198228e9cdc78d3a3c306fa6763d0404">itemCount</a> </dd></dl>
  747. </div>
  748. </div>
  749. <a class="anchor" id="a5ee80cf83f65e3b6dd386942ee3cc1ee"></a>
  750. <div class="memitem">
  751. <div class="memproto">
  752. <table class="memname">
  753. <tr>
  754. <td class="memname"><a class="el" href="classQCPPlottableLegendItem.html">QCPPlottableLegendItem</a> * QCPLegend::itemWithPlottable </td>
  755. <td>(</td>
  756. <td class="paramtype">const <a class="el" href="classQCPAbstractPlottable.html">QCPAbstractPlottable</a> *&#160;</td>
  757. <td class="paramname"><em>plottable</em></td><td>)</td>
  758. <td> const</td>
  759. </tr>
  760. </table>
  761. </div><div class="memdoc">
  762. <p>Returns the <a class="el" href="classQCPPlottableLegendItem.html" title="A legend item representing a plottable with an icon and the plottable name. ">QCPPlottableLegendItem</a> which is associated with <em>plottable</em> (e.g. a <a class="el" href="classQCPGraph.html">QCPGraph</a>*). If such an item isn't in the legend, returns 0.</p>
  763. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a2eb1d24bdf5658e64962a656303fd61a">hasItemWithPlottable</a> </dd></dl>
  764. </div>
  765. </div>
  766. <a class="anchor" id="a198228e9cdc78d3a3c306fa6763d0404"></a>
  767. <div class="memitem">
  768. <div class="memproto">
  769. <table class="memname">
  770. <tr>
  771. <td class="memname">int QCPLegend::itemCount </td>
  772. <td>(</td>
  773. <td class="paramname"></td><td>)</td>
  774. <td> const</td>
  775. </tr>
  776. </table>
  777. </div><div class="memdoc">
  778. <p>Returns the number of items currently in the legend. </p>
  779. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a454272d7094437beb3278a2294006da5">item</a> </dd></dl>
  780. </div>
  781. </div>
  782. <a class="anchor" id="a380dd19eb631592e1ebb9b24cc5b398a"></a>
  783. <div class="memitem">
  784. <div class="memproto">
  785. <table class="memname">
  786. <tr>
  787. <td class="memname">bool QCPLegend::hasItem </td>
  788. <td>(</td>
  789. <td class="paramtype"><a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *&#160;</td>
  790. <td class="paramname"><em>item</em></td><td>)</td>
  791. <td> const</td>
  792. </tr>
  793. </table>
  794. </div><div class="memdoc">
  795. <p>Returns whether the legend contains <em>itm</em>. </p>
  796. </div>
  797. </div>
  798. <a class="anchor" id="a2eb1d24bdf5658e64962a656303fd61a"></a>
  799. <div class="memitem">
  800. <div class="memproto">
  801. <table class="memname">
  802. <tr>
  803. <td class="memname">bool QCPLegend::hasItemWithPlottable </td>
  804. <td>(</td>
  805. <td class="paramtype">const <a class="el" href="classQCPAbstractPlottable.html">QCPAbstractPlottable</a> *&#160;</td>
  806. <td class="paramname"><em>plottable</em></td><td>)</td>
  807. <td> const</td>
  808. </tr>
  809. </table>
  810. </div><div class="memdoc">
  811. <p>Returns whether the legend contains a <a class="el" href="classQCPPlottableLegendItem.html" title="A legend item representing a plottable with an icon and the plottable name. ">QCPPlottableLegendItem</a> which is associated with <em>plottable</em> (e.g. a <a class="el" href="classQCPGraph.html">QCPGraph</a>*). If such an item isn't in the legend, returns false.</p>
  812. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a5ee80cf83f65e3b6dd386942ee3cc1ee">itemWithPlottable</a> </dd></dl>
  813. </div>
  814. </div>
  815. <a class="anchor" id="a3ab274de52d2951faea45a6d975e6b3f"></a>
  816. <div class="memitem">
  817. <div class="memproto">
  818. <table class="memname">
  819. <tr>
  820. <td class="memname">bool QCPLegend::addItem </td>
  821. <td>(</td>
  822. <td class="paramtype"><a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *&#160;</td>
  823. <td class="paramname"><em>item</em></td><td>)</td>
  824. <td></td>
  825. </tr>
  826. </table>
  827. </div><div class="memdoc">
  828. <p>Adds <em>item</em> to the legend, if it's not present already.</p>
  829. <p>Returns true on sucess, i.e. if the item wasn't in the list already and has been successfuly added.</p>
  830. <p>The legend takes ownership of the item. </p>
  831. </div>
  832. </div>
  833. <a class="anchor" id="ac91595c3eaa746fe6321d2eb952c63bb"></a>
  834. <div class="memitem">
  835. <div class="memproto">
  836. <table class="memname">
  837. <tr>
  838. <td class="memname">bool QCPLegend::removeItem </td>
  839. <td>(</td>
  840. <td class="paramtype">int&#160;</td>
  841. <td class="paramname"><em>index</em></td><td>)</td>
  842. <td></td>
  843. </tr>
  844. </table>
  845. </div><div class="memdoc">
  846. <p>Removes the item with index <em>index</em> from the legend.</p>
  847. <p>Returns true, if successful.</p>
  848. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a198228e9cdc78d3a3c306fa6763d0404">itemCount</a>, <a class="el" href="classQCPLegend.html#a24795c7250eb5214fcea16b7217b4dfb">clearItems</a> </dd></dl>
  849. </div>
  850. </div>
  851. <a class="anchor" id="a2aea4ec6da2d454dd0b241a254d65082"></a>
  852. <div class="memitem">
  853. <div class="memproto">
  854. <table class="memname">
  855. <tr>
  856. <td class="memname">bool QCPLegend::removeItem </td>
  857. <td>(</td>
  858. <td class="paramtype"><a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> *&#160;</td>
  859. <td class="paramname"><em>item</em></td><td>)</td>
  860. <td></td>
  861. </tr>
  862. </table>
  863. </div><div class="memdoc">
  864. <p>This is an overloaded function.</p>
  865. <p>Removes <em>item</em> from the legend.</p>
  866. <p>Returns true, if successful.</p>
  867. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a24795c7250eb5214fcea16b7217b4dfb">clearItems</a> </dd></dl>
  868. </div>
  869. </div>
  870. <a class="anchor" id="a24795c7250eb5214fcea16b7217b4dfb"></a>
  871. <div class="memitem">
  872. <div class="memproto">
  873. <table class="memname">
  874. <tr>
  875. <td class="memname">void QCPLegend::clearItems </td>
  876. <td>(</td>
  877. <td class="paramname"></td><td>)</td>
  878. <td></td>
  879. </tr>
  880. </table>
  881. </div><div class="memdoc">
  882. <p>Removes all items from the legend. </p>
  883. </div>
  884. </div>
  885. <a class="anchor" id="ac93eaf236e911d67aa8b88942ef45c5e"></a>
  886. <div class="memitem">
  887. <div class="memproto">
  888. <table class="memname">
  889. <tr>
  890. <td class="memname">QList&lt; <a class="el" href="classQCPAbstractLegendItem.html">QCPAbstractLegendItem</a> * &gt; QCPLegend::selectedItems </td>
  891. <td>(</td>
  892. <td class="paramname"></td><td>)</td>
  893. <td> const</td>
  894. </tr>
  895. </table>
  896. </div><div class="memdoc">
  897. <p>Returns the legend items that are currently selected. If no items are selected, the list is empty.</p>
  898. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPAbstractLegendItem.html#a6eed93b0ab99cb3eabb043fb08179c2b">QCPAbstractLegendItem::setSelected</a>, setSelectable </dd></dl>
  899. </div>
  900. </div>
  901. <a class="anchor" id="a82c88464edac07a9eefaf3906268df3b"></a>
  902. <div class="memitem">
  903. <div class="memproto">
  904. <table class="mlabels">
  905. <tr>
  906. <td class="mlabels-left">
  907. <table class="memname">
  908. <tr>
  909. <td class="memname">void QCPLegend::selectionChanged </td>
  910. <td>(</td>
  911. <td class="paramtype">QCPLegend::SelectableParts&#160;</td>
  912. <td class="paramname"><em>selection</em></td><td>)</td>
  913. <td></td>
  914. </tr>
  915. </table>
  916. </td>
  917. <td class="mlabels-right">
  918. <span class="mlabels"><span class="mlabel">signal</span></span> </td>
  919. </tr>
  920. </table>
  921. </div><div class="memdoc">
  922. <p>This signal is emitted when the selection state of this legend has changed.</p>
  923. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#a2aee309bb5c2a794b1987f3fc97f8ad8">setSelectedParts</a>, <a class="el" href="classQCPLegend.html#a9ce60aa8bbd89f62ae4fa83ac6c60110">setSelectableParts</a> </dd></dl>
  924. </div>
  925. </div>
  926. <a class="anchor" id="a4d552c63d82742d77fb7f177bae7b1ba"></a>
  927. <div class="memitem">
  928. <div class="memproto">
  929. <table class="mlabels">
  930. <tr>
  931. <td class="mlabels-left">
  932. <table class="memname">
  933. <tr>
  934. <td class="memname">void QCPLegend::parentPlotInitialized </td>
  935. <td>(</td>
  936. <td class="paramtype"><a class="el" href="classQCustomPlot.html">QCustomPlot</a> *&#160;</td>
  937. <td class="paramname"><em>parentPlot</em></td><td>)</td>
  938. <td></td>
  939. </tr>
  940. </table>
  941. </td>
  942. <td class="mlabels-right">
  943. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  944. </tr>
  945. </table>
  946. </div><div class="memdoc">
  947. <p>propagates the parent plot initialization to all child elements, by calling <a class="el" href="classQCPLayerable.html#a8cbe5a0c9a5674249982f5ca5f8e02bc">QCPLayerable::initializeParentPlot</a> on them. </p>
  948. <p>Reimplemented from <a class="el" href="classQCPLayoutElement.html#a1478899e80e8244b411e96ec3b2e5ce2">QCPLayoutElement</a>.</p>
  949. </div>
  950. </div>
  951. <a class="anchor" id="a7a9795a28c9c2514b4ae50f0a63d407c"></a>
  952. <div class="memitem">
  953. <div class="memproto">
  954. <table class="mlabels">
  955. <tr>
  956. <td class="mlabels-left">
  957. <table class="memname">
  958. <tr>
  959. <td class="memname"><a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037">QCP::Interaction</a> QCPLegend::selectionCategory </td>
  960. <td>(</td>
  961. <td class="paramname"></td><td>)</td>
  962. <td> const</td>
  963. </tr>
  964. </table>
  965. </td>
  966. <td class="mlabels-right">
  967. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  968. </tr>
  969. </table>
  970. </div><div class="memdoc">
  971. <p>Returns the selection category this layerable shall belong to. The selection category is used in conjunction with <a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> to control which objects are selectable and which aren't.</p>
  972. <p>Subclasses that don't fit any of the normal <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037">QCP::Interaction</a> values can use <a class="el" href="namespaceQCP.html#a2ad6bb6281c7c2d593d4277b44c2b037af67a50bc26147a13b551b3a625374949">QCP::iSelectOther</a>. This is what the default implementation returns.</p>
  973. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCustomPlot.html#a5ee1e2f6ae27419deca53e75907c27e5">QCustomPlot::setInteractions</a> </dd></dl>
  974. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#aa4035e586b7f317a06ba7e74e242a5ea">QCPLayerable</a>.</p>
  975. </div>
  976. </div>
  977. <a class="anchor" id="a26307f532c3458b379663b7d517a5f47"></a>
  978. <div class="memitem">
  979. <div class="memproto">
  980. <table class="mlabels">
  981. <tr>
  982. <td class="mlabels-left">
  983. <table class="memname">
  984. <tr>
  985. <td class="memname">void QCPLegend::applyDefaultAntialiasingHint </td>
  986. <td>(</td>
  987. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  988. <td class="paramname"><em>painter</em></td><td>)</td>
  989. <td> const</td>
  990. </tr>
  991. </table>
  992. </td>
  993. <td class="mlabels-right">
  994. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  995. </tr>
  996. </table>
  997. </div><div class="memdoc">
  998. <p>A convenience function to easily set the QPainter::Antialiased hint on the provided <em>painter</em> before drawing main legend elements.</p>
  999. <p>This is the antialiasing state the painter passed to the <a class="el" href="classQCPLegend.html#a4462151bf875ca85fa3815457c683fdc">draw</a> method is in by default.</p>
  1000. <p>This function takes into account the local setting of the antialiasing flag as well as the overrides set with <a class="el" href="classQCustomPlot.html#af6f91e5eab1be85f67c556e98c3745e8">QCustomPlot::setAntialiasedElements</a> and <a class="el" href="classQCustomPlot.html#ae10d685b5eabea2999fb8775ca173c24">QCustomPlot::setNotAntialiasedElements</a>.</p>
  1001. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLayerable.html#a4fd43e89be4a553ead41652565ff0581">setAntialiased</a> </dd></dl>
  1002. <p>Reimplemented from <a class="el" href="classQCPLayoutElement.html#ad6d2b4bb0291c2441b2e1ca3d5296df5">QCPLayoutElement</a>.</p>
  1003. </div>
  1004. </div>
  1005. <a class="anchor" id="a4462151bf875ca85fa3815457c683fdc"></a>
  1006. <div class="memitem">
  1007. <div class="memproto">
  1008. <table class="mlabels">
  1009. <tr>
  1010. <td class="mlabels-left">
  1011. <table class="memname">
  1012. <tr>
  1013. <td class="memname">void QCPLegend::draw </td>
  1014. <td>(</td>
  1015. <td class="paramtype"><a class="el" href="classQCPPainter.html">QCPPainter</a> *&#160;</td>
  1016. <td class="paramname"><em>painter</em></td><td>)</td>
  1017. <td></td>
  1018. </tr>
  1019. </table>
  1020. </td>
  1021. <td class="mlabels-right">
  1022. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1023. </tr>
  1024. </table>
  1025. </div><div class="memdoc">
  1026. <p>Draws the legend box with the provided <em>painter</em>. The individual legend items are layerables themselves, thus are drawn independently. </p>
  1027. <p>Reimplemented from <a class="el" href="classQCPLayoutElement.html#a547bcc1e6e2be5645ca781efe0834653">QCPLayoutElement</a>.</p>
  1028. </div>
  1029. </div>
  1030. <a class="anchor" id="af93bf87dc5c383a9d2ada80b35f3a1a5"></a>
  1031. <div class="memitem">
  1032. <div class="memproto">
  1033. <table class="mlabels">
  1034. <tr>
  1035. <td class="mlabels-left">
  1036. <table class="memname">
  1037. <tr>
  1038. <td class="memname">void QCPLegend::selectEvent </td>
  1039. <td>(</td>
  1040. <td class="paramtype">QMouseEvent *&#160;</td>
  1041. <td class="paramname"><em>event</em>, </td>
  1042. </tr>
  1043. <tr>
  1044. <td class="paramkey"></td>
  1045. <td></td>
  1046. <td class="paramtype">bool&#160;</td>
  1047. <td class="paramname"><em>additive</em>, </td>
  1048. </tr>
  1049. <tr>
  1050. <td class="paramkey"></td>
  1051. <td></td>
  1052. <td class="paramtype">const QVariant &amp;&#160;</td>
  1053. <td class="paramname"><em>details</em>, </td>
  1054. </tr>
  1055. <tr>
  1056. <td class="paramkey"></td>
  1057. <td></td>
  1058. <td class="paramtype">bool *&#160;</td>
  1059. <td class="paramname"><em>selectionStateChanged</em>&#160;</td>
  1060. </tr>
  1061. <tr>
  1062. <td></td>
  1063. <td>)</td>
  1064. <td></td><td></td>
  1065. </tr>
  1066. </table>
  1067. </td>
  1068. <td class="mlabels-right">
  1069. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1070. </tr>
  1071. </table>
  1072. </div><div class="memdoc">
  1073. <p>This event is called when the layerable shall be selected, as a consequence of a click by the user. Subclasses should react to it by setting their selection state appropriately. The default implementation does nothing.</p>
  1074. <p><em>event</em> is the mouse event that caused the selection. <em>additive</em> indicates, whether the user was holding the multi-select-modifier while performing the selection (see <a class="el" href="classQCustomPlot.html#a8fc96e3b5138a06759a2a90c166df516">QCustomPlot::setMultiSelectModifier</a>). if <em>additive</em> is true, the selection state must be toggled (i.e. become selected when unselected and unselected when selected).</p>
  1075. <p>Every selectEvent is preceded by a call to <a class="el" href="classQCPLegend.html#aa3892801051bc7b985e003576df844db">selectTest</a>, which has returned positively (i.e. returned a value greater than 0 and less than the selection tolerance of the parent <a class="el" href="classQCustomPlot.html" title="The central class of the library. This is the QWidget which displays the plot and interacts with the ...">QCustomPlot</a>). The <em>details</em> data you output from <a class="el" href="classQCPLegend.html#aa3892801051bc7b985e003576df844db">selectTest</a> is fed back via <em>details</em> here. You may use it to transport any kind of information from the selectTest to the possibly subsequent selectEvent. Usually <em>details</em> is used to transfer which part was clicked, if it is a layerable that has multiple individually selectable parts (like <a class="el" href="classQCPAxis.html" title="Manages a single axis inside a QCustomPlot. ">QCPAxis</a>). This way selectEvent doesn't need to do the calculation again to find out which part was actually clicked.</p>
  1076. <p><em>selectionStateChanged</em> is an output parameter. If the pointer is non-null, this function must set the value either to true or false, depending on whether the selection state of this layerable was actually changed. For layerables that only are selectable as a whole and not in parts, this is simple: if <em>additive</em> is true, <em>selectionStateChanged</em> must also be set to true, because the selection toggles. If <em>additive</em> is false, <em>selectionStateChanged</em> is only set to true, if the layerable was previously unselected and now is switched to the selected state.</p>
  1077. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#aa3892801051bc7b985e003576df844db">selectTest</a>, <a class="el" href="classQCPLegend.html#a5208ead4331c9b0440f768f059777c58">deselectEvent</a> </dd></dl>
  1078. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#a7498c2d0d081cf7cad0fb3bb93aa0e91">QCPLayerable</a>.</p>
  1079. </div>
  1080. </div>
  1081. <a class="anchor" id="a5208ead4331c9b0440f768f059777c58"></a>
  1082. <div class="memitem">
  1083. <div class="memproto">
  1084. <table class="mlabels">
  1085. <tr>
  1086. <td class="mlabels-left">
  1087. <table class="memname">
  1088. <tr>
  1089. <td class="memname">void QCPLegend::deselectEvent </td>
  1090. <td>(</td>
  1091. <td class="paramtype">bool *&#160;</td>
  1092. <td class="paramname"><em>selectionStateChanged</em></td><td>)</td>
  1093. <td></td>
  1094. </tr>
  1095. </table>
  1096. </td>
  1097. <td class="mlabels-right">
  1098. <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
  1099. </tr>
  1100. </table>
  1101. </div><div class="memdoc">
  1102. <p>This event is called when the layerable shall be deselected, either as consequence of a user interaction or a call to <a class="el" href="classQCustomPlot.html#a9d4808ab925b003054085246c92a257c">QCustomPlot::deselectAll</a>. Subclasses should react to it by unsetting their selection appropriately.</p>
  1103. <p>just as in <a class="el" href="classQCPLegend.html#af93bf87dc5c383a9d2ada80b35f3a1a5">selectEvent</a>, the output parameter <em>selectionStateChanged</em> (if non-null), must return true or false when the selection state of this layerable has changed or not changed, respectively.</p>
  1104. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="classQCPLegend.html#aa3892801051bc7b985e003576df844db">selectTest</a>, <a class="el" href="classQCPLegend.html#af93bf87dc5c383a9d2ada80b35f3a1a5">selectEvent</a> </dd></dl>
  1105. <p>Reimplemented from <a class="el" href="classQCPLayerable.html#ae546370644a5551c76af739afc008bee">QCPLayerable</a>.</p>
  1106. </div>
  1107. </div>
  1108. <a class="anchor" id="a60172c9d2212584f38f5d0c1e50970c7"></a>
  1109. <div class="memitem">
  1110. <div class="memproto">
  1111. <table class="mlabels">
  1112. <tr>
  1113. <td class="mlabels-left">
  1114. <table class="memname">
  1115. <tr>
  1116. <td class="memname">QPen QCPLegend::getBorderPen </td>
  1117. <td>(</td>
  1118. <td class="paramname"></td><td>)</td>
  1119. <td> const</td>
  1120. </tr>
  1121. </table>
  1122. </td>
  1123. <td class="mlabels-right">
  1124. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1125. </tr>
  1126. </table>
  1127. </div><div class="memdoc">
  1128. <p>Returns the pen used to paint the border of the legend, taking into account the selection state of the legend box. </p>
  1129. </div>
  1130. </div>
  1131. <a class="anchor" id="a236fe4cd617c9f88620fd9de74417f20"></a>
  1132. <div class="memitem">
  1133. <div class="memproto">
  1134. <table class="mlabels">
  1135. <tr>
  1136. <td class="mlabels-left">
  1137. <table class="memname">
  1138. <tr>
  1139. <td class="memname">QBrush QCPLegend::getBrush </td>
  1140. <td>(</td>
  1141. <td class="paramname"></td><td>)</td>
  1142. <td> const</td>
  1143. </tr>
  1144. </table>
  1145. </td>
  1146. <td class="mlabels-right">
  1147. <span class="mlabels"><span class="mlabel">protected</span></span> </td>
  1148. </tr>
  1149. </table>
  1150. </div><div class="memdoc">
  1151. <p>Returns the brush used to paint the background of the legend, taking into account the selection state of the legend box. </p>
  1152. </div>
  1153. </div>
  1154. <hr/>The documentation for this class was generated from the following files:<ul>
  1155. <li>src/layoutelements/layoutelement-legend.h</li>
  1156. <li>src/layoutelements/layoutelement-legend.cpp</li>
  1157. </ul>
  1158. </div><!-- contents -->
  1159. </body>
  1160. </html>