summaryrefslogtreecommitdiff
path: root/skins.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-09-10 11:26:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2015-09-10 11:26:15 +0200
commit14f97d0f2a84aaca2b13638db406e629ceb4785f (patch)
treee50e55540370d24eea273884efa8824174e70bc8 /skins.h
parent75f28cb0cb66543419a0952eb1988c626ecd7e9e (diff)
downloadvdr-14f97d0f2a84aaca2b13638db406e629ceb4785f.tar.gz
vdr-14f97d0f2a84aaca2b13638db406e629ceb4785f.tar.bz2
Skins can now implement cSkinDisplayMenu::MenuOrientation() to display horizontal menus
Diffstat (limited to 'skins.h')
-rw-r--r--skins.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/skins.h b/skins.h
index e1d12c05..2286087b 100644
--- a/skins.h
+++ b/skins.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.h 3.4 2015/01/15 10:45:47 kls Exp $
+ * $Id: skins.h 4.1 2015/09/10 11:19:48 kls Exp $
*/
#ifndef __SKINS_H
@@ -129,6 +129,11 @@ enum eMenuSortMode {
msmProvider
};
+enum eMenuOrientation {
+ moVertical = 0,
+ moHorizontal
+ };
+
class cSkinDisplayMenu : public cSkinDisplay {
///< This class implements the general purpose menu display, which is
///< used throughout the program to display information and let the
@@ -179,6 +184,10 @@ public:
///< Sets the mode by which the items in this menu are sorted.
///< This is purely informative and may be used by a skin to display the
///< current sort mode by means of some text or symbol.
+ virtual eMenuOrientation MenuOrientation(void) { return moVertical; }
+ ///< Asks the skin for the orientation of the displayed menu.
+ ///< If menu orientation is set to horizontal, the keys left/right
+ ///< and up/down are just toggled.
virtual void Scroll(bool Up, bool Page);
///< If this menu contains a text area that can be scrolled, this function
///< will be called to actually scroll the text. Up indicates whether the