textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbubblectrl.h
branchRCL_3
changeset 21 ecbabf52600f
parent 20 ebd48d2de13c
--- a/textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbubblectrl.h	Tue Aug 31 15:31:50 2010 +0300
+++ b/textinput/peninputarc/inc/peninputlayoutcontrolinc/peninputlayoutbubblectrl.h	Wed Sep 01 12:23:33 2010 +0100
@@ -47,6 +47,8 @@
                              CFepUiLayout* aUiLayout,
                              TInt aCtrlId);
     
+    inline void SetIconOffsetAndSize( 
+            const TSize& aOffset, const TSize& aSize );
     IMPORT_C virtual void Draw();
 
     IMPORT_C virtual void Hide(TBool aShowFlag);    
@@ -84,12 +86,16 @@
     IMPORT_C TBool IsShowing();
 
     IMPORT_C void SetFrameDiff(TInt aLeftDiff,TInt aTopDiff,TInt aRightDiff,TInt aBottomDiff);
+    inline void GetText( TDes& aText );
     
     void Freeze();
     
     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,
@@ -98,6 +104,9 @@
     IMPORT_C void ConstructL(TInt aBmpId, TInt aMaskId);
        
 private:
+    TRect GetRect();
+       
+private:
     CFbsBitmap* iForgroundBmp;
     CFbsBitmap* iForgroundBmpMask;
     
@@ -122,8 +131,34 @@
     
     TBool iNeedRedraw; // redraw flag after text changed.
     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;	
@@ -133,6 +168,22 @@
 	{
 	return iTextColorIndex;
 	}
+inline void CBubbleCtrl::SetIconOffsetAndSize( 
+        const TSize& aOffset, const TSize& aSize )
+    {
+    iIconOffset = aOffset;
+    iIconSize = aSize;
+    }
+
+inline void CBubbleCtrl::GetText( TDes& aText )
+    {
+    aText.Copy( *iText );
+    }
+
+inline void CBubbleCtrl::SetLangCode( TInt aLangCode )
+    {
+    iLangCode = aLangCode;
+    }
 
 class CTooltipBubbleCtrl: public CBubbleCtrl
     {