uifw/ganes/inc/HgDrawUtils.h
changeset 47 2f0c06423c72
parent 46 0e1e0022bd03
child 53 3c67ea82fafc
equal deleted inserted replaced
46:0e1e0022bd03 47:2f0c06423c72
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:     
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef HGDRAWUTILS_H_
       
    20 #define HGDRAWUTILS_H_
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 class CWindowGc;
       
    25 class CCoeControl;
       
    26 class TRgb;
       
    27 class CHgMarquee;
       
    28 class TAknWindowComponentLayout;
       
    29 class TAknTextComponentLayout;
       
    30 class CGulIcon;
       
    31 class CGraphicsContext;
       
    32 
       
    33 void DrawEmptyListImpl_real( const TRect &aClientRect,
       
    34                              CGraphicsContext &aGc,
       
    35                              TPtrC aText,
       
    36                              const TRgb& aColor  );
       
    37 
       
    38 NONSHARABLE_CLASS( CHgDrawUtils ) : public CBase
       
    39     {
       
    40 public:
       
    41     static CHgDrawUtils* NewL( TCallBack& aMarqueeCallback );
       
    42     
       
    43     virtual ~CHgDrawUtils();
       
    44     
       
    45 public:
       
    46     void ResetMarquee();
       
    47     void EnableMarquee( TBool aEnable );
       
    48 
       
    49     void DrawImage(
       
    50             CWindowGc& aGc, 
       
    51             const TRect& aRect,
       
    52             const TAknWindowComponentLayout& aLayout,
       
    53             const CGulIcon& aIcon
       
    54             ) const;
       
    55     
       
    56     void DrawText(
       
    57             CWindowGc& aGc, 
       
    58             const TRect& aRect,
       
    59             const TAknTextComponentLayout& aLayout,
       
    60             const TDesC& aText,
       
    61             const TRgb& aColor
       
    62             ) const;
       
    63     
       
    64     void DrawTextMarquee(
       
    65             CWindowGc& aGc, 
       
    66             const TRect& aRect,
       
    67             const TAknTextComponentLayout& aLayout,
       
    68             const TDesC& aText,
       
    69             const TRgb& aColor,
       
    70             const TInt& aMarqueeLine
       
    71             );
       
    72     
       
    73     void DrawEmptyText(
       
    74             CWindowGc& aGc, 
       
    75             const TRect& aRect,
       
    76             const TDesC& aText,
       
    77             const TRgb& aColor
       
    78             ) const;
       
    79     
       
    80 private:
       
    81     CHgDrawUtils();
       
    82     
       
    83     void ConstructL( TCallBack& aMarqueeCallback );
       
    84     
       
    85 private:
       
    86 
       
    87     CHgMarquee* iMarquee;
       
    88 
       
    89     TInt iMarqueeLine;
       
    90     };
       
    91 
       
    92 #endif // HGDRAWUTILS_H_