00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef AKNSLISTBOXBACKGROUNDCONTROLCONTEXT_H
00023 #define AKNSLISTBOXBACKGROUNDCONTROLCONTEXT_H
00024
00025
00026 #include <AknsBasicBackgroundControlContext.h>
00027
00028
00029
00043 NONSHARABLE_CLASS(CAknsListBoxBackgroundControlContext) :
00044 public CAknsBasicBackgroundControlContext
00045 {
00046 public:
00047
00069 IMPORT_C static CAknsListBoxBackgroundControlContext* NewL(
00070 const TAknsItemID& aImageID, const TRect& aRect,
00071 const TBool aParentAbsolute, const TAknsItemID& aTiledBitmapID,
00072 const TRect& aTiledRect );
00073
00077 virtual ~CAknsListBoxBackgroundControlContext();
00078
00079 public:
00080
00088 IMPORT_C void SetTiledBitmap( const TAknsItemID& aID );
00089
00097 IMPORT_C void SetTiledRect( const TRect& aRect );
00098
00106 IMPORT_C void SetBottomBitmap( const TAknsItemID& aID );
00107
00115 IMPORT_C void SetBottomRect( const TRect& aRect );
00116
00117 public:
00118
00122 TBool IsCompatibleWithType( const TAknsControlContextType aType ) const;
00123
00136 TInt UpdateContext();
00137
00138 protected:
00139
00143 CAknsListBoxBackgroundControlContext();
00144
00148 void ConstructL( const TRect& aRect, const TBool aParentAbsolute,
00149 const TAknsItemID& aImageID,
00150 const TAknsItemID& aTiledBitmapID, const TRect& aTiledRect );
00151
00152 protected:
00153
00157 TAknsBackground* iTiledLayout;
00158
00162 TAknsBackground* iBottomLayout;
00163
00164 };
00165
00166 #endif // AKNSLISTBOXBACKGROUNDCONTROLCONTEXT_H
00167
00168