Smolgui
Immediate gui library based on SFML
Loading...
Searching...
No Matches
sgui::Tooltip Struct Reference

store tooltip in a function with its parent widget ID More...

#include <Options.h>

Public Member Functions

 Tooltip ()=default
 Tooltip (const std::function< void(void)> &d, const bool l=false, const bool a=true)

Public Attributes

bool locked = false
 is tooltip locked ?
bool active = false
 is tooltip active ?
std::string parent = ""
 widget parent identifier
std::function< void(void)> display
 function called to display tooltip

Detailed Description

store tooltip in a function with its parent widget ID

Constructor & Destructor Documentation

◆ Tooltip() [1/2]

sgui::Tooltip::Tooltip ( )
default

◆ Tooltip() [2/2]

sgui::Tooltip::Tooltip ( const std::function< void(void)> & d,
const bool l = false,
const bool a = true )
inline

Member Data Documentation

◆ active

bool sgui::Tooltip::active = false

is tooltip active ?

◆ display

std::function<void (void)> sgui::Tooltip::display

function called to display tooltip

◆ locked

bool sgui::Tooltip::locked = false

is tooltip locked ?

◆ parent

std::string sgui::Tooltip::parent = ""

widget parent identifier


The documentation for this struct was generated from the following file:
  • /github/workspace/src/sgui/Widgets/Options.h