hourglass: add clear() and stop() members

Origin commit data
------------------
Branch: ni/coolstream
Commit: d7f5944709
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-09-27 (Tue, 27 Sep 2022)

Origin message was:
------------------
hourglass: add clear() and stop() members

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
2022-09-27 23:58:23 +02:00
committed by vanhofen
parent 07a5a9d528
commit 5ac04daede
2 changed files with 13 additions and 0 deletions

View File

@@ -69,6 +69,11 @@ CHourGlass::CHourGlass( const int x_pos,
}
CHourGlass::~CHourGlass()
{
clear();
}
void CHourGlass::clear()
{
if(hg_timer)
{
@@ -77,6 +82,12 @@ CHourGlass::~CHourGlass()
}
}
void CHourGlass::stop()
{
if(hg_timer)
hg_timer->stopTimer();
}
void CHourGlass::initImageFiles()
{
std::string path = "";

View File

@@ -91,6 +91,8 @@ class CHourGlass : public CComponentsShapeSquare
fb_pixel_t color_shadow = COL_SHADOW_PLUS_0);
virtual ~CHourGlass();
void clear();
void stop();
void paint(const bool &do_save_bg = CC_SAVE_SCREEN_YES);
};