diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-24 10:45:39 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-11-24 10:45:39 +0100 |
commit | 08e4f36ccdee163b6925f09f591fbc8ce8c2611b (patch) | |
tree | 89289f25cee0ef8cfa03f4bd24de96e302971875 /osd.h | |
parent | e3a8fb1065b3ee38ec722d8a58179cbac94aa2d8 (diff) | |
download | vdr-08e4f36ccdee163b6925f09f591fbc8ce8c2611b.tar.gz vdr-08e4f36ccdee163b6925f09f591fbc8ce8c2611b.tar.bz2 |
Plugins can now have their own raw OSD
Diffstat (limited to 'osd.h')
-rw-r--r-- | osd.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.h 1.36 2002/11/10 12:28:57 kls Exp $ + * $Id: osd.h 1.37 2002/11/24 10:32:29 kls Exp $ */ #ifndef __OSD_H @@ -110,14 +110,19 @@ public: }; class cOsdObject { + friend class cOsdMenu; +private: + bool isMenu; protected: bool needsFastResponse; public: - cOsdObject(bool FastResponse = false) { needsFastResponse = FastResponse; } + cOsdObject(bool FastResponse = false) { isMenu = false; needsFastResponse = FastResponse; } virtual ~cOsdObject() {} int Width(void) { return Interface->Width(); } int Height(void) { return Interface->Height(); } bool NeedsFastResponse(void) { return needsFastResponse; } + bool IsMenu(void) { return isMenu; } + virtual void Show(void) {} virtual eOSState ProcessKey(eKeys Key) { return osUnknown; } }; |