Skip to content

Commit

Permalink
determines the background color on first click
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Feb 23, 2024
1 parent 5f1c86e commit 027e6f0
Show file tree
Hide file tree
Showing 15 changed files with 1,533 additions and 1,486 deletions.
4 changes: 2 additions & 2 deletions docs/classfluent__tray_1_1_fluent_tray-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@
<tr class="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a6e7ec8d9589d3b1fdb14885349f8daec">count_menus</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="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a1ce960696567087f55044e711ed4ef21">create_tray</a>(const std::string &amp;app_name, const std::string &amp;icon_path=&quot;&quot;, LONG menu_x_margin=5, LONG menu_y_margin=5, LONG menu_x_pad=10, LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=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="even"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a0e64e2f5bea8af804f3c38502fb20346">end</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#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="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#a63a9dd95b682b2a0ff45b4c7e3dd5877">FluentTray</a>(int message_id_offset=25, int autocolorpick_offset=5, unsigned char autofadedborder_from_backcolor=10)</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>
<tr class="odd"><td class="entry"><a class="el" href="classfluent__tray_1_1_fluent_tray.html#ab2c7402a216a5ecfd6e3b886a524418c">set_color</a>(const COLORREF &amp;text_color=CLR_INVALID, const COLORREF &amp;back_color=CLR_INVALID, unsigned char color_decay=10)</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#a0bc296682f55360e71ac8fb9743f46e8">set_color</a>(COLORREF text_color=CLR_INVALID, COLORREF back_color=CLR_INVALID, COLORREF border_color=CLR_INVALID)</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#a435a8474b6d141044cd324bb45e6d726">set_font</a>(LONG font_size=0, LONG font_weight=0, const std::string &amp;font_name=&quot;&quot;)</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#a02abceeae16c5342ae88af29f12cd08a">show_balloon_tip</a>(const std::string &amp;title, const std::string &amp;message)</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#a2287afaa97f4f41c4346c5f2f939857c">show_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>
Expand Down
47 changes: 32 additions & 15 deletions docs/classfluent__tray_1_1_fluent_tray.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a6a6631acc765ddc89ba36976bbe0175f" id="r_a6a6631acc765ddc89ba36976bbe0175f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6a6631acc765ddc89ba36976bbe0175f">FluentTray</a> ()</td></tr>
<tr class="memdesc:a6a6631acc765ddc89ba36976bbe0175f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create tray object. <br /></td></tr>
<tr class="separator:a6a6631acc765ddc89ba36976bbe0175f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a63a9dd95b682b2a0ff45b4c7e3dd5877" id="r_a63a9dd95b682b2a0ff45b4c7e3dd5877"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a63a9dd95b682b2a0ff45b4c7e3dd5877">FluentTray</a> (int message_id_offset=25, int autocolorpick_offset=5, unsigned char autofadedborder_from_backcolor=10)</td></tr>
<tr class="memdesc:a63a9dd95b682b2a0ff45b4c7e3dd5877"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create tray object. <br /></td></tr>
<tr class="separator:a63a9dd95b682b2a0ff45b4c7e3dd5877"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac538f9a69ab74ead314a5004f717080f" id="r_ac538f9a69ab74ead314a5004f717080f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac538f9a69ab74ead314a5004f717080f">FluentTray</a> (const <a class="el" href="classfluent__tray_1_1_fluent_tray.html">FluentTray</a> &amp;)=delete</td></tr>
<tr class="separator:ac538f9a69ab74ead314a5004f717080f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b6b94997f7fe0161e52adc583411b24" id="r_a1b6b94997f7fe0161e52adc583411b24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classfluent__tray_1_1_fluent_tray.html">FluentTray</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1b6b94997f7fe0161e52adc583411b24">operator=</a> (const <a class="el" href="classfluent__tray_1_1_fluent_tray.html">FluentTray</a> &amp;)=delete</td></tr>
Expand Down Expand Up @@ -168,18 +168,18 @@
<tr class="memitem:a435a8474b6d141044cd324bb45e6d726" id="r_a435a8474b6d141044cd324bb45e6d726"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a435a8474b6d141044cd324bb45e6d726">set_font</a> (LONG font_size=0, LONG font_weight=0, const std::string &amp;font_name=&quot;&quot;)</td></tr>
<tr class="memdesc:a435a8474b6d141044cd324bb45e6d726"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set font information to draw menus. <br /></td></tr>
<tr class="separator:a435a8474b6d141044cd324bb45e6d726"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2c7402a216a5ecfd6e3b886a524418c" id="r_ab2c7402a216a5ecfd6e3b886a524418c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab2c7402a216a5ecfd6e3b886a524418c">set_color</a> (const COLORREF &amp;text_color=CLR_INVALID, const COLORREF &amp;back_color=CLR_INVALID, unsigned char color_decay=10)</td></tr>
<tr class="memdesc:ab2c7402a216a5ecfd6e3b886a524418c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set colors to draw menus. <br /></td></tr>
<tr class="separator:ab2c7402a216a5ecfd6e3b886a524418c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0bc296682f55360e71ac8fb9743f46e8" id="r_a0bc296682f55360e71ac8fb9743f46e8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0bc296682f55360e71ac8fb9743f46e8">set_color</a> (COLORREF text_color=CLR_INVALID, COLORREF back_color=CLR_INVALID, COLORREF border_color=CLR_INVALID)</td></tr>
<tr class="memdesc:a0bc296682f55360e71ac8fb9743f46e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set colors to draw menus. <br /></td></tr>
<tr class="separator:a0bc296682f55360e71ac8fb9743f46e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6833da7c8fb8bb3d27470aa45af6b157" id="r_a6833da7c8fb8bb3d27470aa45af6b157"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6833da7c8fb8bb3d27470aa45af6b157">change_icon</a> (const std::string &amp;icon_path)</td></tr>
<tr class="memdesc:a6833da7c8fb8bb3d27470aa45af6b157"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load the image file and change the icon. <br /></td></tr>
<tr class="separator:a6833da7c8fb8bb3d27470aa45af6b157"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Class with information on the entire tray. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a6a6631acc765ddc89ba36976bbe0175f" name="a6a6631acc765ddc89ba36976bbe0175f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6a6631acc765ddc89ba36976bbe0175f">&#9670;&#160;</a></span>FluentTray() <span class="overload">[1/3]</span></h2>
<a id="a63a9dd95b682b2a0ff45b4c7e3dd5877" name="a63a9dd95b682b2a0ff45b4c7e3dd5877"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a63a9dd95b682b2a0ff45b4c7e3dd5877">&#9670;&#160;</a></span>FluentTray() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
Expand All @@ -190,8 +190,17 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6a6631acc765ddc89ba36976
<tr>
<td class="memname">fluent_tray::FluentTray::FluentTray </td>
<td>(</td>
<td class="paramname"><span class="paramname"></span></td><td>)</td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>message_id_offset</em><span class="paramdefsep"> = </span><span class="paramdefval">25</span>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>autocolorpick_offset</em><span class="paramdefsep"> = </span><span class="paramdefval">5</span>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char</td> <td class="paramname"><span class="paramname"><em>autofadedborder_from_backcolor</em><span class="paramdefsep"> = </span><span class="paramdefval">10</span></span>&#160;)</td>
</tr>
</table>
</td>
Expand All @@ -202,6 +211,14 @@ <h2 class="memtitle"><span class="permalink"><a href="#a6a6631acc765ddc89ba36976
</div><div class="memdoc">

<p>Create tray object. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">message_id_offset</td><td>Unique message identifier. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">autocolorpick_offset</td><td>Pixel offset to determine the background color. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">autofadedborder_from_backcolor</td><td>Decay value from the background color to determine the background color of the currently selected menu and the color of the separator line. </td></tr>
</table>
</dd>
</dl>

</div>
</div>
Expand Down Expand Up @@ -804,8 +821,8 @@ <h2 class="memtitle"><span class="permalink"><a href="#a2c09e0d56e7b0a2100dfd133

</div>
</div>
<a id="ab2c7402a216a5ecfd6e3b886a524418c" name="ab2c7402a216a5ecfd6e3b886a524418c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2c7402a216a5ecfd6e3b886a524418c">&#9670;&#160;</a></span>set_color()</h2>
<a id="a0bc296682f55360e71ac8fb9743f46e8" name="a0bc296682f55360e71ac8fb9743f46e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0bc296682f55360e71ac8fb9743f46e8">&#9670;&#160;</a></span>set_color()</h2>

<div class="memitem">
<div class="memproto">
Expand All @@ -816,17 +833,17 @@ <h2 class="memtitle"><span class="permalink"><a href="#ab2c7402a216a5ecfd6e3b886
<tr>
<td class="memname">bool fluent_tray::FluentTray::set_color </td>
<td>(</td>
<td class="paramtype">const COLORREF &amp;</td> <td class="paramname"><span class="paramname"><em>text_color</em><span class="paramdefsep"> = </span><span class="paramdefval">CLR_INVALID</span>, </span></td>
<td class="paramtype">COLORREF</td> <td class="paramname"><span class="paramname"><em>text_color</em><span class="paramdefsep"> = </span><span class="paramdefval">CLR_INVALID</span>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const COLORREF &amp;</td> <td class="paramname"><span class="paramname"><em>back_color</em><span class="paramdefsep"> = </span><span class="paramdefval">CLR_INVALID</span>, </span></td>
<td class="paramtype">COLORREF</td> <td class="paramname"><span class="paramname"><em>back_color</em><span class="paramdefsep"> = </span><span class="paramdefval">CLR_INVALID</span>, </span></td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">unsigned char</td> <td class="paramname"><span class="paramname"><em>color_decay</em><span class="paramdefsep"> = </span><span class="paramdefval">10</span></span>&#160;)</td>
<td class="paramtype">COLORREF</td> <td class="paramname"><span class="paramname"><em>border_color</em><span class="paramdefsep"> = </span><span class="paramdefval">CLR_INVALID</span></span>&#160;)</td>
</tr>
</table>
</td>
Expand All @@ -841,7 +858,7 @@ <h2 class="memtitle"><span class="permalink"><a href="#ab2c7402a216a5ecfd6e3b886
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">text_color</td><td>The color for label text. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">back_color</td><td>The color for background. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">color_decay</td><td>Decay value from the background color to determine the background color of the currently selected menu and the color of the separator line. </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">border_color</td><td>The color for border. </td></tr>
</table>
</dd>
</dl>
Expand Down
2 changes: 0 additions & 2 deletions docs/doxygen_crawl.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,5 @@
<a href="functions_func.html"/>
<a href="functions_func.html"/>
<a href="files.html"/>
<a href="globals.html"/>
<a href="globals_defs.html"/>
</body>
</html>
Loading

0 comments on commit 027e6f0

Please sign in to comment.