Subversion Repositories spk

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
79 cycrow 1
//************************************************************************
2
//
3
// LCDManager.h
4
//
5
// The CLCDManager class is the representation of a "Screen". LCD UI class
6
// objects are added here.
7
// 
8
// Logitech LCD SDK
9
//
10
// Copyright 2005 Logitech Inc.
11
//************************************************************************
12
 
13
#ifndef _LCDMANAGER_H_INCLUDED_ 
14
#define _LCDMANAGER_H_INCLUDED_ 
15
 
16
#include "LCDCollection.h"
17
 
18
 
19
class CLCDManager : public CLCDCollection
20
{
21
public:
22
    CLCDManager();
23
    virtual ~CLCDManager();
24
 
25
    virtual HRESULT Initialize(void);
26
    virtual void Shutdown(void);
27
 
28
    lgLcdBitmap160x43x1 *GetLCDScreen(void);
29
    BITMAPINFO *GetBitmapInfo(void);
30
 
31
    virtual HRESULT Draw(void);
32
    virtual void Update(DWORD dwTimestamp);
33
 
34
    virtual void OnLCDButtonDown(int nButton);
35
    virtual void OnLCDButtonUp(int nButton);
36
 
37
    void SetExpiration(DWORD dwMilliseconds);
38
    virtual BOOL HasExpired(void);
39
 
40
private:
41
    CLCDGfx m_Gfx;
42
 
43
    DWORD m_dwStartTime, m_dwElapsedTime, m_dwExpirationTime;
44
};
45
 
46
 
47
#endif // !_LCDMANAGER_H_INCLUDED_ 
48
 
49
//** end of LCDManager.h *************************************************