mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-16 09:53:43 +02:00
- Use new class for volumebar - Numeric display added for volumebar (switchable) - Display of volumebar, mute icon and info clock optimized (top right) - Volumebar better scalable git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2153 e54a6e83-5905-42d5-8d5c-058d10e6a962
40 lines
702 B
C++
40 lines
702 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;
|
|
static void CleanUpProc(void* arg);
|
|
static void* TimerProc(void *arg);
|
|
|
|
public:
|
|
CInfoClock(bool noVolume=false);
|
|
~CInfoClock();
|
|
static CInfoClock* getInstance(bool noVolume=false);
|
|
|
|
void Init(bool noVolume=false);
|
|
void StartClock();
|
|
void StopClock();
|
|
void ClearDisplay();
|
|
|
|
int time_width, time_height;
|
|
};
|
|
|
|
#endif
|