idlehomescreen/widgetmanager/inc/wmlistbox.h
branchRCL_3
changeset 38 79311d856354
parent 34 d05a55b217df
child 47 7be2816dbabd
equal deleted inserted replaced
34:d05a55b217df 38:79311d856354
    68     const CFbsBitmap* DefaultLogoImage();
    68     const CFbsBitmap* DefaultLogoImage();
    69     /** Default logo mask. */
    69     /** Default logo mask. */
    70     const CFbsBitmap* DefaultLogoMask();
    70     const CFbsBitmap* DefaultLogoMask();
    71 
    71 
    72     /**
    72     /**
    73      * re-size bitmaps to size provided by layout
       
    74      */
       
    75     void ResizeDefaultBitmaps();
       
    76     
       
    77     /**
       
    78      * sets item height according to layout 
    73      * sets item height according to layout 
    79      */
    74      */
    80     void UpdateItemHeight();
    75     void UpdateItemHeight();
    81     
       
    82     /**
       
    83      * Responds to skin changed event.
       
    84      */
       
    85     void HandleSkinChanged();
       
    86 
    76 
    87 public:
    77 public:
    88 
       
    89     /**
    78     /**
    90      * from CFormattedCellListBoxItemDrawer:
    79      * from CFormattedCellListBoxItemDrawer:
    91      * draws a single list box item
    80      * draws a single list box item
    92      */
    81      */
    93     void DrawItem(
    82     void DrawItem(
   104                 CFormattedCellListBoxData* aFormattedCellData,
    93                 CFormattedCellListBoxData* aFormattedCellData,
   105                 CWmListBox* aListBox );
    94                 CWmListBox* aListBox );
   106 
    95 
   107     /** 2nd phase constructor */
    96     /** 2nd phase constructor */
   108     void ConstructL();
    97     void ConstructL();
   109 
    98     
   110 private: // data members
    99 private: // data members
   111 
       
   112     /** 
   100     /** 
   113      * the plugin root (not owned) 
   101      * the plugin root (not owned) 
   114      */
   102      */
   115     CWmPlugin& iWmPlugin;
   103     CWmPlugin& iWmPlugin;
   116 
   104 
   133      * default logo (when widget does not have one) mask 
   121      * default logo (when widget does not have one) mask 
   134      */
   122      */
   135     CFbsBitmap*         iDefaultLogoImageMask;
   123     CFbsBitmap*         iDefaultLogoImageMask;
   136     
   124     
   137 	};
   125 	};
   138 
       
   139 
   126 
   140 
   127 
   141 // CLASS DECLARATIONS
   128 // CLASS DECLARATIONS
   142 /**
   129 /**
   143  * CWmListBox
   130  * CWmListBox
   267      * Responds to layout switched.
   254      * Responds to layout switched.
   268      */
   255      */
   269     void HandleLayoutChanged();
   256     void HandleLayoutChanged();
   270 
   257 
   271     /**
   258     /**
   272      * Responds to skin changed.
       
   273      */
       
   274     void HandleSkinChanged();
       
   275 
       
   276     /**
       
   277      * Returns size of logo 
   259      * Returns size of logo 
   278      * 
   260      * 
   279      * @return Size of logo rect
   261      * @return Size of logo rect
   280      */
   262      */
   281     TSize LogoSize();
   263     TSize LogoSize();