uifw/ganes/inc/HgVgLabel.h
branchRCL_3
changeset 9 aabf2c525e0f
parent 0 2f259fa3e83a
child 10 9f56a4e1b8ab
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
    40      * Creates new CHgVgLabel
    40      * Creates new CHgVgLabel
    41      * 
    41      * 
    42      * @param aRect Rectangle of the drawing area.
    42      * @param aRect Rectangle of the drawing area.
    43      * @return HgVgLabel-object.
    43      * @return HgVgLabel-object.
    44      */
    44      */
    45     static CHgVgLabel* NewL (const TRect& aRect, const CFont* aFont, const TDesC& aText=KNullDesC); 
    45     static CHgVgLabel* NewL (const TRect& aRect, const TDesC& aText=KNullDesC); 
    46         
    46         
    47     // Destructor.
    47     // Destructor.
    48     virtual ~CHgVgLabel();
    48     virtual ~CHgVgLabel();
    49    
    49    
    50 public: // Methods
    50 public: // Methods
    51     
    51     
    52     void SetTextL(const TDesC& aText);
    52     void SetTextL(const TDesC& aText);
    53     
    53     
    54     void SetFont(const CFont* aFont);
       
    55     
       
    56     void SetColor(const TRgb& aColor);
       
    57     
       
    58     void SetShadowColor(const TRgb& aColor);
       
    59         
       
    60     void Draw(const TRect& aWindowRect, TReal aAlpha=1.0);
    54     void Draw(const TRect& aWindowRect, TReal aAlpha=1.0);
    61     
    55     
    62     void SetLayout(const TAknTextComponentLayout& aLayout, const TRect& aParentRect);
    56     void SetLayout(const TAknTextComponentLayout& aLayout, const TRect& aParentRect);
    63     
    57     
    64     void DrawEmptyText(const TRect& aClientRect, const TDesC& aText);
    58     void DrawEmptyText(const TRect& aClientRect, const TDesC& aText);
    65 
    59 
    66 protected: // Constructors
    60 protected: // Constructors
    67 
    61 
    68     CHgVgLabel(const TRect& aRect, const CFont* aFont);
    62     CHgVgLabel(const TRect& aRect);
    69 
    63 
    70     void ConstructL (const TDesC& aText);
    64     void ConstructL (const TDesC& aText);
    71     
    65     
    72     void Update();
    66     void Update();
    73     
    67     
    74 private: // Data
    68 private: // Data
    75 
    69 
    76     TRect iRect;
    70     TRect iRect;
    77     
       
    78     const CFont* iFont;
       
    79     
    71     
    80     HBufC* iText; // Item title. Own
    72     HBufC* iText; // Item title. Own
    81 
    73 
    82     CHgVgDrawBuffer* iTextRenderer; // used to renrer text to bit gc, owns
    74     CHgVgDrawBuffer* iTextRenderer; // used to renrer text to bit gc, owns
    83         
    75