From 2200f0e4e7855a29e1caf47dd55cf5885125541f Mon Sep 17 00:00:00 2001
From: pit-ray
-
+
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
▼Nfluent_tray | Base namespace | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CFluentMenu | Class with information on each menu |
▼Nfluent_tray | Base namespace |
CFluentMenu | Class with information on each menu |
CFluentTray | Class with information on the entire tray |
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
This is the complete list of members for fluent_tray::FluentMenu, including all inherited members.
background_brush() const noexcept | fluent_tray::FluentMenu | inline |
calculate_required_dims(HFONT font, SIZE &size) const | fluent_tray::FluentMenu | inline |
calculate_required_dims(HFONT font, SIZE &size) const | fluent_tray::FluentMenu | inline |
check() noexcept | fluent_tray::FluentMenu | inline |
create_menu(HINSTANCE hinstance, HWND parent_hwnd, std::size_t id, const std::string &label_text="", const std::string &icon_path="", const std::string &checkmark="✓") | fluent_tray::FluentMenu | inline |
create_menu(HINSTANCE hinstance, HWND parent_hwnd, std::size_t id, const std::string &label_text="", const std::string &icon_path="", const std::string &checkmark="✓") | fluent_tray::FluentMenu | inline |
draw_menu(LPDRAWITEMSTRUCT info, HFONT font) const | fluent_tray::FluentMenu | inline |
FluentMenu(bool toggleable=false, const std::function< bool(void)> &callback=[] {return true ;}, const std::function< bool(void)> &unchecked_callback=[] {return true ;}) | fluent_tray::FluentMenu | inlineexplicit |
FluentMenu(bool toggleable=false, const std::function< bool(void)> &callback=[] {return true ;}, const std::function< bool(void)> &unchecked_callback=[] {return true ;}) | fluent_tray::FluentMenu | inlineexplicit |
FluentMenu(const FluentMenu &)=default | fluent_tray::FluentMenu | |
FluentMenu(FluentMenu &&)=default | fluent_tray::FluentMenu | |
FluentMenu(FluentMenu &&)=default | fluent_tray::FluentMenu | |
get_label(std::string &str) const | fluent_tray::FluentMenu | inline |
hide_separator_line() noexcept | fluent_tray::FluentMenu | inline |
hide_separator_line() noexcept | fluent_tray::FluentMenu | inline |
id() const noexcept | fluent_tray::FluentMenu | inline |
is_checked() const noexcept | fluent_tray::FluentMenu | inline |
is_checked() const noexcept | fluent_tray::FluentMenu | inline |
is_mouse_over() const | fluent_tray::FluentMenu | inline |
is_toggleable() const noexcept | fluent_tray::FluentMenu | inline |
is_toggleable() const noexcept | fluent_tray::FluentMenu | inline |
menu_handle() const noexcept | fluent_tray::FluentMenu | inline |
operator=(const FluentMenu &)=default | fluent_tray::FluentMenu | |
operator=(FluentMenu &&)=default | fluent_tray::FluentMenu | |
process_click_event() | fluent_tray::FluentMenu | inline |
operator=(const FluentMenu &)=default | fluent_tray::FluentMenu | |
operator=(FluentMenu &&)=default | fluent_tray::FluentMenu | |
process_click_event() | fluent_tray::FluentMenu | inline |
set_color(const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, const COLORREF &border_color=CLR_INVALID) noexcept | fluent_tray::FluentMenu | inline |
show_separator_line() noexcept | fluent_tray::FluentMenu | inline |
show_separator_line() noexcept | fluent_tray::FluentMenu | inline |
uncheck() noexcept | fluent_tray::FluentMenu | inline |
window_handle() const noexcept | fluent_tray::FluentMenu | inline |
window_handle() const noexcept | fluent_tray::FluentMenu | inline |
~FluentMenu() noexcept | fluent_tray::FluentMenu | inline |
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
Class with information on each menu. - More...
+ More...#include <fluent_tray.hpp>
+Public Member Functions | FluentMenu (bool toggleable=false, const std::function< bool(void)> &callback=[] {return true ;}, const std::function< bool(void)> &unchecked_callback=[] {return true ;}) | | Create menu object. | | FluentMenu (bool toggleable=false, const std::function< bool(void)> &callback=[] {return true ;}, const std::function< bool(void)> &unchecked_callback=[] {return true ;}) | | | FluentMenu (const FluentMenu &)=default | | FluentMenu & | operator= (const FluentMenu &)=default | | | FluentMenu (FluentMenu &&)=default | FluentMenu & | operator= (const FluentMenu &)=default | | | FluentMenu & | operator= (FluentMenu &&)=default | | | ~FluentMenu () noexcept | FluentMenu & | operator= (FluentMenu &&)=default | | | bool | create_menu (HINSTANCE hinstance, HWND parent_hwnd, std::size_t id, const std::string &label_text="", const std::string &icon_path="", const std::string &checkmark="✓") | | Creates a menu window. | bool | create_menu (HINSTANCE hinstance, HWND parent_hwnd, std::size_t id, const std::string &label_text="", const std::string &icon_path="", const std::string &checkmark="✓") | | bool | process_click_event () | | Execute the process when clicked on the menu. | bool | process_click_event () | | bool | is_mouse_over () const | | Checks whether the mouse cursor is over the menu or not. | bool | is_mouse_over () const | | void | check () noexcept | | Checks the menu if it is toggleable. | void | check () noexcept | | void | uncheck () noexcept | | Unchecks the menu if it is toggleable. | void | uncheck () noexcept | | bool | is_checked () const noexcept | | Refer to the check status of the menu. | bool | is_checked () const noexcept | | bool | is_toggleable () const noexcept | | Check if the menu is toggleable. | bool | is_toggleable () const noexcept | | HWND | window_handle () const noexcept | | Refer to the menu window handle. | HWND | window_handle () const noexcept | | HMENU | menu_handle () const noexcept | | Refer to the menu handle. | HMENU | menu_handle () const noexcept | | std::size_t | id () const noexcept | | Refer to the menu identifier. | std::size_t | id () const noexcept | | bool | get_label (std::string &str) const | | Get menu label as UTF-8 string. | bool | get_label (std::string &str) const | | void | show_separator_line () noexcept | | Show a separator line under the menu. | void | show_separator_line () noexcept | | void | hide_separator_line () noexcept | | Hide a separator line under the menu. | void | hide_separator_line () noexcept | | bool | set_color (const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, const COLORREF &border_color=CLR_INVALID) noexcept | | Set the menu color. | bool | set_color (const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, const COLORREF &border_color=CLR_INVALID) noexcept | | bool | draw_menu (LPDRAWITEMSTRUCT info, HFONT font) const | | Draws a menu using drawing information and the specified font. | bool | draw_menu (LPDRAWITEMSTRUCT info, HFONT font) const | | HBRUSH | background_brush () const noexcept | | Refer to the brush for drawing the background. | HBRUSH | background_brush () const noexcept | | bool | calculate_required_dims (HFONT font, SIZE &size) const | | Calculates the size of the bounding box surrounding the menu based on the font information and the length of the label. | bool | calculate_required_dims (HFONT font, SIZE &size) const | | Create menu object. More... | FluentMenu (const FluentMenu &)=default | FluentMenu (FluentMenu &&)=default | ~FluentMenu () noexcept | Creates a menu window. More... | Execute the process when clicked on the menu. More... | Checks whether the mouse cursor is over the menu or not. More... | Checks the menu if it is toggleable. More... | Unchecks the menu if it is toggleable. More... | Refer to the check status of the menu. More... | Check if the menu is toggleable. More... | Refer to the menu window handle. More... | Refer to the menu handle. More... | Refer to the menu identifier. More... | Get menu label as UTF-8 string. More... | Show a separator line under the menu. More... | Hide a separator line under the menu. More... | Set the menu color. More... | Draws a menu using drawing information and the specified font. More... | Refer to the brush for drawing the background. More... | Calculates the size of the bounding box surrounding the menu based on the font information and the length of the label. More... |
Class with information on each menu.
false
, [] {return true ;}
, [] {return true ;}
""
, ""
, "✓"
FluentMenu & fluent_tray::FluentMenu::operator= | +FluentMenu& fluent_tray::FluentMenu::operator= | ( | -const FluentMenu & | ) | +const FluentMenu & | +) |
FluentMenu & fluent_tray::FluentMenu::operator= | +FluentMenu& fluent_tray::FluentMenu::operator= | ( | -FluentMenu && | ) | +FluentMenu && | +) |
CLR_INVALID
, CLR_INVALID
, CLR_INVALID
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
This is the complete list of members for fluent_tray::FluentTray, including all inherited members.
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 ;}) | fluent_tray::FluentTray | inline |
add_separator() | fluent_tray::FluentTray | inline |
begin() noexcept | fluent_tray::FluentTray | inline |
cbegin() const noexcept | fluent_tray::FluentTray | inline |
cend() const noexcept | fluent_tray::FluentTray | inline |
change_icon(const std::string &icon_path) | fluent_tray::FluentTray | inline |
add_separator() | fluent_tray::FluentTray | inline |
begin() noexcept | fluent_tray::FluentTray | inline |
cbegin() const noexcept | fluent_tray::FluentTray | inline |
cend() const noexcept | fluent_tray::FluentTray | inline |
change_icon(const std::string &icon_path) | fluent_tray::FluentTray | inline |
count_menus() const noexcept | fluent_tray::FluentTray | inline |
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::FluentTray | inline |
end() noexcept | fluent_tray::FluentTray | inline |
FluentTray() | fluent_tray::FluentTray | inlineexplicit |
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::FluentTray | inline |
end() noexcept | fluent_tray::FluentTray | inline |
FluentTray() | fluent_tray::FluentTray | inlineexplicit |
FluentTray(const FluentTray &)=delete | fluent_tray::FluentTray | |
FluentTray(FluentTray &&)=default | fluent_tray::FluentTray | |
FluentTray(FluentTray &&)=default | fluent_tray::FluentTray | |
hide_menu_window() | fluent_tray::FluentTray | inline |
operator=(const FluentTray &)=delete | fluent_tray::FluentTray | |
operator=(FluentTray &&)=default | fluent_tray::FluentTray | |
set_color(const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, unsigned char color_decay=10) | fluent_tray::FluentTray | inline |
operator=(const FluentTray &)=delete | fluent_tray::FluentTray | |
operator=(FluentTray &&)=default | fluent_tray::FluentTray | |
set_color(const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, unsigned char color_decay=10) | fluent_tray::FluentTray | inline |
set_font(LONG font_size=0, LONG font_weight=0, const std::string &font_name="") | fluent_tray::FluentTray | inline |
show_menu_window() | fluent_tray::FluentTray | inline |
show_menu_window() | fluent_tray::FluentTray | inline |
status() const noexcept | fluent_tray::FluentTray | inline |
stop() noexcept | fluent_tray::FluentTray | inline |
stop() noexcept | fluent_tray::FluentTray | inline |
update() | fluent_tray::FluentTray | inline |
update_with_loop(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(1)) | fluent_tray::FluentTray | inline |
update_with_loop(std::chrono::milliseconds sleep_time=std::chrono::milliseconds(1)) | fluent_tray::FluentTray | inline |
window_handle() const noexcept | fluent_tray::FluentTray | inline |
~FluentTray() noexcept | fluent_tray::FluentTray | inlinevirtual |
~FluentTray() noexcept | fluent_tray::FluentTray | inlinevirtual |
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
Class with information on the entire tray. - More...
+ More...#include <fluent_tray.hpp>
+Public Member Functions | FluentTray () | | Create tray object. | | FluentTray () | | | FluentTray (const FluentTray &)=delete | | FluentTray & | operator= (const FluentTray &)=delete | | | FluentTray (FluentTray &&)=default | FluentTray & | operator= (const FluentTray &)=delete | | | FluentTray & | operator= (FluentTray &&)=default | | virtual | ~FluentTray () noexcept | FluentTray & | operator= (FluentTray &&)=default | | | 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=5, LONG menu_y_pad=5, unsigned char opacity=255, bool round_corner=true) | | 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. | 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 ;}) | | void | add_separator () | | Add a separator line under the last menu item added. | void | add_separator () | | bool | update () | | Get window message and update tray. | bool | update () | | bool | update_with_loop (std::chrono::milliseconds sleep_time=std::chrono::milliseconds(1)) | | Create a message loop to update the tray. | bool | update_with_loop (std::chrono::milliseconds sleep_time=std::chrono::milliseconds(1)) | | HWND | window_handle () const noexcept | | Refer to the handle of menu window. | HWND | window_handle () const noexcept | | bool | show_menu_window () | | Show the menu window above the tray icon. | bool | show_menu_window () | | bool | hide_menu_window () | | Hide the menu window above the tray icon. | bool | hide_menu_window () | | TrayStatus | status () const noexcept | | Get the current status of tray. | TrayStatus | status () const noexcept | | void | stop () noexcept | | Exit the tray successfully. | void | stop () noexcept | | std::vector< FluentMenu >::iterator | begin () noexcept | | Returns an iterator to the beginning of menus. | | std::vector< FluentMenu >::iterator | end () noexcept | | Returns an iterator to the end of menus. | | std::vector< FluentMenu >::const_iterator | cbegin () const noexcept | | Returns a constant iterator to the beginning of menus. | | std::vector< FluentMenu >::const_iterator | cend () const noexcept | | Returns a constant iterator to the end of menus. | | std::size_t | count_menus () const noexcept | | Returns the number of menus. | std::vector< FluentMenu >::iterator | begin () noexcept | | Returns an iterator to the beginning of menus. More... | | std::vector< FluentMenu >::iterator | end () noexcept | | Returns an iterator to the end of menus. More... | | std::vector< FluentMenu >::const_iterator | cbegin () const noexcept | | Returns a constant iterator to the beginning of menus. More... | | std::vector< FluentMenu >::const_iterator | cend () const noexcept | | Returns a constant iterator to the end of menus. More... | | std::size_t | count_menus () const noexcept | | bool | set_font (LONG font_size=0, LONG font_weight=0, const std::string &font_name="") | | Set font information to draw menus. | bool | set_font (LONG font_size=0, LONG font_weight=0, const std::string &font_name="") | | 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 (const COLORREF &text_color=CLR_INVALID, const COLORREF &back_color=CLR_INVALID, unsigned char color_decay=10) | | bool | change_icon (const std::string &icon_path) | | Load the image file and change the icon. | bool | change_icon (const std::string &icon_path) | | Create tray object. More... | FluentTray (const FluentTray &)=delete | FluentTray (FluentTray &&)=default | virtual | ~FluentTray () noexcept | Initialize tray and create icon on tray. More... | Add a menu in order from the top. More... | Add a separator line under the last menu item added. More... | Get window message and update tray. More... | Create a message loop to update the tray. More... | Refer to the handle of menu window. More... | Show the menu window above the tray icon. More... | Hide the menu window above the tray icon. More... | Get the current status of tray. More... | Exit the tray successfully. More... | Returns the number of menus. More... | Set font information to draw menus. More... | Set colors to draw menus. More... | Load the image file and change the icon. More... |
Class with information on the entire tray.
""
, ""
, false
, "✓"
, [] {return true ;}
, [] {return true ;}
std::vector< FluentMenu >::iterator fluent_tray::FluentTray::begin | +std::vector<FluentMenu>::iterator fluent_tray::FluentTray::begin | ( | -) | +) |
std::vector< FluentMenu >::const_iterator fluent_tray::FluentTray::cbegin | +std::vector<FluentMenu>::const_iterator fluent_tray::FluentTray::cbegin | ( | -) | +) | const |
std::vector< FluentMenu >::const_iterator fluent_tray::FluentTray::cend | +std::vector<FluentMenu>::const_iterator fluent_tray::FluentTray::cend | ( | -) | +) | const |
""
, 5
, 5
, 5
, 5
, 255
, true
std::vector< FluentMenu >::iterator fluent_tray::FluentTray::end | +std::vector<FluentMenu>::iterator fluent_tray::FluentTray::end | ( | -) | +) |
FluentTray & fluent_tray::FluentTray::operator= | +FluentTray& fluent_tray::FluentTray::operator= | ( | -const FluentTray & | ) | +const FluentTray & | +) |
FluentTray & fluent_tray::FluentTray::operator= | +FluentTray& fluent_tray::FluentTray::operator= | ( | -FluentTray && | ) | +FluentTray && | +) |
CLR_INVALID
, CLR_INVALID
, 10
0
, 0
, ""
std::chrono::milliseconds(1)
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
+Files | fluent_tray.hpp | | file | fluent_tray.hpp [code] | Fluent Design-based GUI Library for System Tray Applications. |
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
▼ include | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fluent_tray.hpp | Fluent Design-based GUI Library for System Tray Applications |
▼ include | |
fluent_tray.hpp | Fluent Design-based GUI Library for System Tray Applications |
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,22 +31,21 @@
|
Fluent Design-based GUI Library for System Tray Applications. More...
#include <windows.h>
#include <ntstatus.h>
#include <dwmapi.h>
#include <algorithm>
#include <chrono>
Go to the source code of this file.
+Classesclass | fluent_tray::FluentMenu | | Class with information on the entire tray. More... | | |
+Namespacesnamespace | fluent_tray | | namespace | fluent_tray::util | | fluent_tray | Base namespace. | fluent_tray::util | Utility namespace. |
+Macros#define | FLUENT_TRAY_MESSAGE_ID_OFFSET (25) | | Unique message identifier. | #define | FLUENT_TRAY_MESSAGE_ID_OFFSET (25) | | Unique message identifier. More... |
+Enumerations | enum class | fluent_tray::TrayStatus : unsigned char { fluent_tray::RUNNING + | enum class | fluent_tray::TrayStatus : unsigned char { fluent_tray::RUNNING , fluent_tray::SHOULD_STOP , fluent_tray::FAILED , fluent_tray::STOPPED @@ -136,34 +127,34 @@ | Current tray status. More... |
+Functionsbool | fluent_tray::util::string2wstring (const std::string &str, std::wstring &wstr) | | Converts a UTF-8 encoded string to a wide string. | bool | fluent_tray::util::string2wstring (const std::string &str, std::wstring &wstr) | | bool | fluent_tray::util::wstring2string (const std::wstring &wstr, std::string &str) | | Converts a wide string to a UTF-8 encoded string. | bool | fluent_tray::util::wstring2string (const std::wstring &wstr, std::string &str) | | constexpr std::size_t | fluent_tray::util::bit2mask (std::size_t bits) noexcept | | Generates a mask with the specified number of lower bits set to 1. | constexpr std::size_t | fluent_tray::util::bit2mask (std::size_t bits) noexcept | | template<typename Type > | constexpr int | fluent_tray::util::type2bit () noexcept | | Calculate the number of bits of type. | | template<typename InType , typename OutType > | void | fluent_tray::util::split_bits (InType input, OutType &upper, OutType &lower) noexcept | | Divides the input value into upper and lower bits. | template<typename InType , typename OutType > | void | fluent_tray::util::split_bits (InType input, OutType &upper, OutType &lower) noexcept | | template<typename InType , typename OutType > | void | fluent_tray::util::concatenate_bits (InType upper, InType lower, OutType &out) noexcept | | Generates a variable that combines the bits of two variables. | template<typename InType , typename OutType > | void | fluent_tray::util::concatenate_bits (InType upper, InType lower, OutType &out) noexcept | | unsigned char | fluent_tray::util::rgb2gray (const COLORREF &rgb) | | Calculate grayscale value from RGB. | unsigned char | fluent_tray::util::rgb2gray (const COLORREF &rgb) | | bool | fluent_tray::util::exists (const std::wstring &path) | | Checks if the file exists. | bool | fluent_tray::util::exists (const std::wstring &path) | | Converts a UTF-8 encoded string to a wide string. More... | Converts a wide string to a UTF-8 encoded string. More... | Generates a mask with the specified number of lower bits set to 1. More... | template<typename Type > | Calculate the number of bits of type. More... | Divides the input value into upper and lower bits. More... | Generates a variable that combines the bits of two variables. More... | Calculate grayscale value from RGB. More... | Checks if the file exists. More... |
- | + |
fluent-tray
Fluent Design-based GUI Library for System Tray Applications
@@ -34,28 +31,22 @@
|