blob: 0f4547222662dbf8a637cbe2ab46a068b6e6f3c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
//************************************************************************
//
// LCDCollection.h
//
// The CLCDCollection class is a generic collection of CLCDBase objects.
//
// Logitech LCD SDK
//
// Copyright 2005 Logitech Inc.
//************************************************************************
#ifndef _LCDCOLLECTION_H_INCLUDED_
#define _LCDCOLLECTION_H_INCLUDED_
#include "LCDBase.h"
#include <list>
using namespace std;
typedef list <CLCDBase*> LCD_OBJECT_LIST;
typedef LCD_OBJECT_LIST::iterator LCD_OBJECT_LIST_ITER;
class CLCDCollection : public CLCDBase
{
public:
CLCDCollection();
virtual ~CLCDCollection();
// collection objects use relative origin
BOOL AddObject(CLCDBase* pObject);
BOOL RemoveObject(CLCDBase* pObject);
virtual void ResetUpdate(void);
virtual void Show(BOOL bShow);
public:
virtual void OnDraw(CLCDGfx &rGfx);
virtual void OnUpdate(DWORD dwTimestamp);
protected:
LCD_OBJECT_LIST m_Objects;
};
#endif // !_LCDCOLLECTION_H_INCLUDED_
//** end of LCDCollection.h **********************************************
|