Lysa UI  0.0
Lysa UI —UI components for the Lysa Engine
TooltipManager Class Reference

Detailed Description

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}
 

Member Typedef Documentation

using TextProvider = std::function<std::string()>

Constructor & Destructor Documentation

TooltipManager ( WindowManager &  windowManager)

Member Function Documentation

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 = "" 
)

Member Data Documentation

constexpr auto TIME_BEFORE_SHOW {1.0f}
staticconstexpr