diff --git a/docs/classfluent__tray_1_1_fluent_tray-members.html b/docs/classfluent__tray_1_1_fluent_tray-members.html index 3cfdc8e..15fd7d3 100644 --- a/docs/classfluent__tray_1_1_fluent_tray-members.html +++ b/docs/classfluent__tray_1_1_fluent_tray-members.html @@ -93,7 +93,7 @@ cend() const noexceptfluent_tray::FluentTrayinline change_icon(const std::string &icon_path)fluent_tray::FluentTrayinline 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=5, LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=true)fluent_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(const FluentTray &)=deletefluent_tray::FluentTray diff --git a/docs/classfluent__tray_1_1_fluent_tray.html b/docs/classfluent__tray_1_1_fluent_tray.html index 0413b26..db1ea9b 100644 --- a/docs/classfluent__tray_1_1_fluent_tray.html +++ b/docs/classfluent__tray_1_1_fluent_tray.html @@ -105,9 +105,9 @@   virtual ~FluentTray () noexcept   -bool 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=5, LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=true) - Initialize tray and create icon on tray.
-  +bool 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) + Initialize tray and create icon on tray.
+  bool add_menu (const std::string &label_text="", const std::string &icon_path="", bool toggleable=false, const std::string &checkmark="✓", const std::function< bool(void)> &callback=[] {return true ;}, const std::function< bool(void)> &unchecked_callback=[] {return true ;})  Add a menu in order from the top.
  @@ -567,8 +567,8 @@

-

◆ create_tray()

+ +

◆ create_tray()

@@ -599,7 +599,7 @@

- LONG menu_x_pad = 5, + LONG menu_x_pad = 10, diff --git a/docs/fluent__tray_8hpp_source.html b/docs/fluent__tray_8hpp_source.html index 9b22f62..265b55b 100644 --- a/docs/fluent__tray_8hpp_source.html +++ b/docs/fluent__tray_8hpp_source.html @@ -241,7 +241,7 @@
197 template <typename InType, typename OutType>
198 inline void split_bits(InType input, OutType& upper, OutType& lower) noexcept {
-
199 constexpr auto bits = type2bit<OutType>() ;
+
199 static constexpr auto bits = type2bit<OutType>() ;
200 static const auto lower_mask = util::bit2mask(bits) ;
201
202 upper = static_cast<OutType>(reinterpret_cast<std::size_t>(input) >> bits) ;
@@ -252,7 +252,7 @@
213 template <typename InType, typename OutType>
-
215 constexpr auto bits = type2bit<InType>() ;
+
215 static constexpr auto bits = type2bit<InType>() ;
216 static const auto lower_mask = util::bit2mask(bits) ;
217
218 auto out_upper = static_cast<std::size_t>(upper) << bits ;
@@ -734,13 +734,13 @@
760
- +
774 const std::string& app_name,
775 const std::string& icon_path="",
776 LONG menu_x_margin=5,
777 LONG menu_y_margin=5,
-
778 LONG menu_x_pad=5,
-
779 LONG menu_y_pad=5,
+
778 LONG menu_x_pad=10,
+
779 LONG menu_y_pad=5,
780 unsigned char opacity=255,
781 bool round_corner=true) {
782 if(!util::string2wstring(app_name, app_name_)) {
@@ -1523,8 +1523,8 @@
virtual ~FluentTray() noexcept
Definition fluent_tray.hpp:752
std::vector< FluentMenu >::iterator end() noexcept
Returns an iterator to the end of menus.
Definition fluent_tray.hpp:1192
FluentTray & operator=(const FluentTray &)=delete
+
bool 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)
Initialize tray and create icon on tray.
Definition fluent_tray.hpp:773
bool show_menu_window()
Show the menu window above the tray icon.
Definition fluent_tray.hpp:1014
-
bool 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=5, LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=true)
Initialize tray and create icon on tray.
Definition fluent_tray.hpp:773
void stop() noexcept
Exit the tray successfully.
Definition fluent_tray.hpp:1176
FluentTray & operator=(FluentTray &&)=default
bool add_menu(const std::string &label_text="", const std::string &icon_path="", bool toggleable=false, const std::string &checkmark="✓", const std::function< bool(void)> &callback=[] {return true ;}, const std::function< bool(void)> &unchecked_callback=[] {return true ;})
Add a menu in order from the top.
Definition fluent_tray.hpp:906
diff --git a/docs/functions.html b/docs/functions.html index 3a1cf8f..9555706 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -97,7 +97,7 @@

