00001 /* 00002 * ============================================================================ 00003 * Name : eikspace.h 00004 * Part of : S60 UI Framework / EikCtl 00005 * Description : Class declaration for EIKON spacer 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 // Copyright (c) 1997-1999 Symbian Ltd. All rights reserved. 00019 00020 #ifndef __EIKSPACE_H__ 00021 #define __EIKSPACE_H__ 00022 00023 #include <akncontrol.h> 00024 #include <gdi.h> 00025 00026 // Forward declarations 00027 class TResourceReader; 00028 00041 class CEikSpacer : public CAknControl 00042 { 00043 public: 00044 00049 IMPORT_C CEikSpacer(); 00050 00058 IMPORT_C CEikSpacer(TInt aWidth,TInt aHeight,TRgb aColor); 00059 00063 IMPORT_C ~CEikSpacer(); 00064 00070 IMPORT_C void SetWidth(TInt aWidth); 00071 00077 IMPORT_C void SetHeight(TInt aHeight); 00078 00084 IMPORT_C void SetColor(TRgb aColor); 00085 00096 IMPORT_C void SetClear(TBool aClear); 00097 00098 public: // From @c CCoeControl. 00099 00114 IMPORT_C void HandlePointerEventL(const TPointerEvent& aPointerEvent); 00115 00116 private: 00118 void ConstructFromResourceL(TResourceReader& aReader); 00119 00120 void Draw(const TRect& aRect) const; 00121 00122 private: 00124 IMPORT_C void* ExtensionInterface( TUid aInterface ); 00125 00126 private: 00127 TRgb iColor; 00128 TBool iClear; 00129 }; 00130 00131 // __EIKSPACE_H__ 00132 #endif