1.1 --- a/epoc32/include/coefont.h Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,81 +0,0 @@
1.4 -// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 -// All rights reserved.
1.6 -// This component and the accompanying materials are made available
1.7 -// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.8 -// which accompanies this distribution, and is available
1.9 -// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.10 -//
1.11 -// Initial Contributors:
1.12 -// Nokia Corporation - initial contribution.
1.13 -//
1.14 -// Contributors:
1.15 -//
1.16 -// Description:
1.17 -//
1.18 -
1.19 -#ifndef __COEFONT_H__
1.20 -#define __COEFONT_H__
1.21 -
1.22 -#include <e32def.h>
1.23 -#include <gdi.h>
1.24 -
1.25 -/** A class to simplify font usage
1.26 -
1.27 -@publishedAll
1.28 -@released
1.29 -*/
1.30 -class TCoeFont
1.31 - {
1.32 -public:
1.33 - enum TFlags
1.34 - {
1.35 - ENoFlags = 0x00,
1.36 - ENonZooming = 0x01
1.37 - };
1.38 -
1.39 - enum TLogicalSize
1.40 - {
1.41 - EExtraSmall = 0,
1.42 - ESmall,
1.43 - EMedium,
1.44 - ELarge,
1.45 - EExtraLarge,
1.46 - EUndefinedSize = -1
1.47 - };
1.48 -
1.49 - enum TStyle
1.50 - {
1.51 - EPlain = 0x00,
1.52 - EItalic = 0x01,
1.53 - EBold = 0x02,
1.54 - ESuper = 0x04,
1.55 - ESub = 0x08
1.56 - };
1.57 -
1.58 -public:
1.59 - IMPORT_C TCoeFont(TLogicalSize aSize, TInt aStyle, TInt aFlags = ENoFlags);
1.60 - IMPORT_C TCoeFont(TInt aHeightInPixels, TInt aStyle, TInt aFlags = ENoFlags);
1.61 - IMPORT_C TCoeFont(const TCoeFont& aFont);
1.62 - IMPORT_C TCoeFont();
1.63 - IMPORT_C static TCoeFont NormalFont(TInt aFlags = ENoFlags); // Medium, Plain
1.64 - IMPORT_C static TCoeFont LegendFont(TInt aFlags = ENoFlags); // Medium, Bold
1.65 - IMPORT_C static TCoeFont AnnotationFont(TInt aFlags = ENoFlags);// Small, Plain
1.66 - IMPORT_C static TCoeFont TitleFont(TInt aFlags = ENoFlags); // Large, Bold
1.67 -public: // properties
1.68 - IMPORT_C TLogicalSize LogicalSize() const;
1.69 - IMPORT_C TInt HeightInPixels() const;
1.70 - IMPORT_C TFontStyle Style() const;
1.71 - IMPORT_C TBool IsNonZooming() const;
1.72 -public:
1.73 - static TInt Compare(const TCoeFont& aFirst, const TCoeFont& aSecond);
1.74 -private:
1.75 - TLogicalSize iLogicalSize;
1.76 - TInt8 iHeightInPixels;
1.77 - TInt8 iStyle;
1.78 - TInt8 iFlags;
1.79 - TTypeface iTypeface; // Member unused at the moment but included for possible future extension
1.80 -private:
1.81 - TInt iSpare;
1.82 - };
1.83 -
1.84 -#endif // __COEFONT_H__