emailuis/emailui/inc/OverlayControl.h
branchRCL_3
changeset 8 e1b6206813b4
parent 3 a4d6f1ea0416
child 10 f5907b1a1053
equal deleted inserted replaced
4:e7aa27f58ae1 8:e1b6206813b4
    72 	void SetRect( const TRect& aRect );
    72 	void SetRect( const TRect& aRect );
    73 
    73 
    74 	void HandlePointerEventL(const TPointerEvent& aPointerEvent);
    74 	void HandlePointerEventL(const TPointerEvent& aPointerEvent);
    75 	
    75 	
    76 	void MakeVisible( TBool aVisible );
    76 	void MakeVisible( TBool aVisible );
    77 
       
    78 	   /**
       
    79 	     * Update visual state
       
    80 	     * @param aButtonDown ETrue if button is in down state
       
    81 	     */
       
    82 	void UpdateButtonState( TBool aButtonDown );
       
    83 	
    77 	
    84 private:
    78 private:
    85 
    79 
    86 	/**
    80 	/**
    87 	 * Constructor for performing 1st stage construction
    81 	 * Constructor for performing 1st stage construction
    92 	/**
    86 	/**
    93 	 * EPOC default constructor for performing 2nd stage construction
    87 	 * EPOC default constructor for performing 2nd stage construction
    94 	 */
    88 	 */
    95 	void ConstructL( CCoeControl* aParent, const TRect& aRect, TInt aBitmapId, TInt aMaskId );
    89 	void ConstructL( CCoeControl* aParent, const TRect& aRect, TInt aBitmapId, TInt aMaskId );
    96 
    90 
    97 	/**
       
    98 	 * Make a copy of bitmap
       
    99 	 */
       
   100     void CopyBitmapL( const CFbsBitmap& aSource, CFbsBitmap& aDest );
       
   101     
       
   102     /**
       
   103      * Adjust alpha for the bitmap
       
   104      * @param aBitmap bitmap to adjust
       
   105      * @param aFactor factor to apply
       
   106      */
       
   107     void AdjustAlpha( CFbsBitmap& aBitmap, TReal aFactor );
       
   108     
       
   109     /**
       
   110      * Update used mask according to current button state
       
   111      */
       
   112     void UpdateMask();
       
   113 	
       
   114 private:
    91 private:
   115     
    92     
   116 	CFbsBitmap* iBitmap;
    93 	CFbsBitmap* iBitmap;
   117 	CFbsBitmap* iMask;
    94 	CFbsBitmap* iMask;
   118 	CFbsBitmap* iSolidMask;
       
   119 	TBool iDownState;
       
   120 	
       
   121 	MOverlayControlObserver* iObserver;
    95 	MOverlayControlObserver* iObserver;
   122 	};
    96 	};
   123 
    97 
   124 #endif // CTESTOVERLAYCONTROL_H
    98 #endif // CTESTOVERLAYCONTROL_H