diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-10 11:26:15 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-09-10 11:26:15 +0200 |
commit | 14f97d0f2a84aaca2b13638db406e629ceb4785f (patch) | |
tree | e50e55540370d24eea273884efa8824174e70bc8 /skins.h | |
parent | 75f28cb0cb66543419a0952eb1988c626ecd7e9e (diff) | |
download | vdr-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.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |