00001 /* 00002 * ============================================================================ 00003 * Name : eikbctrl.h 00004 * Part of : S60 UI Framework / EikCoCtl 00005 * Description : Class declaration for EIKON bordered control. 00006 * Version : %version: 1 % 00007 * 00008 * Copyright © 2002-2006 Nokia. All rights reserved. 00009 * This material, including documentation and any related computer 00010 * programs, is protected by copyright controlled by Nokia. All 00011 * rights are reserved. Copying, including reproducing, storing, 00012 * adapting or translating, any or all of this material requires the 00013 * prior written consent of Nokia. This material also contains 00014 * confidential information which may not be disclosed to others 00015 * without the prior written consent of Nokia. 00016 * ============================================================================ 00017 */ 00018 00019 #ifndef __EIKBCTRL_H__ 00020 #define __EIKBCTRL_H__ 00021 00022 #include <gulbordr.h> 00023 #include <coecntrl.h> 00024 #include <akncontrol.h> 00025 00036 class CEikBorderedControl : public CAknControl 00037 { 00038 public: 00039 00044 IMPORT_C CEikBorderedControl(); 00045 00052 IMPORT_C CEikBorderedControl(const TGulBorder& aBorder); 00053 00054 public: 00063 IMPORT_C TBool HasBorder() const; 00064 00084 IMPORT_C void SetAdjacent(TInt aAdjacent); 00085 00093 IMPORT_C void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const; 00094 00109 IMPORT_C void HandleResourceChange(TInt aType); 00110 00125 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00126 00127 public: 00128 00135 IMPORT_C void SetBorder(TGulBorder::TBorderType aBorderType); 00136 00153 IMPORT_C void SetBorder(TInt aBorderType); 00154 00160 IMPORT_C TGulBorder Border() const; 00161 00162 protected: 00175 IMPORT_C void Draw(const TRect& aRect) const; 00176 00187 IMPORT_C void WriteInternalStateL(RWriteStream& aWriteStream) const; 00188 00189 private: 00191 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00192 00193 protected: 00194 00196 TGulBorder iBorder; 00197 00198 private: 00199 TInt iSpare[2]; 00200 }; 00201 00202 // __EIKBCTRL_H__ 00203 #endif