![]() |
Lysa UI
0.0
Lysa UI —UI components for the Lysa Engine
|
Fullscreen tooltips helper
Public Typedefs | |
| using | TextProvider = std::function< std::string ()> |
Public Member Functions | |
| TooltipManager (WindowManager &windowManager) | |
| std::shared_ptr< Tooltip > | add (const std::shared_ptr< Widget > &parent, const std::string &text="", bool below=false) |
| std::shared_ptr< Tooltip > | add (const std::shared_ptr< Widget > &parent, TextProvider provider, bool below=false) |
| void | setResources (const std::string &resBox="", const std::string &resText="") |
| void | remove (const std::shared_ptr< Tooltip > &tooltip) |
Static Public Attributes | |
| static constexpr auto | TIME_BEFORE_SHOW {1.0f} |
| using TextProvider = std::function<std::string()> |
| TooltipManager | ( | WindowManager & | windowManager | ) |
| std::shared_ptr<Tooltip> add | ( | const std::shared_ptr< Widget > & | parent, |
| const std::string & | text = "", |
||
| bool | below = false |
||
| ) |
| std::shared_ptr<Tooltip> add | ( | const std::shared_ptr< Widget > & | parent, |
| TextProvider | provider, | ||
| bool | below = false |
||
| ) |
| void remove | ( | const std::shared_ptr< Tooltip > & | tooltip | ) |
| void setResources | ( | const std::string & | resBox = "", |
| const std::string & | resText = "" |
||
| ) |
|
staticconstexpr |