- c -

diff --git a/docs/functions_func.html b/docs/functions_func.html index 0f6e625..6107dd3 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -97,7 +97,7 @@

- c -

diff --git a/docs/index.html b/docs/index.html index 0f29727..2982400 100644 --- a/docs/index.html +++ b/docs/index.html @@ -110,7 +110,7 @@

FluentTray tray{} ;
// Initialize the tray icon.
-
tray.create_tray("demo", "demo/assets/icon.ico") ;
+
tray.create_tray("demo", "demo/assets/icon.ico") ;
// Add menus in order from the top.
tray.add_menu("Home", "demo/assets/fa-home.ico") ;
@@ -132,7 +132,7 @@

return 0 ;
}
Class with information on the entire tray.
Definition fluent_tray.hpp:688
-
bool 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=5, LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=true)
Initialize tray and create icon on tray.
Definition fluent_tray.hpp:773
+
bool 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)
Initialize tray and create icon on tray.
Definition fluent_tray.hpp:773
Fluent Design-based GUI Library for System Tray Applications.
Base namespace.

diff --git a/docs/search/all_2.js b/docs/search/all_2.js index 91e689b..3b4a0b3 100644 --- a/docs/search/all_2.js +++ b/docs/search/all_2.js @@ -10,5 +10,5 @@ var searchData= ['concept_7',['Concept',['../index.html#autotoc_md0',1,'']]], ['count_5fmenus_8',['count_menus',['../classfluent__tray_1_1_fluent_tray.html#a6e7ec8d9589d3b1fdb14885349f8daec',1,'fluent_tray::FluentTray']]], ['create_5fmenu_9',['create_menu',['../classfluent__tray_1_1_fluent_menu.html#a9626aab1a2407277fc347d97147ca191',1,'fluent_tray::FluentMenu']]], - ['create_5ftray_10',['create_tray',['../classfluent__tray_1_1_fluent_tray.html#a24733799536bdaa1f8d2f0504d4ba4ac',1,'fluent_tray::FluentTray']]] + ['create_5ftray_10',['create_tray',['../classfluent__tray_1_1_fluent_tray.html#a1ce960696567087f55044e711ed4ef21',1,'fluent_tray::FluentTray']]] ]; diff --git a/docs/search/functions_2.js b/docs/search/functions_2.js index 4a45fd1..fe25046 100644 --- a/docs/search/functions_2.js +++ b/docs/search/functions_2.js @@ -8,5 +8,5 @@ var searchData= ['concatenate_5fbits_5',['concatenate_bits',['../namespacefluent__tray_1_1util.html#a7c27457aa89604dc7f6d7ecbb17a0fc4',1,'fluent_tray::util']]], ['count_5fmenus_6',['count_menus',['../classfluent__tray_1_1_fluent_tray.html#a6e7ec8d9589d3b1fdb14885349f8daec',1,'fluent_tray::FluentTray']]], ['create_5fmenu_7',['create_menu',['../classfluent__tray_1_1_fluent_menu.html#a9626aab1a2407277fc347d97147ca191',1,'fluent_tray::FluentMenu']]], - ['create_5ftray_8',['create_tray',['../classfluent__tray_1_1_fluent_tray.html#a24733799536bdaa1f8d2f0504d4ba4ac',1,'fluent_tray::FluentTray']]] + ['create_5ftray_8',['create_tray',['../classfluent__tray_1_1_fluent_tray.html#a1ce960696567087f55044e711ed4ef21',1,'fluent_tray::FluentTray']]] ];