mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
- Is required for custom icons
Origin commit data
------------------
Commit: cfd7b4b16b
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2013-05-10 (Fri, 10 May 2013)
Origin message was:
------------------
* Rework positioning of volumebar / mute icon / info clock
- Is required for custom icons
40 lines
645 B
C++
40 lines
645 B
C++
#ifndef __infoclock__
|
|
#define __infoclock__
|
|
|
|
|
|
#include <driver/framebuffer.h>
|
|
#include <driver/fontrenderer.h>
|
|
#include <system/settings.h>
|
|
|
|
#include <gui/color.h>
|
|
|
|
#include <string>
|
|
|
|
|
|
class CInfoClock
|
|
{
|
|
private:
|
|
CFrameBuffer * frameBuffer;
|
|
|
|
pthread_t thrTimer;
|
|
void paintTime( bool show_dot);
|
|
int time_offset, digit_offset, digit_h;
|
|
int x, y, clock_x;
|
|
void Init();
|
|
static void CleanUpProc(void* arg);
|
|
static void* TimerProc(void *arg);
|
|
|
|
public:
|
|
CInfoClock();
|
|
~CInfoClock();
|
|
static CInfoClock* getInstance();
|
|
|
|
void StartClock();
|
|
void StopClock();
|
|
void ClearDisplay();
|
|
|
|
int time_width, time_height;
|
|
};
|
|
|
|
#endif
|