00001 /* 00002 * ============================================================================== 00003 * Name : AknsFrameBackgroundControlContext.h 00004 * Part of : Avkon Skins / Skin Library 00005 * Interface : ?Interface_category, ?Interface_name 00006 * Description : Defines a concrete public class 00007 * CAknsFrameBackgroundControlContext. 00008 * Version : ?Version 00009 * 00010 * Copyright © 2002 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. All rights are reserved. Copying, 00014 * including reproducing, storing, adapting or translating, any 00015 * or all of this material requires the prior written consent of 00016 * Nokia Corporation. This material also contains confidential 00017 * information which may not be disclosed to others without the 00018 * prior written consent of Nokia Corporation. 00019 * ============================================================================== 00020 */ 00021 00022 #ifndef AKNSFRAMEBACKGROUNDCONTROLCONTEXT_H 00023 #define AKNSFRAMEBACKGROUNDCONTROLCONTEXT_H 00024 00025 // INCLUDES 00026 #include <AknsLayeredBackgroundControlContext.h> 00027 00028 // CLASS DECLARATION 00029 00041 NONSHARABLE_CLASS(CAknsFrameBackgroundControlContext) : 00042 public CAknsLayeredBackgroundControlContext 00043 { 00044 public: // Constructors and destructor 00045 00063 IMPORT_C static CAknsFrameBackgroundControlContext* NewL( 00064 const TAknsItemID& aFrameID, const TRect& aOuterRect, 00065 const TRect& aInnerRect, const TBool aParentAbsolute ); 00066 00070 virtual ~CAknsFrameBackgroundControlContext(); 00071 00072 public: // New functions 00073 00081 IMPORT_C void SetFrame( const TAknsItemID& aFrameID ); 00082 00092 IMPORT_C void SetFrameRects( const TRect& aOuterRect, 00093 const TRect& aInnerRect ); 00094 00102 IMPORT_C void SetCenter( const TAknsItemID& aID ); 00103 00115 IMPORT_C void SetFramePartRect( const TRect& aRect, 00116 const TAknsFrameElementIndex aFrameElement ); 00117 00118 public: // From MAknsControlContext 00119 00123 TBool IsCompatibleWithType( const TAknsControlContextType aType ) const; 00124 00138 TInt UpdateContext(); 00139 00140 protected: // New methods 00141 00149 void UpdateFrame(); 00150 00151 protected: 00152 00156 CAknsFrameBackgroundControlContext(); 00157 00161 void ConstructL( const TAknsItemID& aFrameID, const TRect& aOuterRect, 00162 const TRect& aInnerRect, const TBool aParentAbsolute ); 00163 00164 protected: // Data 00165 TAknsItemID iFrameID; 00166 TAknsItemID iCenterID; 00167 00168 TRect iInnerRect; 00169 TRect iOuterRect; 00170 00171 TBool iSingleElementFrame; 00172 00173 }; 00174 00175 // AKNSFRAMEBACKGROUNDCONTROLCONTEXT_H 00176 #endif 00177 00178 // End of File