OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
StatusBar Class Reference

#include <UIStatusBar.h>

Public Member Functions

const std::string & get ()
 
void draw ()
 
void drawForced (std::string_view str, Color color)
 
void update ()
 
void clearAll ()
 
void setPermanent (std::string_view str)
 
void clearPermanent ()
 
void setEvent (std::string_view str)
 
void setEventShort (std::string_view str)
 
void clearEvent ()
 
template<class... Args>
void setPermanent (int locId, Args &&... args)
 
template<class... Args>
void setEvent (int locId, Args &&... args)
 
template<class... Args>
void setEventShort (int locId, Args &&... args)
 
void nothingHere ()
 

Static Public Attributes

static const int EVENT_DURATION = 2000
 
static const int EVENT_DURATION_SHORT = 500
 

Private Attributes

std::string _statusString = ""
 
std::string _eventStatusString = ""
 
int _eventStatusExpireTime = 0
 

Member Function Documentation

◆ clearAll()

void StatusBar::clearAll ( )

◆ clearEvent()

void StatusBar::clearEvent ( )

◆ clearPermanent()

void StatusBar::clearPermanent ( )

◆ draw()

void StatusBar::draw ( )

◆ drawForced()

void StatusBar::drawForced ( std::string_view  str,
Color  color 
)

◆ get()

const std::string & StatusBar::get ( )

◆ nothingHere()

void StatusBar::nothingHere ( )

◆ setEvent() [1/2]

template<class... Args>
void StatusBar::setEvent ( int  locId,
Args &&...  args 
)
inline

◆ setEvent() [2/2]

void StatusBar::setEvent ( std::string_view  str)

◆ setEventShort() [1/2]

template<class... Args>
void StatusBar::setEventShort ( int  locId,
Args &&...  args 
)
inline

◆ setEventShort() [2/2]

void StatusBar::setEventShort ( std::string_view  str)

◆ setPermanent() [1/2]

template<class... Args>
void StatusBar::setPermanent ( int  locId,
Args &&...  args 
)
inline

◆ setPermanent() [2/2]

void StatusBar::setPermanent ( std::string_view  str)

◆ update()

void StatusBar::update ( )

Member Data Documentation

◆ _eventStatusExpireTime

int StatusBar::_eventStatusExpireTime = 0
private

◆ _eventStatusString

std::string StatusBar::_eventStatusString = ""
private

◆ _statusString

std::string StatusBar::_statusString = ""
private

◆ EVENT_DURATION

const int StatusBar::EVENT_DURATION = 2000
static

◆ EVENT_DURATION_SHORT

const int StatusBar::EVENT_DURATION_SHORT = 500
static

The documentation for this class was generated from the following files: