mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
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:
@@ -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();
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user