uifw/ganes/inc/HgPopupDrawer.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 HGPOPUPDRAWER_H
       
    20 #define HGPOPUPDRAWER_H
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 // Forward declarations
       
    25 class CFont;
       
    26 class CWindowGc;
       
    27 
       
    28 NONSHARABLE_CLASS( THgPopupDrawer )
       
    29     {
       
    30 public:
       
    31     
       
    32     THgPopupDrawer();
       
    33 
       
    34     void Init( TRect aRect, const CFont* aFont );
       
    35     void Draw( CWindowGc& aGc, const TDesC& aDesc );
       
    36     void DrawNaviChar( CWindowGc& aGc, const TDesC& aDesc );
       
    37     void Draw( CWindowGc& aGc, 
       
    38             const TDesC& aDesc1, 
       
    39             const TDesC& aDesc2
       
    40             );
       
    41 private:
       
    42 
       
    43     void DrawBackground(CWindowGc& aGc, const TRect& aRect);
       
    44     void InitFont(CWindowGc& aGc);
       
    45     void InitLongestMonth();
       
    46     
       
    47 private:
       
    48     
       
    49     TRect iRect; // client rect
       
    50     const CFont* iFont; // Not own
       
    51     TInt iLongestMonth;
       
    52     
       
    53     };
       
    54 
       
    55 #endif //HGPOPUPDRAWER_H