From 027e6f0cbe727e90ba41c6d3b7cd7f2f53c5f012 Mon Sep 17 00:00:00 2001 From: pit-ray Date: Fri, 23 Feb 2024 21:26:50 +0900 Subject: [PATCH] determines the background color on first click --- ...sfluent__tray_1_1_fluent_tray-members.html | 4 +- docs/classfluent__tray_1_1_fluent_tray.html | 47 +- docs/doxygen_crawl.html | 2 - docs/fluent__tray_8hpp.html | 45 +- docs/fluent__tray_8hpp_source.html | 2646 +++++++++-------- docs/functions.html | 4 +- docs/functions_func.html | 4 +- docs/index.html | 4 +- docs/menudata.js | 5 +- docs/search/all_5.js | 8 +- docs/search/all_e.js | 2 +- docs/search/functions_5.js | 2 +- docs/search/functions_d.js | 2 +- docs/search/searchdata.js | 9 +- include/fluent_tray.hpp | 235 +- 15 files changed, 1533 insertions(+), 1486 deletions(-) diff --git a/docs/classfluent__tray_1_1_fluent_tray-members.html b/docs/classfluent__tray_1_1_fluent_tray-members.html index 15fd7d3..7f9098f 100644 --- a/docs/classfluent__tray_1_1_fluent_tray-members.html +++ b/docs/classfluent__tray_1_1_fluent_tray-members.html @@ -95,7 +95,7 @@ count_menus() const noexceptfluent_tray::FluentTrayinline create_tray(const std::string &app_name, const std::string &icon_path="", 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)fluent_tray::FluentTrayinline end() noexceptfluent_tray::FluentTrayinline - FluentTray()fluent_tray::FluentTrayinlineexplicit + FluentTray(int message_id_offset=25, int autocolorpick_offset=5, unsigned char autofadedborder_from_backcolor=10)fluent_tray::FluentTrayinlineexplicit FluentTray(const FluentTray &)=deletefluent_tray::FluentTray FluentTray(FluentTray &&)=defaultfluent_tray::FluentTray front()fluent_tray::FluentTrayinline @@ -103,7 +103,7 @@ hide_menu_window()fluent_tray::FluentTrayinline operator=(const FluentTray &)=deletefluent_tray::FluentTray operator=(FluentTray &&)=defaultfluent_tray::FluentTray - set_color(const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, unsigned char color_decay=10)fluent_tray::FluentTrayinline + set_color(COLORREF text_color=CLR_INVALID, COLORREF back_color=CLR_INVALID, COLORREF border_color=CLR_INVALID)fluent_tray::FluentTrayinline set_font(LONG font_size=0, LONG font_weight=0, const std::string &font_name="")fluent_tray::FluentTrayinline show_balloon_tip(const std::string &title, const std::string &message)fluent_tray::FluentTrayinline show_menu_window()fluent_tray::FluentTrayinline diff --git a/docs/classfluent__tray_1_1_fluent_tray.html b/docs/classfluent__tray_1_1_fluent_tray.html index db1ea9b..e1c58a3 100644 --- a/docs/classfluent__tray_1_1_fluent_tray.html +++ b/docs/classfluent__tray_1_1_fluent_tray.html @@ -92,9 +92,9 @@ - - - + + + @@ -168,9 +168,9 @@ - - - + + + @@ -178,8 +178,8 @@

Detailed Description

Class with information on the entire tray.

Constructor & Destructor Documentation

- -

◆ FluentTray() [1/3]

+ +

◆ FluentTray() [1/3]

- + + + + + + + + + +

Public Member Functions

 FluentTray ()
 Create tray object.
 
 FluentTray (int message_id_offset=25, int autocolorpick_offset=5, unsigned char autofadedborder_from_backcolor=10)
 Create tray object.
 
 FluentTray (const FluentTray &)=delete
 
FluentTrayoperator= (const FluentTray &)=delete
bool set_font (LONG font_size=0, LONG font_weight=0, const std::string &font_name="")
 Set font information to draw menus.
 
bool set_color (const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, unsigned char color_decay=10)
 Set colors to draw menus.
 
bool set_color (COLORREF text_color=CLR_INVALID, COLORREF back_color=CLR_INVALID, COLORREF border_color=CLR_INVALID)
 Set colors to draw menus.
 
bool change_icon (const std::string &icon_path)
 Load the image file and change the icon.
 
()int message_id_offset = 25,
int autocolorpick_offset = 5,
unsigned char autofadedborder_from_backcolor = 10 )
@@ -202,6 +211,14 @@

Create tray object.

+
Parameters
+ + + + +
[in]message_id_offsetUnique message identifier.
[in]autocolorpick_offsetPixel offset to determine the background color.
[in]autofadedborder_from_backcolorDecay value from the background color to determine the background color of the currently selected menu and the color of the separator line.
+
+
@@ -804,8 +821,8 @@

-

◆ set_color()

+ +

◆ set_color()

@@ -816,17 +833,17 @@

bool fluent_tray::FluentTray::set_color ( - const COLORREF & text_color = CLR_INVALID, + COLORREF text_color = CLR_INVALID, - const COLORREF & back_color = CLR_INVALID, + COLORREF back_color = CLR_INVALID, - unsigned char color_decay = 10 ) + COLORREF border_color = CLR_INVALID ) @@ -841,7 +858,7 @@

[in]text_colorThe color for label text. [in]back_colorThe color for background. - [in]color_decayDecay value from the background color to determine the background color of the currently selected menu and the color of the separator line. + [in]border_colorThe color for border. diff --git a/docs/doxygen_crawl.html b/docs/doxygen_crawl.html index 9f04ec7..91505f9 100644 --- a/docs/doxygen_crawl.html +++ b/docs/doxygen_crawl.html @@ -71,7 +71,5 @@ - - diff --git a/docs/fluent__tray_8hpp.html b/docs/fluent__tray_8hpp.html index 09e4e82..ebfb829 100644 --- a/docs/fluent__tray_8hpp.html +++ b/docs/fluent__tray_8hpp.html @@ -81,7 +81,6 @@
fluent_tray.hpp File Reference
@@ -121,15 +120,6 @@  Utility namespace.
  - - - - - - - -

-Macros

#define FLUENT_TRAY_MESSAGE_ID_OFFSET   (25)
 Unique message identifier.
 
#define FLUENT_TRAY_COLORPICK_OFFSET   (5)
 Pixel offset to determine the background color.
 

Enumerations

enum class  fluent_tray::TrayStatus : unsigned char { fluent_tray::RUNNING @@ -174,40 +164,7 @@

Fluent Design-based GUI Library for System Tray Applications.

Author
pit-ray
Date
2024
-

Macro Definition Documentation

- -

◆ FLUENT_TRAY_COLORPICK_OFFSET

- -
-
- - - - -
#define FLUENT_TRAY_COLORPICK_OFFSET   (5)
-
- -

Pixel offset to determine the background color.

- -
-
- -

◆ FLUENT_TRAY_MESSAGE_ID_OFFSET

- -
-
- - - - -
#define FLUENT_TRAY_MESSAGE_ID_OFFSET   (25)
-
- -

Unique message identifier.

- -
-
- +