Skip to content

Commit

Permalink
add front() and back()
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 13, 2024
1 parent 4e7bbd2 commit d96178a
Show file tree
Hide file tree
Showing 10 changed files with 723 additions and 523 deletions.
4 changes: 4 additions & 0 deletions docs/classfluent__tray_1_1_fluent_tray-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
<table class="directory">
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a32afb7010725031f3242e0c51c56a4ad">add_menu</a>(const std::string &amp;label_text=&quot;&quot;, const std::string &amp;icon_path=&quot;&quot;, bool toggleable=false, const std::string &amp;checkmark=&quot;✓&quot;, const std::function&lt; bool(void)&gt; &amp;callback=[] {return true ;}, const std::function&lt; bool(void)&gt; &amp;unchecked_callback=[] {return true ;})</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#ab973402f688be96e578b4b269f192728">add_separator</a>()</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#afce8252232da76937872e263d5fe925f">back</a>()</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a63dfc8e752b444100a525f27b1b96db1">back</a>() const</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#ae125994bac6b48aa54e0276829983598">begin</a>() noexcept</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a77cdbb20660d47cc09cf80d4b7300472">cbegin</a>() const noexcept</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a9374619a46a4084eb0101648e039f553">cend</a>() const noexcept</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
Expand All @@ -96,6 +98,8 @@
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a6a6631acc765ddc89ba36976bbe0175f">FluentTray</a>()</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span><span class="mlabel">explicit</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#ac538f9a69ab74ead314a5004f717080f">FluentTray</a>(const FluentTray &amp;)=delete</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#adc5d4b971a378080dea22225c0a8e3a1">FluentTray</a>(FluentTray &amp;&amp;)=default</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#acd10bcf8769e9851026dd1302323cc90">front</a>()</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a974f39be7c66bf61750de98331b063c3">front</a>() const</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#aba45a136ce6348aa79da7805624a59c6">hide_menu_window</a>()</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"><span class="mlabel">inline</span></td></tr>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a1b6b94997f7fe0161e52adc583411b24">operator=</a>(const FluentTray &amp;)=delete</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"></td></tr>
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a2c09e0d56e7b0a2100dfd1330405c449">operator=</a>(FluentTray &amp;&amp;)=default</td><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">fluent_tray::FluentTray</a></td><td class="entry"></td></tr>
Expand Down
124 changes: 124 additions & 0 deletions docs/classfluent__tray_1_1_fluent_tray.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,18 @@
<tr class="memitem:a9374619a46a4084eb0101648e039f553" id="r_a9374619a46a4084eb0101648e039f553"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &gt;::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9374619a46a4084eb0101648e039f553">cend</a> () const noexcept</td></tr>
<tr class="memdesc:a9374619a46a4084eb0101648e039f553"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a constant iterator to the end of menus. <br /></td></tr>
<tr class="separator:a9374619a46a4084eb0101648e039f553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd10bcf8769e9851026dd1302323cc90" id="r_acd10bcf8769e9851026dd1302323cc90"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acd10bcf8769e9851026dd1302323cc90">front</a> ()</td></tr>
<tr class="memdesc:acd10bcf8769e9851026dd1302323cc90"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the reference to the beginning of menus. <br /></td></tr>
<tr class="separator:acd10bcf8769e9851026dd1302323cc90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a974f39be7c66bf61750de98331b063c3" id="r_a974f39be7c66bf61750de98331b063c3"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a974f39be7c66bf61750de98331b063c3">front</a> () const</td></tr>
<tr class="memdesc:a974f39be7c66bf61750de98331b063c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the const reference to the beginning of menus. <br /></td></tr>
<tr class="separator:a974f39be7c66bf61750de98331b063c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afce8252232da76937872e263d5fe925f" id="r_afce8252232da76937872e263d5fe925f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afce8252232da76937872e263d5fe925f">back</a> ()</td></tr>
<tr class="memdesc:afce8252232da76937872e263d5fe925f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the reference to the last of menus. <br /></td></tr>
<tr class="separator:afce8252232da76937872e263d5fe925f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63dfc8e752b444100a525f27b1b96db1" id="r_a63dfc8e752b444100a525f27b1b96db1"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a63dfc8e752b444100a525f27b1b96db1">back</a> () const</td></tr>
<tr class="memdesc:a63dfc8e752b444100a525f27b1b96db1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the const reference to the last of menus. <br /></td></tr>
<tr class="separator:a63dfc8e752b444100a525f27b1b96db1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6e7ec8d9589d3b1fdb14885349f8daec" id="r_a6e7ec8d9589d3b1fdb14885349f8daec"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6e7ec8d9589d3b1fdb14885349f8daec">count_menus</a> () const noexcept</td></tr>
<tr class="memdesc:a6e7ec8d9589d3b1fdb14885349f8daec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the number of menus. <br /></td></tr>
<tr class="separator:a6e7ec8d9589d3b1fdb14885349f8daec"><td class="memSeparator" colspan="2">&#160;</td></tr>
Expand Down Expand Up @@ -354,6 +366,62 @@ <h2 class="memtitle"><span class="permalink"><a href="#ab973402f688be96e578b4b26

<p>Add a separator line under the last menu item added. </p>

</div>
</div>
<a id="afce8252232da76937872e263d5fe925f" name="afce8252232da76937872e263d5fe925f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afce8252232da76937872e263d5fe925f">&#9670;&#160;</a></span>back() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp; fluent_tray::FluentTray::back </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Returns the reference to the last of menus. </p>
<dl class="section return"><dt>Returns</dt><dd>Reference to the first element. </dd></dl>

</div>
</div>
<a id="a63dfc8e752b444100a525f27b1b96db1" name="a63dfc8e752b444100a525f27b1b96db1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63dfc8e752b444100a525f27b1b96db1">&#9670;&#160;</a></span>back() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp; fluent_tray::FluentTray::back </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Returns the const reference to the last of menus. </p>
<dl class="section return"><dt>Returns</dt><dd>Const reference to the first element. </dd></dl>

</div>
</div>
<a id="ae125994bac6b48aa54e0276829983598" name="ae125994bac6b48aa54e0276829983598"></a>
Expand Down Expand Up @@ -597,6 +665,62 @@ <h2 class="memtitle"><span class="permalink"><a href="#a0e64e2f5bea8af804f3c3850
<p>Returns an iterator to the end of menus. </p>
<dl class="section return"><dt>Returns</dt><dd>Iterator to the last element. </dd></dl>

</div>
</div>
<a id="acd10bcf8769e9851026dd1302323cc90" name="acd10bcf8769e9851026dd1302323cc90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd10bcf8769e9851026dd1302323cc90">&#9670;&#160;</a></span>front() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp; fluent_tray::FluentTray::front </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Returns the reference to the beginning of menus. </p>
<dl class="section return"><dt>Returns</dt><dd>Reference to the first element. </dd></dl>

</div>
</div>
<a id="a974f39be7c66bf61750de98331b063c3" name="a974f39be7c66bf61750de98331b063c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a974f39be7c66bf61750de98331b063c3">&#9670;&#160;</a></span>front() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classfluent__tray_1_1_fluent_menu.html">FluentMenu</a> &amp; fluent_tray::FluentTray::front </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">

<p>Returns the const reference to the beginning of menus. </p>
<dl class="section return"><dt>Returns</dt><dd>Const reference to the first element. </dd></dl>

</div>
</div>
<a id="aba45a136ce6348aa79da7805624a59c6" name="aba45a136ce6348aa79da7805624a59c6"></a>
Expand Down
Loading

0 comments on commit d96178a

Please sign in to comment.