]> git.sesse.net Git - vlc/blobdiff - modules/gui/skins2/controls/ctrl_list.hpp
* skins2: New Playlist.bgimage attribute, to specify a background image for
[vlc] / modules / gui / skins2 / controls / ctrl_list.hpp
index d2b6b5996252ca09d98874ed089343a291313f53..9e73be672bf72468267c02c1b217ce2746f88a07 100644 (file)
@@ -31,6 +31,7 @@
 
 class OSGraphics;
 class GenericFont;
+class GenericBitmap;
 
 
 /// Class for control list
@@ -38,7 +39,8 @@ class CtrlList: public CtrlGeneric, public Observer<VarList>,
     public Observer<VarPercent>
 {
     public:
-        CtrlList( intf_thread_t *pIntf, VarList &rList, GenericFont &rFont,
+        CtrlList( intf_thread_t *pIntf, VarList &rList,
+                  const GenericFont &rFont, const GenericBitmap *pBitmap,
                   uint32_t fgcolor, uint32_t playcolor, uint32_t bgcolor1,
                   uint32_t bgcolor2, uint32_t selColor,
                   const UString &rHelp, VarBool *pVisible );
@@ -66,12 +68,15 @@ class CtrlList: public CtrlGeneric, public Observer<VarList>,
         /// List associated to the control
         VarList &m_rList;
         /// Font
-        GenericFont &m_rFont;
+        const GenericFont &m_rFont;
+        /// Background bitmap
+        /** If NULL, the 2 background colors defined below will be used */
+        const GenericBitmap *m_pBitmap;
         /// Color of normal text
         uint32_t m_fgColor;
         /// Color of the playing item
         uint32_t m_playColor;
-        /// Background colors
+        /// Background colors, used when no background bitmap is given
         uint32_t m_bgColor1, m_bgColor2;
         /// Background of selected items
         uint32_t m_selColor;