Support focus animation for listbox
[vuplus_dvbapp] / lib / gui / elistbox.h
index da66167..17fce5c 100644 (file)
@@ -15,7 +15,7 @@ public:
                /* indices go from 0 to size().
                   the end is reached when the cursor is on size(), 
                   i.e. one after the last entry (this mimics 
-                  stl behaviour)
+                  stl behavior)
                   
                   cursors never invalidate - they can become invalid
                   when stuff is removed. Cursors will always try
@@ -71,6 +71,7 @@ struct eListboxStyle
                        {1 x 0} use transparent background
                        {1 x p} use transparent background picture
                */
+       ePtr<gFont> m_font;
 };
 #endif
 
@@ -102,7 +103,7 @@ public:
        }; */
 
        int getCurrentIndex();
-       void moveSelection(int how);
+       void moveSelection(long how);
        void moveSelectionTo(int index);
        void moveToEnd();
        bool atBegin();
@@ -127,6 +128,7 @@ public:
        void setForegroundColorSelected(gRGB &col);
        void setBackgroundPicture(ePtr<gPixmap> &pixmap);
        void setSelectionPicture(ePtr<gPixmap> &pixmap);
+       void setFont(gFont *font);
 
 #ifndef SWIG
        struct eListboxStyle *getLocalStyle(void);
@@ -158,6 +160,9 @@ private:
        ePtr<iListboxContent> m_content;
        eSlider *m_scrollbar;
        eListboxStyle m_style;
+#ifdef USE_LIBVUGLES2
+       long m_dir;
+#endif
 #endif
 };