epoc32/include/coefont.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
--- a/epoc32/include/coefont.h	Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/coefont.h	Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,81 @@
-coefont.h
+// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// 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
+// which accompanies this distribution, and is available
+// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+//
+
+#ifndef __COEFONT_H__
+#define __COEFONT_H__
+
+#include <e32def.h>
+#include <gdi.h>
+
+/** A class to simplify font usage
+
+@publishedAll
+@released
+*/
+class TCoeFont 
+	{ 
+public: 
+	enum TFlags 
+		{ 
+		ENoFlags = 0x00, 
+		ENonZooming = 0x01 
+		}; 
+
+	enum TLogicalSize 
+		{ 
+		EExtraSmall = 0, 
+		ESmall, 
+		EMedium, 
+		ELarge, 
+		EExtraLarge,
+		EUndefinedSize = -1
+		};         
+
+	enum TStyle 
+		{ 
+		EPlain = 0x00, 
+		EItalic = 0x01, 
+		EBold = 0x02, 
+		ESuper = 0x04, 
+		ESub = 0x08 
+		}; 
+
+public:
+	IMPORT_C TCoeFont(TLogicalSize aSize, TInt aStyle, TInt aFlags = ENoFlags); 
+	IMPORT_C TCoeFont(TInt aHeightInPixels, TInt aStyle, TInt aFlags = ENoFlags); 
+	IMPORT_C TCoeFont(const TCoeFont& aFont);
+	IMPORT_C TCoeFont(); 
+	IMPORT_C static TCoeFont NormalFont(TInt aFlags = ENoFlags);	// Medium, Plain 
+	IMPORT_C static TCoeFont LegendFont(TInt aFlags = ENoFlags);	// Medium, Bold 
+	IMPORT_C static TCoeFont AnnotationFont(TInt aFlags = ENoFlags);// Small, Plain 
+	IMPORT_C static TCoeFont TitleFont(TInt aFlags = ENoFlags);		// Large, Bold 
+public: // properties         
+	IMPORT_C TLogicalSize LogicalSize() const; 
+	IMPORT_C TInt HeightInPixels() const; 
+	IMPORT_C TFontStyle Style() const; 
+	IMPORT_C TBool IsNonZooming() const; 
+public:         
+	static TInt Compare(const TCoeFont& aFirst, const TCoeFont& aSecond); 
+private: 
+	TLogicalSize iLogicalSize; 
+	TInt8 iHeightInPixels; 
+	TInt8 iStyle; 
+	TInt8 iFlags; 
+	TTypeface iTypeface;	// Member unused at the moment but included for possible future extension
+private:         
+	TInt iSpare; 
+	}; 
+
+#endif	// __COEFONT_H__