hourglass: add defaults for x/y position

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4ea1c1e5f6
Author: vanhofen <vanhofen@gmx.de>
Date: 2022-09-27 (Tue, 27 Sep 2022)

Origin message was:
------------------
- hourglass: add defaults for x/y position

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

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2022-09-27 23:58:23 +02:00
parent a45be21a25
commit c34f17d5f4
2 changed files with 5 additions and 3 deletions

View File

@@ -1238,7 +1238,7 @@ int CTestMenu::exec(CMenuTarget *parent, const std::string &actionKey)
}
else if (actionKey == "hourglass")
{
CHourGlass hg(20, 20);
CHourGlass hg;
hg.paint();
sleep(10);
hg.hide();

View File

@@ -28,6 +28,8 @@
#include <gui/components/cc.h>
#include <gui/components/cc_timer.h>
#include <system/settings.h>
//! CHourglass shows a small image chain with timed order to visualize running processes or breaks.
/*!
CHourglass shows only a timer controlled image chain, CHourglassProc will run an additional process.
@@ -78,8 +80,8 @@ class CHourGlass : public CComponentsShapeSquare
* @see class CComponentsShapeSquare()
*/
CHourGlass( const int x_pos,
const int y_pos,
CHourGlass( const int x_pos = CFrameBuffer::getInstance()->getScreenX() + OFFSET_INNER_MID,
const int y_pos = CFrameBuffer::getInstance()->getScreenY() + OFFSET_INNER_MID,
const int w = 48,
const int h = 48,
const std::string &image_basename = "hourglass",