textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbubblectrl.h
branchRCL_3
changeset 19 5e18d8c489d6
parent 7 a47de9135b21
child 43 ebd48d2de13c
--- a/textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbubblectrl.h	Tue May 11 16:31:42 2010 +0300
+++ b/textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbubblectrl.h	Tue May 25 13:03:44 2010 +0300
@@ -93,6 +93,9 @@
     void UnFreeze( TBool aUpdate = ETrue );
     inline void SetTextColorIndex( TInt aTxtClrIndex );
     inline TInt TextColorIndex() const;
+
+    inline void SetLangCode( TInt aLangCode );
+
 protected:
     IMPORT_C CBubbleCtrl(const TRect& aRect,
                 CFepUiLayout* aUiLayout,
@@ -101,6 +104,9 @@
     IMPORT_C void ConstructL(TInt aBmpId, TInt aMaskId);
        
 private:
+    TRect GetRect();
+       
+private:
     CFbsBitmap* iForgroundBmp;
     CFbsBitmap* iForgroundBmpMask;
     
@@ -127,8 +133,32 @@
     TInt iTextColorIndex;    
     TSize iIconOffset;
     TSize iIconSize;
+	
+public:
+    IMPORT_C virtual void SetRect(const TRect& aRect);
+    void SetBmpDevice(CFbsBitGc* aGc,CFbsBitmapDevice* aDevice);
+    void CreateBmpDevL();
+    inline void SetOffset(TPoint& aPt);
+protected:    
+    IMPORT_C void HandleResourceChange(TInt aType);
+private:
+    
+        
+private:
+    CFbsBitmap* iBitmap;
+    CFbsBitmap* iMaskBitmap;
+    
+    TPoint iOffset;
+    TInt iReserved1;
+    
+    TInt iLangCode;
     };
-    
+
+inline void CBubbleCtrl::SetOffset(TPoint& aPt)
+    {
+    iOffset = aPt;
+    }
+
 inline void CBubbleCtrl::SetTextColorIndex( TInt aTxtClrIndex )
 	{
 	iTextColorIndex = aTxtClrIndex;	
@@ -150,6 +180,11 @@
     aText.Copy( *iText );
     }
 
+inline void CBubbleCtrl::SetLangCode( TInt aLangCode )
+    {
+    iLangCode = aLangCode;
+    }
+
 class CTooltipBubbleCtrl: public CBubbleCtrl
     {
 public: