summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-11-01 11:45:05 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-11-01 11:45:05 +0100
commit25f085cc267760a43d2294406d3fdd6d14dc6e7f (patch)
tree2356c8ce7371ef124acfc01c999549bd2ad3d388 /interface.h
parent10741c4c5447f042bdf365f36b258f2f7a2e5d39 (diff)
downloadvdr-25f085cc267760a43d2294406d3fdd6d14dc6e7f.tar.gz
vdr-25f085cc267760a43d2294406d3fdd6d14dc6e7f.tar.bz2
Improved Schedules menus
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/interface.h b/interface.h
index 684adfec..2c9344cc 100644
--- a/interface.h
+++ b/interface.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.h 1.17 2000/10/29 12:32:12 kls Exp $
+ * $Id: interface.h 1.18 2000/11/01 11:18:23 kls Exp $
*/
#ifndef __INTERFACE_H
@@ -19,6 +19,7 @@ class cInterface {
public:
enum { MaxCols = 5 };
private:
+ int width, height;
int open;
int cols[MaxCols];
eKeys keyFromWait;
@@ -35,11 +36,14 @@ public:
~cInterface();
void Open(int NumCols = MenuColumns, int NumLines = MenuLines);
void Close(void);
+ int Width(void) { return width; }
+ int Height(void) { return height; }
eKeys GetKey(bool Wait = true);
void PutKey(eKeys Key);
void Clear(void);
void ClearEol(int x, int y, eDvbColor Color = clrBackground);
void SetCols(int *c);
+ char *WrapText(const char *Text, int Width, int *Height);
void Write(int x, int y, const char *s, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground);
void WriteText(int x, int y, const char *s, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground);
void Title(const char *s);